joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40380c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20
mov eax, dword [0x515b00]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
add ebx, esi
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
add edi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x403875
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.00402655
lea eax, [esp + 0x14]
push 0x235
push eax
call fcn.00406309
pop ecx
pop ecx
cmp eax, dword [esp + 0x38]
je 0x40388d
lea ecx, [esp + 0x14]
add edi, 4
call fcn.004053a0
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x40383d
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00409f50
add esp, 0x20
ret
mov eax, dword [ebx + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.004053a0
jmp 0x403877

Function at 0x4067de
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x517448], eax
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 0x27
push 0x515428
push 0x547
mov esi, 0x515450
push esi
call fcn.004038ab
push 1
push 0x427554
call fcn.00406896
add esp, 0x18
mov ecx, 0x517750
push 0
call fcn.004031a4
push eax
call fcn.00402227
push 0x8aafdc01
push dword [0x517448]
call fcn.0040380c
add esp, 0xc
lea ecx, [ebp - 4]
push ecx
push 0x40
push 0x4e4
push esi
call eax
pop edi
pop esi
test eax, eax
je 0x406892
lea eax, [ebp - 0xc]
push 0x40663b
push eax
call fcn.004020fb
pop ecx
pop ecx
lea ecx, [ebp - 0xc]
call fcn.0040671a
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x406892
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x406892
call fcn.0040407b
xor eax, eax
leave
ret
Function at 0x41c31c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041c18d

Function at 0x41c716
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040acb0
mov eax, dword [0x515b00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041a20e
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41c758
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41c8b4
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00425f10
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x518100]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041d4b5
mov ecx, dword [esi*4 + 0x518100]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41c8ad
cmp eax, dword [edi + ecx + 0x24]
jne 0x41c8ad
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41c8ad
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041d4b5
add esp, 0x14
test edx, edx
jl 0x41c8ad
jg 0x41c823
test eax, eax
jb 0x41c8ad
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41c8ad
jl 0x41c83d
cmp dword [ebp - 0x1008], eax
ja 0x41c8ad
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41c85b
test ebx, ebx
je 0x41c894
cmp ecx, edi
jae 0x41c894
mov al, byte [ecx]
cmp al, 0xd
jne 0x41c875
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41c881
cmp byte [ecx + 1], 0xa
jne 0x41c881
inc ecx
jmp 0x41c881
movzx eax, al
movsx eax, byte [eax + 0x515dc8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41c85b
cmp edx, ebx
jne 0x41c85b
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41c8b2
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00409f50
leave
ret
Function at 0x41c953
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x518100]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41c993
cmp byte [ebx], 0xa
jne 0x41c993
or byte [eax + edi + 0x28], 4
jmp 0x41c998
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41ca96
mov al, byte [edx]
cmp al, 0x1a
je 0x41ca78
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41c9c7
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41c9ec
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41c9f6
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41c9a9
jmp 0x41ca96
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41ca73
cmp dword [ebp - 0xc], 0
je 0x41ca73
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x518100]
test byte [eax + edi + 0x28], 0x48
je 0x41ca4d
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41ca38
mov byte [esi], dl
jmp 0x41ca49
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x518100]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41ca96
cmp byte [ebp - 1], 0xa
jne 0x41ca5c
cmp esi, ebx
jne 0x41ca5c
mov byte [esi], 0xa
jmp 0x41ca95
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041d4d3
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41ca96
mov byte [esi], 0xd
jmp 0x41ca95
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x518100]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41ca92
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41ca96
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41ca9f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x518100]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41cae2
cmp word [esi], dx
jne 0x41cae2
or byte [edi + eax + 0x28], 4
jmp 0x41cae7
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41cc3a
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41cc1a
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41cb29
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41cb5f
cmp eax, edx
jae 0x41cb6b
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41cb01
jmp 0x41cc3a
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41cc16
cmp dword [ebp - 0x14], 0
je 0x41cc16
mov eax, dword [ebx*4 + 0x518100]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41cbee
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41cbb7
mov word [esi], cx
jmp 0x41cbea
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x518100]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x518100]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x518100]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41cc3a
pop ebx
cmp word [ebp - 4], bx
jne 0x41cbff
cmp esi, dword [ebp + 0xc]
jne 0x41cbff
mov word [esi], bx
jmp 0x41cc37
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041d4d3
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41cc3a
push 0xd
jmp 0x41cc33
mov ecx, dword [ebx*4 + 0x518100]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41cc31
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41cc3a
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42b438
Capabilities:
Encode data using xor

Disassembly:
inc eax
pushal
or al, 0x62
pop ss
popal
or al, 0xb1
cmp byte [esi - 0x15], dl
mov ch, 0x76
xor eax, 0xf6d1b84b
cmpsb byte [esi], byte es:[edi]
cmp eax, 0xe055e4f6
invalid

Function at 0x4688f2
Capabilities:
Encode data using xor

Disassembly:
cwde
mov al, 0x79
xor cl, bh
inc edx
aas
mov al, byte [0xecf25197]
mov eax, 0xb96c3286
or esi, edx
shl ebx, 0x5d
mov ecx, 0xe3c1f20b
pop ebp
les esp, [eax + 0x22ef9fef]
xor cl, ah
jo 0x468884
invalid
jge 0x468874
lodsd eax, dword [esi]
mov ecx, edi
aas
mov ebp, 0x8c76158e
jbe 0x468889
push edi
pop ebx
and al, 0x42
xor ah, ch
xor byte [ebx + 0xf], 0x32
dec edi
mov dl, 0x93
lodsd eax, dword [esi]
jno 0x4688fb
test eax, 0xa5a240be
mov bl, dl
mov byte [0x46c07c6], al
push esi
lea esi, [esi + 0x15]
jo 0x46894b
invalid
popal
sbb eax, 0xa67db224
sbb eax, 0x10cfda5b
sub byte [eax + 0x67], ah
sbb edi, dword [esp + ebp + 0x34673c80]
arpl word [ebp + 0xc], sp
adc esi, dword [edi - 0x7e]
xchg edx, ebp
out dx, al
pop edx
dec ebp
xor eax, 0x3866fbf9
invalid

Function at 0x627b69
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62e6f0
push 0x627a80
mov eax, dword fs:[0]
add byte [eax], al
add byte [eax], al
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x63ad9c], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x63ad98], ecx
shl ecx, 8
add ecx, edx
mov dword [0x63ad94], ecx
shr eax, 0x10
mov dword [0x63ad90], eax
push 1
call fcn.00628c6f
pop ecx
test eax, eax
jne 0x627bc3
push 0x1c
call fcn.00627c85
pop ecx
call fcn.00628a2c
test eax, eax
jne 0x627bd4
push 0x10
call fcn.00627c85
pop ecx
xor esi, esi
mov dword [ebp - 4], esi
call fcn.00628870
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x63b454], eax
call fcn.0062873e
mov dword [0x63ad80], eax
call fcn.006284f1
call fcn.00628438
call fcn.00628148
mov dword [ebp - 0x30], esi
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.006283e0
mov dword [ebp - 0x64], eax
test byte [ebp - 0x30], 1
je 0x627c23
movzx eax, word [ebp - 0x2c]
jmp 0x627c26
push 0xa
pop eax
push eax
push dword [ebp - 0x64]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.00628175
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x68], ecx
push eax
push ecx
call fcn.00628268
pop ecx
pop ecx
ret
Function at 0x628d05
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x6323e8
cmp edx, dword [eax]
je 0x628d27
add eax, 8
inc ecx
cmp eax, 0x632478
jl 0x628d18
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x6323e8]
jne 0x628e55
mov eax, dword [0x63ad88]
cmp eax, 1
je 0x628e2f
test eax, eax
jne 0x628d58
cmp dword [0x632310], 1
je 0x628e2f
cmp edx, 0xfc
je 0x628e55
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x628d8f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.006296f0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00629b80
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x628dd2
lea eax, [ebp - 0x1a4]
push eax
call fcn.00629b80
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x62ea54
push edi
call fcn.0062ba50
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.006296f0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00629700
lea eax, [ebp - 0xa0]
push 0x62ea34
push eax
call fcn.00629700
push dword [esi + 0x6323ec]
lea eax, [ebp - 0xa0]
push eax
call fcn.00629700
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0062b9c4
add esp, 0x2c
pop edi
jmp 0x628e55
lea eax, [ebp + 8]
lea esi, [esi + 0x6323ec]
push 0
push eax
push dword [esi]
call fcn.00629b80
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x402550
Capabilities:
Check for debugger via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415d10
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x10
mov eax, dword [0x479010]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
cmp dword [ebp - 0x18], 0
je 0x4025ad
mov byte [ebp - 0x19], 1
jmp 0x4025b1
mov byte [ebp - 0x19], 0
mov al, byte [ebp - 0x19]
jmp 0x4025d9
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040a57e
mov esp, ebp
pop ebp
ret
Function at 0x4047e0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415f10
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x864
mov eax, dword [0x479010]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x85c], ecx
mov dword [ebp - 4], 0
push str.CREATE_SUSPENDED
mov eax, dword [ebp - 0x85c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x85c]
mov eax, dword [edx + 0x24]
call eax
push 0x400
lea ecx, [ebp - 0x814]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 0x86c], str.dY92xvQcF4tmUiQM31eOrXtQaxfUQ96OjGAmgtRUOonKdfDAdBfjauAXtTLubIQoGMxU29F03tecwzHo3ciSbHPlabEshbWzF72m40BAR9edsHhDEz9QTTDAjXBKGyv1BS5aqGJjnb6CXLMLcUxixyaQuHOzhwKtWIFu0YNjcfWukwOfSMc38fiNUKSneqcEeDGktNhiARoc9ldA39IGxJyCnlST3dsj222opcjpmuuklh0i5jJAuRe0dBk8Bttd4HvcanLnSqHKcXoRt3MSuGh9kzdk3sh75NU0TEeq9U1DSJdojUsSSAjXxwLY04PuYNpW9vGuCKVGrBPrPv5uqRCdPh2y6mCm1sntcP2ex9urr7GOPXyoUMAAf7dQre2XISBB3UfDwl8eubEM8lHoUYC402z3omTiynGhJUsaddH6eK0CmAs3tC23Al1ykxqkMXo8PyDIq0GjgTovRrRAbt0qKE60EBe0pABur7HEkfcjfLSAOrbX7SDvwW09LtjbbYmr9vrLjOXMSyV06YHOTLV7bvx37a5IEFPH4bwk3VqyOznKnkYvEDJrfXbS6Khn74lIQaw1s7AILbqU5uC41yOdzf46do7UEnlFC6S2Je9xrOIprmph9cPweDThUk916Eqp49XXnspsz2fboFfzILk1xK7hHRjj3Lktl61U4klcTpq4HUd8U6IH9uH74qXqQpV9aj9oOGxAdD1VPvuOrAm6T9m0wrPSF8goIHnmTGgJfuex4AqdvbsaXhonCu4dmgsSLNDgOPmUONCBqevyRq7iIPJTTb9RC0P0xEIYnYoCJtaPIekPKtklS10nWf1eQmPMLWjQDhuxOvdQujFKW0XDlqqQjrWHhb24KV0FUctzU0uf4WqEHiQVlXRBCEDzO89ihqfEMxMMR58zyuEEPdBslPP2tNa8eI3EDNrx7uvvyXGjM6vwFcOS5CvPvV0z0fJ3F3Or2umfR03UpKlK1gVkxbFPl707mSl4GJwYTlIFGxxONhAxd0hn1KL5FxpQmBa0yXBcnaAJX5Pk8jSM8A631RQR9sSRKeDQEuYBoqBvB82MilV59KwQmnFDtdse8oikPytb6T5kzjBrYEFI8QxH6vy3lbxTMySOw4MjYHUIOlqvEo5JwL50yKwYuSWOO1drCqwTIhHol0KawwmOe0UAl0cwFQSS4Th0yGaejnDg78fwANNoFBJKkoSUALXX89e1ir65Y7ztbFUFyRQzOd7hCsuF4l8PqyjHgRAHgS0lxCeBYa6a93xkB3ysQmNg5HWYsJMLUt4pf5Xl8WhGS5oyBlubXRTW6Osc5u3TKoctpYlHwARS74Kf20bjEHGQvbFoUOeBDBxV9YJi4EsOH9JPUD1AFybrXXgvaCQ4ElC7zTkJXUfxy528iRYaH2sPALAyStzsquCakC7tMdzmwrn1zCO3lGIOe2BFQGsGchhINc3y41VL4hE6EMpaMjWSTjq9qXg8oNbJzn3W0jfVzaGh4bHIUNtfuzDpBNaaKYXI85w5vSwlolrScnu4mBh0o2cvCEsyVz5lGIreTQ67721CtJqHpBS8p8obT2vrx1PpafnB1zG3vuxAfnUe6imwOELL3qInbAjS96tf4FhyxYfgMahr8ApWmAigVnChnitP0fs9M2cIpOpwnKAeV0h5cddhxrNuAT5vGbAajP8dugqCeyNEDuOrX557
push 0x44
push 0
lea edx, [ebp - 0x858]
push edx
call fcn.00409d20
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x85c]
call fcn.00406d00
mov dword [ebp - 0x864], eax
push 0x47a4b4
lea ecx, [ebp - 0x858]
push ecx
push 0
push 0
push 4
push 0
push 0
push 0
mov edx, dword [ebp - 0x864]
push edx
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
jmp 0x404900
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040a57e
mov esp, ebp
pop ebp
ret 4
Function at 0x405ea0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4161b3
mov eax, dword fs:[0]
push eax
sub esp, 0x83c
mov eax, dword [0x479010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x83c], ecx
mov dword [ebp - 4], 0
push 0x4595dc
push 0x66
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x818], eax
cmp dword [ebp - 0x818], 0
jne 0x405f1a
mov dword [ebp - 0x834], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00401820
mov eax, dword [ebp - 0x834]
jmp 0x406053
mov eax, dword [ebp - 0x818]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x820], eax
push 0x400
lea ecx, [ebp - 0x810]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edx, dword [ebp - 0x818]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x81c], eax
cmp dword [ebp - 0x81c], 0
jne 0x405f8f
mov dword [ebp - 0x838], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00401820
mov eax, dword [ebp - 0x838]
jmp 0x406053
mov eax, dword [ebp - 0x81c]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x814], eax
cmp dword [ebp - 0x814], 0
jne 0x405fcf
mov dword [ebp - 0x830], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00401820
mov eax, dword [ebp - 0x830]
jmp 0x406053
movzx ecx, byte [ebp + 8]
test ecx, ecx
je 0x406032
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x848], esp
lea edx, [ebp + 0xc]
push edx
call fcn.004038f0
mov dword [ebp - 0x82c], eax
mov eax, dword [ebp - 0x82c]
mov dword [ebp - 0x844], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x820]
push ecx
push 0
mov edx, dword [ebp - 0x814]
push edx
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x83c]
call fcn.00406ff0
mov dword [ebp - 0x824], eax
mov eax, dword [ebp - 0x824]
mov dword [ebp - 0x814], eax
mov ecx, dword [ebp - 0x814]
mov dword [ebp - 0x828], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00401820
mov eax, dword [ebp - 0x828]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040a57e
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x4067c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4067e4
xor eax, eax
jmp 0x406864
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4067fb
xor eax, eax
jmp 0x406864
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x406847
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x406847
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x40681e
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x406853
xor eax, eax
jmp 0x406864
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x406861
xor eax, eax
jmp 0x406864
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4105d8
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x479010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040c165
mov dword [ebp - 0x14], eax
cmp dword [0x47b378], esi
jne 0x4106cb
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x410658
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4107ab
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4107ab
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4107ab
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x47b378], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x47b37c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x47b380], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x47b388], eax
test eax, eax
je 0x4106c8
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x47b384], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4106f0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4106e3
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x410705
push 4
pop eax
jmp 0x4107ad
cmp dword [ebp - 0x14], esi
je 0x410705
push dword [0x47b378]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4106ea
mov eax, dword [0x47b384]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x410763
cmp dword [0x47b388], edi
je 0x410763
push eax
call ebx
push dword [0x47b388]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x410763
test eax, eax
je 0x410763
call ecx
test eax, eax
je 0x410758
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x410758
test byte [ebp - 8], 1
jne 0x410763
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x410793
mov eax, dword [0x47b37c]
cmp eax, edi
je 0x410790
push eax
call ebx
test eax, eax
je 0x410790
call eax
mov esi, eax
test esi, esi
je 0x410790
mov eax, dword [0x47b380]
cmp eax, edi
je 0x410790
push eax
call ebx
test eax, eax
je 0x410790
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x47b378]
call ebx
test eax, eax
je 0x4107ab
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4107ad
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a57e
mov esp, ebp
pop ebp
ret