joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x433072
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x6b79542e
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4330d2
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x1d381762
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219

Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret
Function at 0x402ece
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, esi
lea eax, [ebp - 4]
and esi, 0x300
push eax
mov eax, esi
and edi, 1
or al, 9
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00406534
xor ebx, ebx
cmp eax, ebx
jne 0x402fb1
test byte [ebp + 0x10], 2
je 0x402f2f
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x214]
mov dword [ebp - 8], ebx
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x402f96
lea eax, [ebp - 0x214]
push 0x105
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x402f6b
test edi, edi
jne 0x402f96
push dword [ebp + 0x10]
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 4]
call fcn.00402ece
test eax, eax
jne 0x402f74
lea eax, [ebp - 0x214]
push 0x105
push eax
push edi
push dword [ebp - 4]
call ebx
test eax, eax
je 0x402f44
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.00406abb
test eax, eax
jne 0x402fa6
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x402fb1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x402fb1
push 0
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4033bb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp eax, esi
jl 0x4033e6
mov ecx, dword [0x434798]
push esi
add eax, ecx
push esi
push eax
mov dword [0x42aa54], eax
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.004034c3
cmp eax, esi
jl 0x4034bd
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40a01c]
call fcn.0040623a
test eax, eax
je 0x4034ad
push dword [ebp + 8]
add dword [0x42aa54], 4
call fcn.004034c3
mov ebx, eax
cmp ebx, esi
jl 0x4034bb
cmp dword [ebp + 0x10], esi
jne 0x403489
cmp dword [ebp + 8], esi
jle 0x4034bb
mov esi, 0x41ea50
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x40344b
mov eax, 0x4000
push eax
push esi
push dword [0x40a01c]
mov dword [ebp - 4], eax
call fcn.0040623a
test eax, eax
je 0x4034ad
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.00406269
test eax, eax
je 0x403485
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x42aa54], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x40343a
jmp 0x4034bb
push 0xfffffffffffffffe
jmp 0x4034af
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403494
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4034b2
push 0xfffffffffffffffd
pop eax
jmp 0x4034bd
mov ebx, dword [ebp - 4]
add dword [0x42aa54], ebx
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10
Function at 0x405caa
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x42fab0], 0x44
push eax
xor eax, eax
push 0x42fab0
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405ce9
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405ced
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4

Function at 0x405d8b
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00406192
mov edi, eax
cmp edi, 0xffffffff
je 0x405dcc
test byte [esp + 0x10], 1
push esi
je 0x405dae
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405db4
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405dbd
xor eax, eax
inc eax
jmp 0x405dce
test byte [esp + 0x10], 4
jne 0x405dcc
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405dd3
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.0040609e
test bl, 8
mov dword [ebp - 8], eax
je 0x405e12
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x4347c8], eax
jmp 0x405f8f
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405e2c
test eax, eax
je 0x405f3d
test bl, 2
je 0x405f3d
mov esi, 0x42eab0
push edi
push esi
call fcn.004066c7
cmp dword [ebp + 8], 0
je 0x405e4b
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405e51
push edi
call fcn.00405fe2
cmp word [edi], 0
jne 0x405e61
cmp word [0x42eab0], 0x5c
jne 0x405e6c
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405f32
cmp word [ebp - 0x22c], 0x2e
jne 0x405eb6
cmp word [ebp - 0x22a], 0
je 0x405f15
cmp word [ebp - 0x22a], 0x2e
jne 0x405eb6
cmp word [ebp - 0x228], 0
je 0x405f15
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.004066c7
test byte [ebp - 0x258], 0x10
je 0x405ee1
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405f15
push dword [ebp + 0xc]
push edi
call fcn.00405dd3
jmp 0x405f15
push dword [ebp - 4]
push edi
call fcn.00405d8b
test eax, eax
jne 0x405f0d
cmp dword [ebp - 4], eax
je 0x405f05
push edi
push 0xfffffffffffffff1
call fcn.0040574c
push 0
push edi
call fcn.00406487
jmp 0x405f15
inc dword [0x4347c8]
jmp 0x405f15
push edi
push 0xfffffffffffffff2
call fcn.0040574c
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405e8e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405f3d
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405f8f
cmp dword [ebp - 8], esi
jne 0x405f51
inc dword [0x4347c8]
jmp 0x405f8f
push edi
call fcn.00406a24
test eax, eax
je 0x405f8f
push edi
call fcn.00405f96
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405d8b
test eax, eax
jne 0x405f87
cmp dword [ebp - 4], esi
je 0x405f49
push edi
push 0xfffffffffffffff1
call fcn.0040574c
push esi
push edi
call fcn.00406487
jmp 0x405f8f
push edi
push 0xffffffffffffffe5
call fcn.0040574c
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40609e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42f2b0
push esi
call fcn.004066c7
push esi
call fcn.00406041
mov edi, eax
test edi, edi
jne 0x4060bf
xor eax, eax
jmp 0x406117
push edi
call fcn.00406975
test byte [0x434758], 0x80
je 0x4060dc
mov ax, word [edi]
test ax, ax
je 0x4060bb
cmp ax, 0x5c
je 0x4060bb
sub edi, esi
sar edi, 1
jmp 0x4060f6
call fcn.00406a24
test eax, eax
je 0x4060f0
test byte [eax], 0x10
je 0x4060bb
push esi
call fcn.00405fe2
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x4060e2
call fcn.00405f96
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x406192
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4061b1
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x4061b7
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
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_CreateFileW]
ret 0xc

Function at 0x4061e6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a5a8]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40a5ac]
mov dword [ebp - 4], eax
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 word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x406236
test edi, edi
jne 0x4061f3
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x406230
Function at 0x40630d
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x430148], 0x55004e
mov dword [0x43014c], 0x4c
mov edi, 0x400
mov ebp, 0x430148
je 0x406363
push 1
push 0
push esi
call fcn.004061b7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x406482
cmp eax, edi
jg 0x406482
mov esi, 0x430948
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x406482
cmp eax, edi
jg 0x406482
push esi
push ebp
push str._ls_ls_r_n
push 0x42fd48
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x434750]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00406704
push 4
push 0xc0000000
push esi
call fcn.004061b7
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x406482
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40647b
push edi
push esi
push ebp
call fcn.0040623a
test eax, eax
je 0x40647b
push str._Rename__r_n
push esi
call fcn.0040611c
test eax, eax
jne 0x406419
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x40644e
add eax, 0xa
push 0x40a5b0
push eax
call fcn.0040611c
mov ebp, eax
test ebp, ebp
je 0x40644a
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x40643b
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x406435
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x406450
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x42fd48
push eax
call fcn.00406172
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00406269
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x406487
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4064aa
push dword [esp + 8]
push dword [esp + 8]
call fcn.0040630d
pop ecx
pop ecx
inc dword [0x4347d0]
ret 8
Function at 0x406595
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 4], 0x800
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00406534
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x406605
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and word [esi + 0x7fe], 0
test edi, edi
pop edi
jne 0x406605
cmp dword [ebp + 0xc], 1
je 0x406609
cmp dword [ebp + 0xc], 2
je 0x406609
and word [esi], 0
pop esi
leave
ret 0x14
Function at 0x406a4b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406a6f
xor eax, eax
test eax, eax
je 0x406a82
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406a82
xor ecx, ecx
jmp 0x406a85
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406ba8
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43114c], 0
push esi
jne 0x406bdf
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 0x406bb9
mov dword [ecx*4 + 0x431148], eax
inc ecx
cmp ecx, 0x100
jl 0x406bb4
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406c10
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 + 0x431148]
xor eax, esi
inc ecx
dec edx
jne 0x406bf2
pop edi
not eax
pop esi
ret 0xc
Function at 0x402acf
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
mov dword [ebp - 4], 0x208
push eax
push 0
push 0x401414
push ecx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x402b30
mov eax, dword [ebp - 4]
cmp eax, 2
jb 0x402b2b
shr eax, 1
xor ecx, ecx
cmp cx, word [esi + eax*2 - 2]
jne 0x402b2b
mov eax, dword [ebp - 8]
sub eax, 1
je 0x402b27
sub eax, 1
jne 0x402b2b
mov ecx, esi
call fcn.004029da
test eax, eax
jne 0x402b30
xor eax, eax
jmp 0x402b30
mov eax, 0x3f7
pop esi
leave
ret 8

Function at 0x402f00
Capabilities:
Terminate process

Disassembly:
push 0xc
push 0x403510
call fcn.00403288
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x4043c0
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x402d28
cmp eax, esi
jne 0x402d1b
xor esi, esi
inc esi
mov edi, esi
jmp 0x402d2b
push 0x3e8
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x402cff
xor esi, esi
inc esi
cmp dword [0x4043c4], esi
jne 0x402d3d
push 0x1f
call fcn.0051b000
pop ecx
jmp 0x402d77
cmp dword [0x4043c4], ebx
jne 0x402d71
mov dword [0x4043c4], esi
push 0x4011a0
push 0x401194
call fcn.00402e5c
pop ecx
pop ecx
test eax, eax
je 0x402d77
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x402e4c
mov dword [0x404034], esi
cmp dword [0x4043c4], esi
jne 0x402d9a
push 0x401190
push 0x401184
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x4043c4], 2
test edi, edi
jne 0x402da7
xor eax, eax
mov ecx, 0x4043c0
xchg dword [ecx], eax
cmp dword [0x4043c8], 0
je 0x402dd3
push 0x4043c8
call fcn.004030e0
pop ecx
test eax, eax
je 0x402dd3
push ebx
push 2
push ebx
mov esi, dword [0x4043c8]
mov ecx, esi
call dword [0x405168]
call esi
push dword [0x404040]
push dword [0x40403c]
push dword [0x404038]
call fcn.00401ae1
add esp, 0xc
mov dword [0x404030], eax
cmp dword [0x404048], 0
jne 0x402e31
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x404034], 0
jne 0x402e45
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x404030]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
call fcn.004031d5
jmp 0x402ce3
Function at 0x402fc4
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x403588
call fcn.00403288
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x403024
cmp eax, 0xffffffff
je 0x403024
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x40301d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x40301d
cmp edx, 0x10000000
jae 0x40301d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x40301a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x403090
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x4030ce
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4030c6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4030d0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4030b6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4031a0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x4031d1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4031d1
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x4031d1
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
mov ecx, 0x469c3d68
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x5fc042e7
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x101006d7
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.10100756
jae 0x101006e3
xor ecx, ecx
call fcn.10100756
jae 0x1010070d
xor eax, eax
call fcn.10100756
jae 0x1010071e
mov al, 0x10
call fcn.10100756
adc al, al
jae 0x101006ff
jne 0x1010074b
stosb byte es:[edi], al
jmp 0x101006e4
call fcn.10100762
dec ecx
loop 0x1010072a
mov eax, ebp
call fcn.10100760
jmp 0x1010074c
lodsb al, byte [esi]
shr eax, 1
je 0x10100772
adc ecx, 2
mov ebp, eax
jmp 0x1010074c
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.10100760
cmp eax, 0x7d00
jae 0x1010074a
cmp eax, 0x500
jae 0x1010074b
cmp eax, 0x7f
ja 0x1010074c
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x101006e4
pop ebp
ret 8