joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4052b6
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
call fcn.0040553b
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
test cl, 8
je 0x4052ed
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x4243a8], eax
jmp 0x405453
mov dword [ebp + 8], ecx
and dword [ebp + 8], 1
je 0x405307
test eax, eax
je 0x405453
test cl, 2
je 0x405405
mov esi, 0x421930
push ebx
push esi
call sub.KERNEL32.dll_lstrcpyA
cmp dword [ebp + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x405329
push str..
push esi
call edi
jmp 0x40532f
push ebx
call fcn.004054a2
push 0x40900c
push ebx
call edi
push ebx
call sub.KERNEL32.dll_lstrlenA
mov edi, eax
lea eax, [ebp - 0x144]
push eax
push esi
add edi, ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4053fb
cmp byte [ebp - 0x118], 0x2e
jne 0x405375
cmp byte [ebp - 0x117], 0x2e
je 0x4053de
cmp byte [ebp - 0x117], 0
je 0x4053de
lea eax, [ebp - 0x118]
push eax
push edi
call sub.KERNEL32.dll_lstrcpyA
mov eax, dword [ebp - 0x144]
test al, 0x10
je 0x4053a1
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4053de
push dword [ebp + 0xc]
push ebx
call fcn.004052b6
jmp 0x4053de
and al, 0xfe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4053d6
test byte [ebp + 0xc], 4
je 0x4053ce
push ebx
push 0xfffffffffffffff1
call fcn.00404d0c
push 0
push ebx
call fcn.00405691
jmp 0x4053de
inc dword [0x4243a8]
jmp 0x4053de
push ebx
push 0xfffffffffffffff2
call fcn.00404d0c
lea eax, [ebp - 0x144]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40535a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405405
and byte [edi - 1], 0
xor esi, esi
cmp dword [ebp - 4], esi
je 0x405453
cmp dword [ebp + 8], esi
je 0x405453
push ebx
call fcn.00405c36
test eax, eax
je 0x405453
push ebx
call fcn.0040545a
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x40544b
test byte [ebp + 0xc], 4
je 0x405443
push ebx
push 0xfffffffffffffff1
call fcn.00404d0c
push esi
push ebx
call fcn.00405691
jmp 0x405453
inc dword [0x4243a8]
jmp 0x405453
push ebx
push 0xffffffffffffffe5
call fcn.00404d0c
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40553b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x421d30
push esi
call sub.KERNEL32.dll_lstrcpyA
push esi
call fcn.004054ee
test eax, eax
jne 0x40555a
xor eax, eax
jmp 0x4055a9
test byte [0x424330], 0x80
je 0x40556e
mov cl, byte [eax]
test cl, cl
je 0x405556
cmp cl, 0x5c
je 0x405556
mov edi, eax
sub edi, esi
jmp 0x405588
call fcn.00405c36
test eax, eax
je 0x405582
test byte [eax], 0x10
je 0x405556
push esi
call fcn.004054a2
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405574
call fcn.0040545a
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x40561a
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405649
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x40568d
test edi, edi
jne 0x405654
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405687
Function at 0x405691
Capabilities:
Get common file path
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
push str.KERNEL32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov esi, dword [esp + 0x18]
je 0x4056c9
push str.MoveFileExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4056c9
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x40580e
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x422ab8], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x422ab8
je 0x40570d
push 1
push 0
push esi
call fcn.0040561a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405814
cmp eax, edi
jg 0x405814
mov esi, 0x4226b8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405814
cmp eax, edi
jg 0x405814
push esi
push ebp
push str._s_s_r_n
push 0x4222b8
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebp, eax
push 0x3f0
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.wininit.ini
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
xor edi, edi
push edi
push 0x8000080
push 4
push edi
push edi
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40580e
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push edi
lea eax, [esi + ebp + 0xa]
push eax
push edi
push 4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [esp + 0x14], eax
je 0x4057f6
push edi
push edi
push edi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x4057ea
push str._Rename__r_n
push edi
call fcn.004055ae
test eax, eax
jne 0x40581b
lea eax, [edi + esi]
push str._Rename__r_n
push eax
call sub.KERNEL32.dll_lstrcpyA
add esi, 0xa
mov eax, esi
push ebp
add eax, edi
push 0x4222b8
push eax
call fcn.004055fa
push edi
add esi, ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
push edi
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x4243b0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x4092f8
push eax
call fcn.004055ae
test eax, eax
je 0x4057d1
inc eax
lea edx, [edi + esi]
cmp eax, edx
mov ecx, eax
jae 0x405844
mov dl, byte [ecx]
mov byte [ecx + ebp], dl
inc ecx
lea edx, [edi + esi]
cmp ecx, edx
jb 0x405837
sub eax, edi
jmp 0x4057d3
Function at 0x405848
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4058ac
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40589b
cmp dword [ebp + 0x14], 1
je 0x40589d
cmp dword [ebp + 0x14], 2
je 0x40589d
mov byte [esi], bl
push dword [ebp + 0xc]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x405c74
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422ebc], 0
push esi
jne 0x405cab
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405c85
mov dword [ecx*4 + 0x422eb8], eax
inc ecx
cmp ecx, 0x100
jl 0x405c80
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405cdc
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422eb8]
xor eax, esi
inc ecx
dec edx
jne 0x405cbe
pop edi
not eax
pop esi
ret 0xc

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x40115c
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
pushal
mov esi, 0x404628
push dword [ebp + 8]
push esi
call sub.kernel32.dll_lstrcpyA
push str..BAK
push esi
call sub.kernel32.dll_lstrcatA
push esi
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x401193
push 0
push esi
push dword [ebp + 8]
call sub.kernel32.dll_CopyFileA
mov al, 0
jmp 0x401195
mov al, 1
mov byte [0x404840], al
popal
leave
ret 4

Function at 0x4011a0
Capabilities:
Copy file
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
pushal
mov esi, 0x404628
cmp dword [ebp + 8], 0
jne 0x4011d6
cmp byte [0x404840], 0
jne 0x4011c5
push 0
push 0x404428
push esi
call sub.kernel32.dll_CopyFileA
cmp byte [0x404840], 0
jne 0x401226
push esi
call sub.kernel32.dll_DeleteFileA
jmp 0x401226
push 0x6b
push dword [0x4043cc]
call sub.user32.dll_IsDlgButtonChecked
cmp byte [0x4048f2], 1
jne 0x401201
cmp byte [0x4048f3], 1
jne 0x4011fc
mov eax, 1
jmp 0x401201
mov eax, 0
cmp eax, 1
jne 0x401224
push 0x404237
call fcn.00401118
push esi
call fcn.00401118
push dword [0x404828]
push esi
call sub.kernel32.dll_SetFileAttributesA
jmp 0x401226
jmp 0x4011c5
popal
leave
ret 4
Function at 0x40122c
Capabilities:
Get file attributes
Get file size
Query environment variable
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
pushal
push 0x200
push 0x404428
push dword [ebp + 8]
call sub.kernel32.dll_ExpandEnvironmentStringsA
mov dword [ebp - 0x204], 0
push 0x404428
call sub.kernel32.dll_GetFileAttributesA
mov dword [0x404828], eax
test eax, 1
je 0x401276
xor eax, 1
push eax
push 0x404428
call sub.kernel32.dll_SetFileAttributesA
push 0x404428
call fcn.0040115c
push 0
push 0x82
push 3
push 0
push 2
push 0xc0000000
push 0x404428
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
jne 0x40132f
cmp byte [0x4048f2], 0
jne 0x40132a
push 0x34
push 0x404428
push 0x404063
push dword [0x4043cc]
call sub.user32.dll_MessageBoxA
cmp eax, 6
jne 0x40132a
lea esi, [ebp - 0x200]
mov edi, 0x404428
cmp byte [edi + 1], 0x3a
jne 0x4012e3
push edi
call fcn.00402820
mov edi, eax
push edi
push esi
call sub.kernel32.dll_lstrcpyA
push esi
call sub.kernel32.dll_lstrlenA
inc eax
push esi
push eax
add esi, eax
push edi
push esi
call sub.kernel32.dll_lstrcpyA
pop eax
add esi, eax
push 0x2e
push str.Exe_Files__.exe_
push esi
call sub.kernel32.dll_RtlMoveMemory
pop esi
push dword [0x4043cc]
push 0
push esi
push 0x404428
call fcn.004027b0
cmp eax, 1
jne 0x40132a
jmp 0x401252
jmp 0x4013d3
push 0x404272
call fcn.00401118
push 0x404428
call fcn.00401118
mov dword [0x40482c], eax
push 0
push eax
call sub.kernel32.dll_GetFileSize
mov dword [0x404830], eax
cmp dword [ebp + 0xc], 0
jne 0x40135e
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0x10], 1
jne 0x40137d
add eax, 0x226
add eax, dword [0x404841]
push 0x100
push eax
call fcn.00402860
mov dword [ebp + 0xc], eax
push dword [ebp + 0xc]
pop dword [0x40483c]
push 0
push dword [0x40483c]
push 0
push 4
push 0
push dword [0x40482c]
call sub.kernel32.dll_CreateFileMappingA
or eax, eax
jne 0x4013af
push 0x40408b
call fcn.00401118
jmp 0x4013d3
mov dword [0x404838], eax
push 0
push 0
push 0
push 2
push eax
call sub.kernel32.dll_MapViewOfFile
or eax, eax
jne 0x4013c8
jmp 0x4013a3
mov dword [0x404834], eax
mov dword [ebp - 0x204], eax
popal
mov eax, dword [ebp - 0x204]
leave
ret 0xc

Function at 0x4013e0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
pushal
mov esi, dword [0x40482c]
or esi, esi
je 0x401438
push dword [0x404834]
call sub.kernel32.dll_UnmapViewOfFile
push dword [0x404838]
call sub.kernel32.dll_CloseHandle
push 0
push 0
push dword [0x40483c]
push esi
call sub.kernel32.dll_SetFilePointer
push esi
call sub.kernel32.dll_SetEndOfFile
push esi
call sub.kernel32.dll_CloseHandle
push dword [ebp + 8]
call fcn.004011a0
push dword [0x404828]
push 0x404428
call sub.kernel32.dll_SetFileAttributesA
popal
leave
ret 4
Function at 0x401474
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
pushal
mov dword [ebp - 4], 0
push 0xa
push dword [ebp + 8]
push 0
call sub.kernel32.dll_FindResourceA
or eax, eax
jne 0x401494
jmp 0x4014b4
push eax
push eax
push 0
call sub.kernel32.dll_SizeofResource
mov dword [0x404841], eax
pop eax
push eax
push 0
call sub.kernel32.dll_LoadResource
or eax, eax
jne 0x4014b1
jmp 0x4014b4
mov dword [ebp - 4], eax
popal
mov eax, dword [ebp - 4]
leave
ret 4

Function at 0x4014e8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
pushal
mov byte [ebp - 0x201], 0
push 1
push 8
call fcn.00401440
or eax, eax
je 0x401545
mov esi, eax
push 0x200
lea eax, [ebp - 0x200]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
push str.BASSMOD.dll
lea eax, [ebp - 0x200]
push eax
call sub.kernel32.dll_lstrcatA
mov ecx, dword [esi + 1]
lea eax, [esi + 5]
push ecx
push eax
lea eax, [ebp - 0x200]
push eax
call fcn.0040274c
mov byte [ebp - 0x201], 1
popal
movzx eax, byte [ebp - 0x201]
leave
ret
Function at 0x402254
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
push edx
push esi
push edi
mov esi, dword [ebp + 8]
xor ecx, ecx
jmp 0x402281
inc ecx
cmp ecx, dword [0x404830]
jne 0x402281
push 0x40436d
call fcn.00401118
xor eax, eax
pop edi
pop esi
pop edx
pop ecx
pop ebx
leave
ret 0x10
cmp dword [ecx + esi], 0x4550
jne 0x402263
add esi, ecx
mov eax, dword [ebp + 8]
add eax, dword [0x404830]
cmp dword [eax - 4], 0x32505564
jne 0x4022aa
push 0x404384
call fcn.00401118
jmp 0x402276
push esi
movzx eax, word [esi + 6]
dec eax
imul eax, eax, 0x28
add esi, 0xf8
mov edi, esi
or dword [edi + 0x24], 0x80000000
add edi, eax
pop esi
cmp dword [ebp + 0xc], 4
jne 0x4022d0
mov ecx, dword [esi + 0x34]
jmp 0x4022d2
xor ecx, ecx
mov dword [0x402599], ecx
mov ebx, dword [esi + 0x28]
mov ecx, dword [esi + 0x34]
mov dword [0x402591], ebx
add dword [0x402591], ecx
mov eax, dword [edi + 0xc]
add eax, dword [edi + 0x10]
mov dword [esi + 0x28], eax
cmp dword [ebp + 0xc], 4
jne 0x402303
mov eax, dword [edi + 0xc]
mov ebx, dword [edi + 0x10]
add eax, ebx
jmp 0x402305
xor eax, eax
mov dword [0x40259d], eax
mov eax, dword [ebp + 8]
add eax, dword [edi + 0x14]
add eax, dword [edi + 0x10]
mov ecx, 0x40238e
mov ebx, 0x226
mov edx, eax
add edx, ebx
push edx
push ebx
push ecx
push eax
call sub.kernel32.dll_RtlMoveMemory
pop edx
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx + 0x16]
lea ecx, [eax + ecx]
mov ebx, dword [0x404841]
sub ebx, eax
push ebx
push ecx
push edx
call sub.kernel32.dll_RtlMoveMemory
mov eax, dword [ebp + 0x10]
push 0x100
push eax
call fcn.00402860
add dword [edi + 8], eax
add dword [edi + 0x10], eax
or dword [edi + 0x24], 0xe0000000
mov eax, dword [edi + 0xc]
add eax, dword [edi + 8]
mov ebx, dword [esi + 0x38]
push ebx
push eax
call fcn.00402860
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 8]
add eax, dword [0x40483c]
mov dword [eax - 4], 0x32505564
xor eax, eax
inc eax
pop edi
pop esi
pop edx
pop ecx
pop ebx
leave
ret 0x10

Function at 0x40243c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
push edx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov edx, ebx
movzx eax, word [ebx + 0x3c]
add ebx, eax
mov ebx, dword [ebx + 0x78]
add ebx, edx
or edi, edi
je 0x40249b
mov esi, dword [ebx + 0x20]
add esi, edx
mov ecx, dword [ebx + 0x18]
push ebx
xor ebx, ebx
lodsd eax, dword [esi]
add eax, edx
push esi
push edi
xchg edi, esi
xchg edi, eax
lodsb al, byte [esi]
or al, al
jne 0x40247a
cmp byte [edi], 0
je 0x402483
jmp 0x402481
cmp byte [edi], al
jne 0x402481
inc edi
jmp 0x40246e
mov al, 1
pop edi
pop esi
or al, al
je 0x40248c
inc ebx
loop 0x402466
xchg ebx, eax
pop ebx
mov esi, dword [ebx + 0x24]
add esi, edx
inc eax
shl eax, 1
add esi, eax
movzx ecx, word [esi]
sub ecx, dword [ebx + 0x10]
mov esi, dword [ebx + 0x1c]
add esi, edx
xchg ecx, eax
shl eax, 2
add esi, eax
mov eax, dword [esi]
add eax, edx
pop esi
pop edi
pop edx
pop ecx
pop ebx
leave
ret 8
Function at 0x40274c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
jne 0x402777
xor eax, eax
leave
ret 0xc
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call sub.kernel32.dll_WriteFile
push dword [ebp - 4]
call sub.kernel32.dll_FlushFileBuffers
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 8]
leave
ret 0xc

Function at 0x402910
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
pushal
cmp dword [ebp + 8], 0
jne 0x402950
push 0
call sub.kernel32.dll_GetModuleHandleA
lea esi, [ebp - 0x200]
push 0x200
push esi
push eax
call sub.kernel32.dll_GetModuleFileNameA
push esi
call sub.kernel32.dll_lstrlenA
push esi
add esi, eax
jmp 0x402945
dec esi
cmp byte [esi], 0x5c
jne 0x402944
mov byte [esi], 0
pop esi
jmp 0x402953
mov esi, dword [ebp + 8]
push esi
call sub.kernel32.dll_SetCurrentDirectoryA
popal
leave
ret 4
Function at 0x4078a9
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x133f
sub esp, 0x70
push fcn.004078a9
xor esi, esi
push esi
push esi
push esi
push esi
push esi
cmp dword [ebp + 8], 0
jne 0x4078ce
jmp 0x40791d
cmp dword [ebp + 0xc], 0
jne 0x4078e9
push 0xfffffffffffffff8
push dword [ebp + 8]
call dword [sym.imp.USER32.DLL_GetWindowLongA]
fldcw word [ebp - 0x10]
mov dword [ebp + 0xc], eax
push 5
push dword [ebp + 8]
call dword [sym.imp.USER32.DLL_ShowWindow]
fldcw word [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.USER32.DLL_UpdateWindow]
fldcw word [ebp - 0x10]
push 0
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00407781
add esp, 0x14
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4130c2
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x133f
sub esp, 0x70
push fcn.004130c2
xor esi, esi
xor edi, edi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0
push 0
mov edx, 0x41dfcc
call fcn.0041aead
push 0
mov ebx, esp
call fcn.0041a49c
call fcn.004075ff
add esp, 0xc
mov esi, eax
push dword [ebp + 0x10]
mov eax, esi
push eax
call dword [sym.imp.USER32.DLL_ShowWindow]
fldcw word [ebp - 0x10]
push 0
mov eax, esi
push eax
call fcn.004078a9
add esp, 8
mov edi, eax
call fcn.0041adc6
mov eax, dword [ebp - 0x98]
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x413268
Capabilities:
Accept command line arguments
Allocate thread local storage
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, section..data
test word [0x41324a], 4
jne 0x413283
jmp 0x4136b2
jmp fcn.004134b5
push 0
call dword [sym.imp.OLE32.DLL_CoInitialize]
call fcn.004133b1
mov dword [ebx + 0x3f0], 1
lea eax, [ebx + 0x5c4]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
sub esp, 0x44
mov dword [esp], 0x44
mov dword [esp + 0x2c], 0
push esp
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
mov eax, 0xa
test dword [esp + 0x2c], 1
je 0x413703
movzx eax, word [esp + 0x30]
add esp, 0x44
mov dword [ebx + 0x3e4], eax
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
call fcn.00413457
mov dword [ebx + 0x3e0], eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [ebx + 0x3ec], eax
call fcn.00413288
push 0xff
jb 0x413782
pop eax
movzx ecx, word [0x413248]
jecxz 0x41374d
push ecx
push 8
push esp
call dword [sym.imp.COMCTL32.DLL_InitCommonControlsEx]
pop eax
pop eax
call fcn.004132fd
push eax
mov ebx, section..data
mov ecx, dword [ebx + 0xd8]
call fcn.0041378e
mov ecx, dword [ebx + 0xb4]
jecxz 0x413772
push ecx
call dword [0x43b000]
mov edi, dword [ebx + 0x428]
call fcn.00413302
call fcn.004132e9
call dword [sym.imp.OLE32.DLL_CoUninitialize]
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
Function at 0x413288
Capabilities:
Allocate thread local storage

Disassembly:
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
cmp eax, 0xffffffff
stc
je 0x4132e8
mov dword [ebx + 0x3d0], eax
mov dword [ebx + 0x3d8], 0
mov dword [ebx + 0x3d4], 0
call fcn.00413594
jb 0x4132e8
mov dword [ebx + 0x3d4], eax
mov word [eax + 0xac], 8
call fcn.004132d7
dec ebp
push ebx
and byte [ebx + 0x61], dl
outsb dx, byte [esi]
jae 0x4132f1
push ebx
jb 0x41333e
add byte [esi - 4], bl
mov bl, 0xd0
add eax, dword [eax]
add bh, bh
adc eax, sym.imp.KERNEL32.DLL_TlsFree
ret

Function at 0x413798
Capabilities:
Terminate process

Disassembly:
push eax
push ecx
push esi
push edi
lea esi, [esp + 0x18]
mov ecx, dword [esi - 4]
push ecx
call fcn.00418548
jb 0x4137ce
jecxz 0x4137bb
lea esi, [esi + ecx*4 - 4]
mov eax, dword [esi]
mov byte [edi], al
sub esi, 4
inc edi
loop 0x4137b1
call fcn.0041aee0
pop edx
pop edi
pop esi
pop ecx
pop eax
shl edx, 2
pop dword [esp + edx]
add esp, edx
ret
call fcn.0041aede
pop edx
pop edi
pop esi
pop ecx
add esp, 4
shl edx, 2
pop dword [esp + edx]
add esp, edx
jmp fcn.004134cc

Function at 0x4138bc
Capabilities:
Terminate process

Disassembly:
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], edi
pop dword [ebp - 0x6c]
pop edx
pop ax
test byte [ebx + 4], 4
je 0x4138de
pop cx
movzx ecx, ch
add esp, 4
add esp, 8
loop 0x4138d6
jmp dword [ebp - 0x6c]
mov byte [ebx + 5], 2
mov byte [ebx + 4], al
mov dword [ebx], edx
pop word [ebx + 6]
pop dword [ebx + 0x14]
movzx ecx, byte [ebx + 7]
mov esi, ecx
shl esi, 1
add esi, ecx
shl esi, 2
pop dword [ebx + esi + 0x10]
pop dword [ebx + esi + 0xc]
sub esi, 0xc
jne 0x4138fb
mov eax, dword [ebx + esi + 0x1c]
sub eax, dword [ebx + esi + 0x18]
jl 0x413970
inc eax
dec ecx
je 0x413933
add esi, 0xc
mov dword [ebx + esi + 0x14], eax
mov eax, dword [ebx + esi + 0x1c]
sub eax, dword [ebx + esi + 0x18]
jl 0x413970
inc eax
mul dword [ebx + esi + 0x14]
dec ecx
ja 0x413916
je 0x413933
jb 0x413970
mov dword [ebx + 8], eax
mul dword [ebx + 0x14]
jb 0x413970
test byte [ebx + 4], 1
je 0x413946
mov dword [ebx + 0xc], eax
jmp 0x413963
push eax
call fcn.0041347d
pop ecx
jb 0x413972
mov dword [ebx], eax
mov dword [ebx + 0xc], ecx
mov edi, eax
cld
xor eax, eax
shr ecx, 1
rep stosw word es:[edi], ax
adc cl, 0
rep stosb byte es:[edi], al
or byte [ebx + 4], 4
mov esi, dword [ebp - 0x68]
mov edi, dword [ebp - 0x64]
jmp dword [ebp - 0x6c]
mov al, 9
mov esi, dword [ebp - 0x68]
mov edi, dword [ebp - 0x64]
push dword [ebp - 0x6c]
jmp fcn.004134cc