joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402350
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402369
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4023a4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4023a0
lea ebx, [ebx]
cmp esi, eax
jae 0x4023a4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402390
cmp esi, eax
jb 0x4023aa
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x403b70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42f71c
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x43cd4c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
xor ebx, ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov eax, 0xf
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], ebx
mov byte [esi + 0x30], bl
mov dword [esi + 0x60], eax
mov dword [esi + 0x5c], ebx
mov byte [esi + 0x4c], bl
push 0x435598
mov byte [esp + 0x18], 3
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [esi + 0x24], eax
je 0x403bec
push str.CreateLabelPrint
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
jne 0x403c04
push 0x10
push 0x435598
push str.PrintDll_Load_Error
push ebx
mov dword [esi + 0x28], ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x403c09
call eax
mov dword [esi + 0x28], eax
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x4055b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42f5d8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x43cd4c]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x43cd4c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], 0
mov byte [esp + 0xc], 0
mov dword [esp + 0x30], 0
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jne 0x405612
push 6
push 0x4350bc
call fcn.00402490
mov edx, dword [esi]
lea ecx, [esp + 8]
push ecx
push edx
call fcn.004011d0
cmp dword [esp + 0x20], 0x10
mov edx, dword [esp + 0xc]
jae 0x40562e
lea edx, [esp + 0xc]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x405633
sub eax, esi
push eax
push edx
lea ecx, [edi + 0x48]
call fcn.00401670
cmp dword [esp + 0x20], 0x10
jb 0x40565c
mov eax, dword [esp + 0xc]
push eax
call fcn.00407777
add esp, 4
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0041779c
add esp, 0x2c
ret

Function at 0x408f4b
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x1f4]
sub esp, 0x274
mov eax, dword [0x43cd4c]
xor eax, ebp
mov dword [ebp + 0x1f0], eax
cmp dword [ebp + 0x200], 0x800
mov eax, dword [ebp + 0x1fc]
push esi
mov dword [ebp - 0x40], eax
mov esi, ecx
lea eax, [ebp + 0x1e8]
jne 0x408fe9
push 0x431c2c
push 4
push eax
call fcn.00418d9a
push eax
call fcn.004023c0
add esp, 0x10
push ebx
push edi
call fcn.00418e7c
mov edi, dword [eax]
call fcn.00418e7c
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp + 0x1e8]
push eax
push dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00418e22
add esp, 0x18
mov dword [ebp - 0x40], eax
call fcn.00418e7c
cmp dword [eax], ebx
je 0x409000
call fcn.00418e7c
push dword [eax]
call fcn.0040822d
pop ecx
jmp 0x409007
push 4
push eax
push 3
push dword [ebp + 0x200]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x408f9a
jmp 0x409079
call fcn.00418e7c
mov dword [eax], edi
cmp dword [ebp - 0x40], 0xffffffff
je 0x409075
cmp dword [ebp - 0x40], esi
jae 0x409075
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x80], 0x40
call fcn.0041a540
add esp, 0xc
push 0x43198c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x409067
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x409067
lea ecx, [ebp - 0x80]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x409067
push ebx
push ebx
push esi
jmp 0x40906d
push ebx
push ebx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x409077
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x1f0]
xor ecx, ebp
pop esi
call fcn.0041779c
add ebp, 0x1f4
leave
ret
Function at 0x40b4e3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x42ebe6
call fcn.00418be2
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.0041125b
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x40b52e
call fcn.0041125b
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x40b53f
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x40b54c
or eax, 0xffffffff
jmp 0x40b6a8
mov ecx, esi
call fcn.0040b02a
mov dword [ebp - 0x14], eax
call fcn.0040dd36
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x40b5ca
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x40b5ca
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x40b5ca
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.004083d4
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x40b5ca
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x40b5ca
mov ecx, ebx
call fcn.004108f7
test eax, eax
je 0x40b5ca
push 0
mov ecx, ebx
call fcn.00410912
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.0040f66e
push dword [ebp - 0x14]
call fcn.0040dc8e
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.0040b2eb
xor edi, edi
cmp eax, edi
je 0x40b627
test byte [esi + 0x3c], 0x10
je 0x40b611
push 4
pop edi
mov ecx, esi
call fcn.00410861
test ax, 0x100
je 0x40b607
push 5
pop edi
push edi
mov ecx, esi
call fcn.0040d824
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x40b627
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00410954
or dword [ebp - 4], 0xffffffff
jmp 0x40b652
cmp dword [ebp - 0x28], edi
je 0x40b660
push 1
mov ecx, ebx
call fcn.00410912
cmp dword [ebp - 0x2c], edi
je 0x40b670
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x40b689
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x40b689
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.0040b064
cmp dword [esi + 0x58], edi
je 0x40b6a5
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.00418c4e
ret
Function at 0x40ec64
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x40ec9d
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004083b3
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0040838e
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x410788
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x4107cb
call fcn.0041125b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4107cb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4107e6
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00410342
test ebx, ebx
mov esi, eax
je 0x4107e4
test edi, edi
je 0x4107e4
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x411e37
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x411e40
xor eax, eax
jmp 0x411ea9
cmp dword [esp + 8], 0
jne 0x411e4c
call fcn.0040804b
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.0041b920
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x411e87
push dword [esi + 0x10]
call fcn.0041b626
test eax, eax
pop ecx
jne 0x411e87
mov esi, dword [esi + 0xc]
call fcn.00418e8f
push esi
push dword [eax]
push 1
call fcn.00415eca
push dword [esi + 0x10]
call fcn.0041b655
test eax, eax
pop ecx
je 0x411ea6
push dword [esi + 0x10]
call fcn.0041b57a
push eax
call fcn.004023c0
pop ecx
pop ecx
jmp 0x411e75
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x411eb2
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x411ebc
call fcn.0040804b
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.0041ba9a
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x411ee9
mov esi, dword [esi + 0xc]
call fcn.00418e8f
push esi
push dword [eax]
push 1
call fcn.00415eca
pop esi
ret 8

Function at 0x41779c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43cd4c]
jne 0x4177a6
repz ret
jmp fcn.0041f7c5
Function at 0x41b684
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x41b6c1
cmp dword [ebp + 0x14], edi
je 0x41b6c1
cmp ecx, edi
jne 0x41b6c8
call fcn.00418e7c
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.004172bc
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x41b6dc
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x41b6fd
cmp ebx, 0xffffffff
je 0x41b6ec
push ebx
push edi
push ecx
call fcn.0041a540
add esp, 0xc
cmp esi, edi
je 0x41b6a9
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x41b6a9
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x41b719
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x41b720
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x41b811
test word [esi + 0xc], 0x10c
je 0x41b774
mov eax, dword [esi + 4]
test eax, eax
je 0x41b774
jl 0x41b872
cmp ebx, eax
mov edi, ebx
jb 0x41b745
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x41b819
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00417444
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x41b809
cmp ebx, dword [ebp - 0xc]
jb 0x41b7e1
cmp dword [ebp - 0xc], 0
je 0x41b79e
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x41b793
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x41b79a
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x41b7a9
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x41b7a9
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x41b845
push eax
push dword [ebp - 8]
push esi
call fcn.0041b3c7
pop ecx
push eax
call fcn.004263f4
add esp, 0xc
test eax, eax
je 0x41b884
cmp eax, 0xffffffff
je 0x41b872
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x41b809
push esi
call fcn.0041de48
cmp eax, 0xffffffff
pop ecx
je 0x41b876
cmp dword [ebp - 4], 0
je 0x41b845
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x41b728
mov eax, dword [ebp + 0x14]
jmp 0x41b6c3
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x41b830
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0041a540
add esp, 0xc
call fcn.00418e7c
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x41b6b9
cmp dword [ebp + 0xc], 0xffffffff
je 0x41b85b
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0041a540
add esp, 0xc
call fcn.00418e7c
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x41b6b9
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x41b6c3
or dword [esi + 0xc], 0x10
jmp 0x41b876
Function at 0x41ca1b
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x43cef0]
je 0x41ca36
inc edi
cmp edi, 0x17
jb 0x41ca27
cmp edi, 0x17
jae 0x41cbb6
push ebp
push 3
call fcn.00427e72
cmp eax, 1
pop ecx
je 0x41cb82
push 3
call fcn.00427e72
test eax, eax
pop ecx
jne 0x41ca6a
cmp dword [0x43cd28], 1
je 0x41cb82
cmp ebx, 0xfc
je 0x41cbb5
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x440228
push ebp
call fcn.0041e0be
add esp, 0xc
test eax, eax
je 0x41caa0
push esi
push esi
push esi
push esi
push esi
call fcn.004171c0
add esp, 0x14
push 0x104
mov esi, 0x440241
push esi
push 0
mov byte [0x440345], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41cae4
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0041e0be
add esp, 0xc
test eax, eax
je 0x41cae4
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004171c0
add esp, 0x14
push esi
call fcn.0041e130
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41cb29
push esi
call fcn.0041e130
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x44053c
push 0x43398c
sub ecx, eax
push ecx
push eax
call fcn.00427dbf
add esp, 0x14
test eax, eax
je 0x41cb29
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004171c0
add esp, 0x14
jmp 0x41cb2b
xor esi, esi
push 0x433988
push ebx
push ebp
call fcn.00427d4e
add esp, 0xc
test eax, eax
je 0x41cb4b
push esi
push esi
push esi
push esi
push esi
call fcn.004171c0
add esp, 0x14
push dword [edi*8 + 0x43cef4]
push ebx
push ebp
call fcn.00427d4e
add esp, 0xc
test eax, eax
je 0x41cb6d
push esi
push esi
push esi
push esi
push esi
call fcn.004171c0
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00427b91
add esp, 0xc
jmp 0x41cbb5
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x41cbb5
cmp ebp, 0xffffffff
je 0x41cbb5
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x43cef4]
push dword [esi]
call fcn.0041e130
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x427b91
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0041d5df
xor ebx, ebx
cmp dword [0x440d28], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x427c67
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x427d47
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x427d47
push eax
call fcn.0041d571
mov dword [esp], 0x433db8
push edi
mov dword [0x440d28], eax
call esi
push eax
call fcn.0041d571
mov dword [esp], 0x433da4
push edi
mov dword [0x440d2c], eax
call esi
push eax
call fcn.0041d571
mov dword [0x440d30], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0041a663
test eax, eax
pop ecx
pop ecx
je 0x427c35
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004171c0
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x427c67
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0041d571
cmp eax, ebx
pop ecx
mov dword [0x440d38], eax
je 0x427c67
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041d571
pop ecx
mov dword [0x440d34], eax
mov eax, dword [0x440d34]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x427cec
cmp dword [0x440d38], ecx
je 0x427cec
push eax
call fcn.0041d5e8
push dword [0x440d38]
mov esi, eax
call fcn.0041d5e8
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x427cec
cmp edi, ebx
je 0x427cec
call esi
cmp eax, ebx
je 0x427cb9
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x427cb9
test byte [ebp - 0x18], 1
jne 0x427cec
lea eax, [ebp - 0x10]
push eax
call fcn.0041a69a
test eax, eax
pop ecx
je 0x427cd4
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004171c0
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x427ce3
or dword [ebp + 0x10], 0x200000
jmp 0x427d27
or dword [ebp + 0x10], 0x40000
jmp 0x427d27
mov eax, dword [0x440d2c]
cmp eax, dword [ebp - 8]
je 0x427d27
push eax
call fcn.0041d5e8
cmp eax, ebx
pop ecx
je 0x427d27
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x427d27
mov eax, dword [0x440d30]
cmp eax, dword [ebp - 8]
je 0x427d27
push eax
call fcn.0041d5e8
cmp eax, ebx
pop ecx
je 0x427d27
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x440d28]
call fcn.0041d5e8
cmp eax, ebx
pop ecx
je 0x427d47
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x427d49
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42e541
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x43cd4c]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0042e4d6
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0041a540
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x42e590
cmp dword [ebp - 0x1c], 5
jb 0x42e5a8
jmp 0x42e5a4
cmp dword [ebp - 0x10], 1
jne 0x42e5a8
cmp dword [ebp - 0x1c], 4
ja 0x42e5a4
jne 0x42e5a8
cmp dword [ebp - 0x18], 0
jbe 0x42e5a8
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x434e14
call fcn.0042e3aa
test eax, eax
jge 0x42e5c9
mov byte [0x440ed4], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041779c
add ebp, 0x78
leave
ret
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219
Function at 0x630a7560
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x630a7598
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp edx, ebx
ja 0x630a758e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x630a759a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x630a7580
xor eax, eax
pop ebx
pop esi
ret

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

Disassembly:
inc ebx
jnp 0x401e86
jmp 0x401e97
push esi
jmp 0x401eac
push 0
jmp 0x401ec0
push 0xe553a458
call ebp
nop
mov ebx, eax
invalid
or byte [eax], al
invalid

Function at 0x403860
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4102a8]
mov eax, dword [eax]
invalid

Function at 0x404310
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp - 0x15]
aam 0xbd
enter 0x40c0, 0
push esi
mov esi, dword [0x408c80]
mov ecx, 0x68403878
mov ebp, 0xd6ff5100
or byte [eax + eax*2 + 0x3878b900], 0x40
push 0xbdf264
push ecx
call esi
xchg ebx, eax
inc edi
enter 0x40c0, 0
scasb al, byte es:[edi]
push esp
inc eax
add byte [edx + eax*8 + 0x40], ah
push edx
call esi
mov eax, dword [0x1040c0c8]
push 0x40f21a
xor dword [eax + 0x54], 0x50
call esi
mov ecx, dword [0x4023c8]
push 0x4b40f1e4
mov bh, 0xc1
sbb dword [ecx - 1], edx
salc
or dword [0x9b40c0c8], edx
push 0x4026ac
add edx, 0x40
push edx
call esi
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push 0x40f179
add eax, 0x40
push eax
daa
salc
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
dec esp
out 0xdd, eax
inc eax
add byte [ebx - 0xae3a3f], al
ja 0x40431f
adc eax, 0x28c0c8
push str.strspn
add edx, 0x40
push edx
call esi
mov eax, dword [0xff40c0c8]
add esp, 0x44
add eax, 0x43
int 0x1e
invalid
Function at 0x9de058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.009de1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x9de07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9de06a
add dl, dl
jne 0x9de089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9de0dc
xor eax, eax
add dl, dl
jne 0x9de096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9de17d
add dl, dl
jne 0x9de0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9de0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9de0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9de0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x9de0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x9de075
mov eax, 1
add dl, dl
jne 0x9de0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9de0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9de0e1
sub eax, ebx
mov ebx, 1
jne 0x9de128
mov ecx, 1
add dl, dl
jne 0x9de10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9de119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9de105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9de075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x9de13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9de14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9de136
cmp eax, 0x7d00
jae 0x9de16d
cmp eax, 0x500
jb 0x9de168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9de075
cmp eax, 0x7f
ja 0x9de170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9de075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x9de19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x9de075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10