joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402b80
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x21c
push esi
push edi
call dword [sym.imp.ace.dll_public:_static_int___cdecl_ACE_Init_ACE::init_void_]
push str.ksgautoupdate
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push 0
push eax
mov dword [0x4166e8], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x402bcb
mov eax, dword [0x4166e8]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
xor eax, eax
pop esi
add esp, 0x21c
ret 0x10
call fcn.00402ad0
mov esi, dword [esp + 0x230]
push esi
call fcn.00402a40
add esp, 4
dec eax
jne 0x402c2b
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x25]
mov byte [esp + 0x24], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edi, [esi + 2]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x24]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
push ecx
push 0
call fcn.004089a0
add esp, 8
mov esi, dword [esp + 0x228]
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x64
push 0x4166ec
push 0x67
push esi
call edi
push 0x64
push 0x416550
push 0x6d
push esi
call edi
push esi
call fcn.00402d00
mov edx, dword [esp + 0x238]
push edx
push esi
call fcn.00402d90
add esp, 0xc
test al, al
jne 0x402c78
pop edi
xor eax, eax
pop esi
add esp, 0x21c
ret 0x10
push 0x6d
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
mov esi, eax
push 0
push 0
lea eax, [esp + 0x10]
push 0
push eax
call edi
test eax, eax
je 0x402cde
push ebx
mov ebx, dword [sym.imp.USER32.dll_TranslateAcceleratorA]
push ebp
mov ebp, dword [sym.imp.USER32.dll_TranslateMessage]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
push ecx
push esi
push edx
call ebx
test eax, eax
jne 0x402ccb
lea eax, [esp + 0x10]
push eax
call ebp
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
lea edx, [esp + 0x18]
push 0
push edx
call edi
test eax, eax
jne 0x402ca8
pop ebp
pop ebx
call dword [sym.imp.ace.dll_public:_static_int___cdecl_ACE_Init_ACE::fini_void_]
mov eax, dword [esp + 0x10]
pop edi
pop esi
add esp, 0x21c
ret 0x10
Function at 0x402d90
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 4]
push ebx
push 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0xcf0000
push 0x4166ec
push 0x416550
push 0
mov dword [0x416618], eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov ebx, eax
test ebx, ebx
jne 0x402dca
xor al, al
pop ebx
ret
push esi
push edi
push 0
push ebx
mov dword [0x416484], ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
call fcn.0040a0d0
mov edi, 0x40d91c
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [0x4142dc], 0
mov eax, ecx
mov esi, edi
mov edi, 0x4142e0
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [0x4142d8], 0
call dword [sym.imp.USER32.dll_UpdateWindow]
call fcn.00401ab0
call fcn.00401bf0
push 0x40d920
call fcn.00409eb0
add esp, 4
call fcn.00403bf0
pop edi
pop esi
mov al, 1
pop ebx
ret

Function at 0x403bf0
Capabilities:
Create thread
Resume thread

Disassembly:
sub esp, 8
push 0
call fcn.0040a130
add esp, 4
lea eax, [esp + 4]
lea ecx, [esp]
mov dword [esp], 1
push eax
push 4
push ecx
push 0x403390
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [0x416680], eax
je 0x403c30
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
add esp, 8
ret
Function at 0x409d60
Capabilities:
Create directory

Disassembly:
sub esp, 0x404
mov ax, word [0x40d500]
push ebp
push esi
push edi
mov word [esp + 0xe], ax
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x211]
mov byte [esp + 0x210], 0
lea edx, [esp + 0x210]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x414]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x10], 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, dword [sym.imp.MSVCRT.dll_strtok]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x210]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x7f
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0xe]
push ecx
push edx
stosb byte es:[edi], al
call ebp
add esp, 8
test eax, eax
je 0x409e9e
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40d500
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, 0x40d91c
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x409e73
test cl, cl
je 0x409e6f
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x409e73
add eax, 2
add esi, 2
test cl, cl
jne 0x409e4f
xor eax, eax
jmp 0x409e78
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x409e8a
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.MSVCRT.dll__mkdir]
add esp, 4
lea ecx, [esp + 0xe]
push ecx
push 0
call ebp
add esp, 8
test eax, eax
jne 0x409def
pop edi
pop esi
pop ebp
add esp, 0x404
ret
Function at 0x409f70
Capabilities:
Inspect load icon resource

Disassembly:
sub esp, 0x208
mov ecx, dword [0x416618]
mov eax, dword [0x416484]
push esi
push edi
push 0x83
push ecx
mov dword [0x414280], 0x58
mov dword [0x414284], eax
mov dword [0x414288], 5
mov dword [0x41428c], 7
mov dword [0x414290], 0x405
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [0x414294], eax
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x4142d8]
test eax, eax
jne 0x40a008
mov edi, 0x4142e0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x40a091
mov ecx, dword [0x4142dc]
cmp ecx, eax
jb 0x40a023
push 0x40fab8
lea ecx, [esp + 0x14]
push 0x40d90c
push ecx
jmp 0x40a088
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 0
fild qword [esp + 8]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
fidiv dword [esp + 8]
fmul dword [0x40b200]
call sub.MSVCRT.dll__ftol
cmp eax, 0x64
jle 0x40a05a
mov eax, 0x63
jmp 0x40a05e
test eax, eax
je 0x40a079
push eax
push 0x4142e0
lea edx, [esp + 0x18]
push str._s__d__
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
jmp 0x40a091
push 0x4142e0
lea eax, [esp + 0x14]
push 0x40d90c
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
push 0x414280
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
mov edx, ecx
mov esi, edi
mov edi, 0x414298
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
pop edi
mov al, 1
pop esi
add esp, 0x208
ret
Function at 0x41b0da
Capabilities:
Encode data using xor
Parse pe header

Disassembly:
push ebx
call fcn.00415eb1
out dx, eax
mov edx, 0x9496d600
sub ch, byte [esi + esi + 0x3c]
push es
xor al, 0xe
push eax
sbb dword [ebx - 0x8b00c3d], 0xffffffdc
dec edi
neg esp
out dx, al
sub ecx, dword [edx]
pop esp
mov edi, eax
fsub dword [ecx]
aad 0x7e
call 0xdad07f5a
mov ah, 0x5a
and eax, 0x2a949541
jo 0x417094
jp 0x4170a0
stosb byte es:[edi], al
cmc
lodsd eax, dword [esi]
lodsd eax, dword [esi]
cld
inc esi
or al, 0xc7
das
push esi
out 0xed, al
and dword [eax + eax*8 - 0xd], esp
ret
jb 0x41702d
sbb al, 0x9a
into
push cs
movsd dword es:[edi], dword [esi]
or eax, 0xad2e8a6
jo 0x4170e3
add dl, ah
lodsd eax, dword [esi]
mov ecx, 0xb09aa8fa
or cl, ah
xchg esi, eax
xchg esp, eax
sub dh, byte [esi + 0x5c]
pop esi
add byte [esi - 0x514f6d54], dl
xchg esp, eax
cmpsb byte [esi], byte es:[edi]
fistp qword [ecx]
or dword [ebp - 0x1b], ebx
jge 0x4170f7
sbb byte [esi - 0x4ba5ee2b], 6
adc dword [edx - 0x4c], ebx
push es
xchg esi, eax
sbb cl, byte [edi]
invalid
push ss
sub al, 0x42
leave
fsub st(2)
mov byte [0xbc30f98b], bl
add byte [ecx + 0x78075ec8], al
inc edx
loop 0x4170c7
iretd
push ecx
and dword [ecx], esp
and eax, 0xb45b4eb3
mov al, 0xe1
movsb byte es:[edi], byte [esi]
pushal
js 0x4170c4
popal
cwde
mov esi, 0x175586b8
fld qword [edx + 0x68]
dec ebx
aas
je 0x41712b
jae 0x417184
rcr ebp, 1
aaa
rol dword [edx + 0x1347c5ec], 9
into
adc al, 0x42
fisubr dword [edx - 0x1d38d4af]
ret 0x580f
addps xmm2, xmmword [esi]
popfd
or eax, 0xe7243441
into
neg byte [ebx + 0x37]
or esi, dword [ebx]
out 0x18, al
cdq
jmp 0x7ff783d
pushfd
push ss
popfd
adc eax, 0x2ddac16a
sahf
invalid
pushfd
lea esp, [esp + 4]
jne 0x417016
pushal
inc esi
mov byte [esp], 0x2c
inc edi
push ebx
pushfd
pushfd
lea esp, [esp + 0x2c]
jmp fcn.0042b13b
cmp al, ah
jmp 0x4174ab
or al, al
push 0x495f9163
lea esp, [esp + 0xc]
je 0x41af03
clc
jmp 0x417fd4
push ecx
mov byte [esp], bh
lea esp, [esp + 0xc]
ja 0x415110
bt ax, cx
pushfd
clc
clc
add ah, 0x20
test dl, 0x7e
pushfd
jmp 0x419cc9
Function at 0x429d49
Capabilities:
Resolve function by parsing pe exports

Disassembly:
pushal
lea esp, [esp + 0x28]
jbe 0x419ce0
cmp bh, 0xcd
and ch, bl
or al, al
stc
stc
sub ecx, dword [edx + 0x10]
call fcn.00429095
wait
lea ebp, [0x2a94c2a9]
cdq
arpl bx, si
loopne 0x419d1c
in eax, 0xb4
shl dword [ebx - 0x21], 1
ja 0x419cc8
jnp 0x419d37
bound edi, qword [ebx + edi*2 + 0x4b68c43]
xchg edx, eax
sub al, 0x64
stosb byte es:[edi], al
xlatb
sub al, 0x1e
xchg ebp, eax
add eax, 0x94c32091
sub cl, byte [ecx - 0x1f]
push edi
insd dword es:[edi], dx
mov dh, 0x84
invalid
push esi
clc
dec edx
clc
push sp
jg 0x419d8f
xlatb
arpl di, bx
imul edx, edi, 0xffffff83
aaa
mov ebp, 0xfba6e29b
push 0x75
xor byte [ebx], ah
mov al, 0x9f
dec esi
aam 0xce
in eax, 0xbd
scasb al, byte es:[edi]
pop ds
invalid
int1
add al, 0x12
mov eax, dword [0xdf20a211]
cmc
mov dword [ebp - 0x10], ecx
bsf ecx, edi
mov ecx, dword [ebp + 0xc]
stc
mov byte [esp + 4], 0xc8
cmp ecx, 0xffff
mov byte [esp + 4], ah
jmp 0x4163ed
pushfd
clc
test eax, eax
push dword [esp]
pushfd
lea esp, [esp + 0x10]
je 0x417e79
rol si, cl
and dl, al
xadd si, dx
mov esi, dword [eax + 0x3c]
movsx dx, bl
btr dx, si
shr dh, cl
add esi, eax
rcl dl, 2
inc dl
sbb dx, 0x2a
shld edx, edx, 8
mov edx, dword [esi + 0x78]
clc
bt ax, 4
test ah, ch
cmc
test edx, edx
pushfd
pushal
lea esp, [esp + 0x24]
je 0x417e79
jmp 0x42c7ec
pushfd
cmc
ror ecx, 0x1d
add edx, eax
sal cx, cl
cmp bx, di
bswap cx
dec ch
mov ecx, dword [esi + 0x7c]
test bl, dl
cmc
pushfd
add ecx, edx
stc
jmp 0x41bbe7
Function at 0x401b30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x401b43
xor al, al
ret
shr eax, 4
and eax, 1
ret

Function at 0x4027f0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x30
push esi
mov esi, dword [esp + 0x38]
push edi
mov edi, dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push 0
mov dword [esp + 0x10], 0x30
mov dword [esp + 0x14], 0xb
mov dword [esp + 0x18], 0x402730
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 2
mov dword [esp + 0x24], esi
call edi
push 0x7f00
push 0
mov dword [esp + 0x28], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push 4
mov dword [esp + 0x28], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
push 0x7f00
push 0
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], str.NsMain
call edi
mov dword [esp + 0x34], eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
push esi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
push 0
push 0x258
push 0x320
push 1
call esi
sub eax, 0x258
shr eax, 1
push eax
push 0
call esi
sub eax, 0x320
shr eax, 1
push eax
push 0xcf0000
push str.NsMain
push str.NsMain
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 0
push eax
mov dword [0x424758], eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
cmp dword [0x424758], eax
pop edi
setne al
pop esi
add esp, 0x30
ret
Function at 0x402f40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x14]
push edi
mov edi, ecx
cmp ebx, dword [esp + 0x1c]
jae 0x4030a4
push ebp
push esi
mov esi, dword [esp + 0x1c]
jmp 0x402f60
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
push ebx
mov ecx, esi
call edx
dec eax
cmp eax, 9
ja case.default.0x402f74
jmp dword [eax*4 + 0x4030ac]
mov eax, dword [esi]
mov ebp, dword [edi]
mov edx, dword [eax + 0x60]
push ebx
mov ecx, esi
add ebp, 0x1c
call edx
mov edx, dword [ebp]
movzx eax, al
push eax
mov ecx, edi
call edx
jmp case.default.0x402f74
mov eax, dword [esi]
mov ebp, dword [edi]
mov edx, dword [eax + 0x64]
push ebx
mov ecx, esi
add ebp, 0x20
call edx
push eax
mov eax, dword [ebp]
mov ecx, edi
call eax
jmp case.default.0x402f74
mov edx, dword [esi]
mov ebp, dword [edi]
mov eax, dword [edx + 0x68]
push ebx
mov ecx, esi
add ebp, 0x24
call eax
push edx
mov edx, dword [ebp]
jmp 0x403092
mov eax, dword [esi]
mov ebp, dword [edi]
mov edx, dword [eax + 0x6c]
push ebx
mov ecx, esi
add ebp, 0x28
call edx
mov eax, dword [ebp]
push ecx
mov ecx, edi
fstp dword [esp]
call eax
jmp case.default.0x402f74
mov edx, dword [esi]
mov ebp, dword [edi]
mov eax, dword [edx + 0x70]
push ebx
mov ecx, esi
add ebp, 0x2c
call eax
mov edx, dword [ebp]
sub esp, 8
fstp qword [esp]
jmp 0x403093
mov eax, dword [esi]
mov ebp, dword [edi]
mov edx, dword [eax + 0x74]
push ebx
mov ecx, esi
add ebp, 0x30
call edx
push eax
mov eax, dword [ebp]
mov ecx, edi
call eax
jmp case.default.0x402f74
mov edx, dword [esi]
mov ebp, dword [edi]
mov eax, dword [edx + 0x78]
push ebx
mov ecx, esi
add ebp, 0x34
call eax
mov edx, dword [ebp]
push eax
mov ecx, edi
call edx
jmp case.default.0x402f74
mov eax, dword [esi]
mov ebp, dword [edi]
mov edx, dword [eax + 0x7c]
push ebx
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
add ebp, 0x38
call edx
push eax
mov eax, dword [ebp]
mov ecx, edi
call eax
jmp case.default.0x402f74
mov edx, dword [esi]
mov ebp, dword [edi]
mov eax, dword [edx + 0x80]
push ebx
mov ecx, esi
add ebp, 0x3c
call eax
mov edx, dword [ebp]
push eax
mov ecx, edi
call edx
jmp case.default.0x402f74
mov eax, dword [esi]
mov edx, dword [eax + 0x84]
lea ecx, [esp + 0x20]
push ecx
push ebx
mov ecx, esi
call edx
mov edx, dword [edi]
mov ecx, dword [esp + 0x20]
mov edx, dword [edx + 0x40]
push ecx
push eax
mov ecx, edi
call edx
inc ebx
cmp ebx, dword [esp + 0x24]
jb 0x402f60
pop esi
pop ebp
pop edi
pop ebx
add esp, 8
ret 0xc
Function at 0x402f7b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x14]
push edi
mov edi, ecx
cmp ebx, dword [esp + 0x1c]
jae 0x4030a4
push ebp
push esi
mov esi, dword [esp + 0x1c]
jmp 0x402f60
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
push ebx
mov ecx, esi
call edx
dec eax
cmp eax, 9
ja case.default.0x402f74
jmp dword [eax*4 + 0x4030ac]
mov eax, dword [esi]
mov ebp, dword [edi]
mov edx, dword [eax + 0x60]
push ebx
mov ecx, esi
add ebp, 0x1c
call edx
mov edx, dword [ebp]
movzx eax, al
push eax
mov ecx, edi
call edx
jmp case.default.0x402f74
mov eax, dword [esi]
mov ebp, dword [edi]
mov edx, dword [eax + 0x64]
push ebx
mov ecx, esi
add ebp, 0x20
call edx
push eax
mov eax, dword [ebp]
mov ecx, edi
call eax
jmp case.default.0x402f74
mov edx, dword [esi]
mov ebp, dword [edi]
mov eax, dword [edx + 0x68]
push ebx
mov ecx, esi
add ebp, 0x24
call eax
push edx
mov edx, dword [ebp]
jmp 0x403092
mov eax, dword [esi]
mov ebp, dword [edi]
mov edx, dword [eax + 0x6c]
push ebx
mov ecx, esi
add ebp, 0x28
call edx
mov eax, dword [ebp]
push ecx
mov ecx, edi
fstp dword [esp]
call eax
jmp case.default.0x402f74
mov edx, dword [esi]
mov ebp, dword [edi]
mov eax, dword [edx + 0x70]
push ebx
mov ecx, esi
add ebp, 0x2c
call eax
mov edx, dword [ebp]
sub esp, 8
fstp qword [esp]
jmp 0x403093
mov eax, dword [esi]
mov ebp, dword [edi]
mov edx, dword [eax + 0x74]
push ebx
mov ecx, esi
add ebp, 0x30
call edx
push eax
mov eax, dword [ebp]
mov ecx, edi
call eax
jmp case.default.0x402f74
mov edx, dword [esi]
mov ebp, dword [edi]
mov eax, dword [edx + 0x78]
push ebx
mov ecx, esi
add ebp, 0x34
call eax
mov edx, dword [ebp]
push eax
mov ecx, edi
call edx
jmp case.default.0x402f74
mov eax, dword [esi]
mov ebp, dword [edi]
mov edx, dword [eax + 0x7c]
push ebx
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
add ebp, 0x38
call edx
push eax
mov eax, dword [ebp]
mov ecx, edi
call eax
jmp case.default.0x402f74
mov edx, dword [esi]
mov ebp, dword [edi]
mov eax, dword [edx + 0x80]
push ebx
mov ecx, esi
add ebp, 0x3c
call eax
mov edx, dword [ebp]
push eax
mov ecx, edi
call edx
jmp case.default.0x402f74
mov eax, dword [esi]
mov edx, dword [eax + 0x84]
lea ecx, [esp + 0x20]
push ecx
push ebx
mov ecx, esi
call edx
mov edx, dword [edi]
mov ecx, dword [esp + 0x20]
mov edx, dword [edx + 0x40]
push ecx
push eax
mov ecx, edi
call edx
inc ebx
cmp ebx, dword [esp + 0x24]
jb 0x402f60
pop esi
pop ebp
pop edi
pop ebx
add esp, 8
ret 0xc
Function at 0x404560
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
push eax
push 0
push fcn.00404540
call fcn.00406f64
add esp, 0xc
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea esp, [esp]
push 1
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
call esi
test eax, eax
je 0x4045db
cmp dword [esp + 0x14], 0x12
je 0x404600
lea edx, [esp + 0x10]
push edx
call edi
lea eax, [esp + 0x10]
push eax
call ebx
push 1
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
call esi
test eax, eax
jne 0x4045b3
mov edx, dword [0x42475c]
push 0
push edx
call ebp
test eax, eax
jne 0x4045a0
mov eax, dword [0x42475c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x1c
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x1c
ret

Function at 0x404610
Capabilities:
Hide graphical window

Disassembly:
cmp dword [0x424754], 0
je 0x40463f
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x424754]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x424754]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
ret

Function at 0x404900
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 4]
push 0
push 0x404640
push 0
push 0x65
push eax
call dword [sym.imp.USER32.dll_CreateDialogParamA]
push 5
push eax
mov dword [0x424754], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x424754]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov al, 1
ret
Function at 0x405815
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4231f0]
jne 0x40581f
repz ret
jmp fcn.00407991

Function at 0x4132b6
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040aaed
and dword [ebp - 4], 0
cmp dword [0x425150], 0
mov ebx, eax
jne 0x413367
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x413418
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41dfa0
push edi
call esi
test eax, eax
je 0x413418
push eax
call fcn.0040aa7b
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x425150], eax
call esi
push eax
call fcn.0040aa7b
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x425154], eax
call esi
push eax
call fcn.0040aa7b
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x425158], eax
call esi
push eax
call fcn.0040aa7b
pop ecx
mov dword [0x425160], eax
test eax, eax
je 0x413367
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040aa7b
pop ecx
mov dword [0x42515c], eax
mov eax, dword [0x42515c]
cmp eax, ebx
je 0x4133bf
cmp dword [0x425160], ebx
je 0x4133bf
push eax
call fcn.0040aaf6
push dword [0x425160]
mov esi, eax
call fcn.0040aaf6
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4133bf
test edi, edi
je 0x4133bf
call esi
test eax, eax
je 0x4133b6
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4133b6
test byte [ebp - 0xc], 1
jne 0x4133bf
or dword [ebp + 0x10], 0x200000
jmp 0x4133f8
mov eax, dword [0x425154]
cmp eax, ebx
je 0x4133f8
push eax
call fcn.0040aaf6
pop ecx
test eax, eax
je 0x4133f8
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4133f8
mov eax, dword [0x425158]
cmp eax, ebx
je 0x4133f8
push eax
call fcn.0040aaf6
pop ecx
test eax, eax
je 0x4133f8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x425150]
call fcn.0040aaf6
pop ecx
test eax, eax
je 0x413418
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41341a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret