joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40699c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
mov eax, esp
call fcn.00406988
add esp, 0x208
pop ebx
ret

Function at 0x408817
Capabilities:
Encode data using xor

Disassembly:
or cl, cl
jne 0x407cf9
or eax, eax
jns fcn.00407cf4
neg eax
call fcn.00407cf4
mov ax, 0x2d
mov word [esi - 2], ax
sub esi, 2
inc ecx
ret
or cl, cl
jne fcn.00407d70
mov ecx, 0xa
test dword [eax + 4], 0x80000000
je fcn.00407d70
push dword [eax + 4]
push dword [eax]
mov eax, esp
neg dword [esp]
adc dword [esp + 4], 0
neg dword [esp + 4]
call fcn.00407d70
inc ecx
mov word [esi - 2], 0x2d
sub esi, 2
add esp, 8
ret
and al, 0xdf
mov cl, al
mov eax, 1
mov ebx, dword [ebp - 0xc]
cmp ebx, dword [ebp + 8]
jg case.default.0x40869d
inc dword [ebp - 0xc]
mov esi, dword [ebp + 0xc]
lea esi, [esi + ebx*8]
mov eax, dword [esi]
movzx edx, byte [esi + 4]
jmp dword [edx*4 + 0x4086a4]
xor eax, eax
call fcn.00408904
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
sub ecx, edx
shr ecx, 1
mov ebx, dword [ebp - 4]
call fcn.00408480
lea esi, [ebp - 0x66]
mov edx, dword [ebp - 0x20]
cmp edx, 0x20
jbe 0x408712
xor edx, edx
mov ebx, ecx
sub cl, 0x44
je 0x407d38
mov ecx, 0x10
cmp bl, 0x58
je 0x407d38
mov ecx, 0xa
cmp bl, 0x55
je 0x407d38
jmp case.0x40869d.1
lea esi, [ebp - 0x86]
mov edx, dword [ebp - 0x20]
mov ebx, ecx
cmp edx, 0x10
jbe 0x40874d
xor edx, edx
sub cl, 0x44
je 0x407cd8
mov ecx, 0x10
cmp bl, 0x58
je 0x407cd8
mov ecx, 0xa
cmp bl, 0x55
je 0x407cd8
jmp case.0x40869d.1
cmp cl, 0x53
jne case.0x40869d.1
mov eax, esi
mov ecx, 1
jmp 0x4087c6
cmp cl, 0x53
jne case.0x40869d.1
movzx ecx, byte [eax]
inc eax
mov esi, 0x404b8c
jmp 0x4087e2
add esi, dword [ebp - 4]
mov edx, eax
lea eax, [ebp - 0x10]
push ebx
mov ebx, dword [ebp - 4]
call esi
pop ebx
mov esi, dword [ebp - 0x10]
jmp 0x408815
or esi, esi
pop esi
mov edx, dword [esp]
add esp, 4
mov ebx, 0x5c8a2f62
xor edx, ebx
pop edi
mov eax, edi
sub esp, 4
mov dword [esp], eax
sub esp, 4
mov eax, esp
mov dword [eax], esi
mov ecx, 0xcd594d3
shr ecx, 2
xor ecx, 0x3750761
mov ebx, 0
xor ebx, dword [ecx]
xor ebx, edx
mov dword [edi], ebx
add ecx, 4
add edi, 4
mov eax, 0x2001
mov esi, fcn.004048d4
xor eax, esi
xor eax, ecx
mov esi, 0x5f837c36
pop edi
pop edi
shr esi, 4
mov ebx, 0x5f837c3
xor ebx, esi
cmp ebx, eax
jne 0x408843
lea esp, [esp + 4]
jmp dword [esp - 4]

Function at 0x408eb4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x408eed
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00404dd4
jmp 0x408ef6
mov eax, ebx
mov edx, esi
call fcn.00404c98
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x408f00
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x408f22
movzx eax, word [esp]
jmp 0x408f24
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4096ac
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x4097d1
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004094c0
mov esi, eax
mov eax, dword [0x412c2c]
cmp byte [eax], 0
je 0x409779
mov eax, dword [0x412b68]
call fcn.0040317c
call fcn.00402f6c
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x409688]
call fcn.00405ad8
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x4097ec
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4097b5
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x412b48]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x415b48]
call fcn.00405b90
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4097d8
lea eax, [ebp - 4]
mov edx, dword [0x409688]
call fcn.00405ae4
ret

Function at 0x40aa03
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00404914
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x40aa26
mov eax, edi
add eax, eax
call fcn.00402e04
mov esi, eax
jmp 0x40aa28
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x40aa61
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x40aa4b
mov eax, esp
cmp esi, eax
je 0x40aa6e
mov eax, esi
call fcn.00402e20
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x40aaa8
cmp bl, 0
je 0x40aaa4
cmp bl, 0x41
jl 0x40aa9f
cmp bl, 0x5a
jg 0x40aa9f
or bl, 0x20
xor al, bl
inc esi
jmp 0x40aa83
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x40a9e8
Function at 0x40b698
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x40b6de
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0040b62c
mov eax, dword [ebp - 4]
call fcn.00404d24
push eax
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b6e5
lea eax, [ebp - 4]
call fcn.00404c88
ret

Function at 0x40b8fc
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x40b993
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jne 0x40b947
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW_1
mov ecx, eax
lea edx, [ebp - 0x20c]
mov eax, edi
call fcn.00404dd4
jmp 0x40b97d
call sub.kernel32.dll_GetCommandLineW_1
mov ebx, eax
cmp word [ebx], 0
jne 0x40b960
lea eax, [ebp - 4]
xor edx, edx
call fcn.00404cec
jmp 0x40b973
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0040b7bc
mov ebx, eax
test esi, esi
je 0x40b973
dec esi
jmp 0x40b94e
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00404c98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b99a
lea eax, [ebp - 4]
call fcn.00404c88
ret

Function at 0x40b9a4
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
mov edx, ebx
mov eax, esp
call fcn.00408218
add esp, 0x208
pop ebx
ret

Function at 0x40b9d0
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
mov eax, esp
call fcn.00408218
add esp, 0x208
pop ebx
ret
Function at 0x40eb50
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40ec25
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40ec40
push ebx
push 0x40ec50
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.0040513c
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00403250
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404d24
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x40ebd0
mov al, 0x6a
call fcn.0040e770
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.0040eb24
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x40ebd9
call fcn.0040eb24
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ec2c
lea eax, [ebp - 4]
call fcn.00404c88
ret

Function at 0x40ed40
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x40ee0b
jmp 0x40edff
cmp dword [esi + 0x10], 0x1000
jne 0x40edeb
test byte [esi + 0x15], 1
jne 0x40edeb
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x40ed9c
cmp ebp, 2
je 0x40ed9c
cmp ebp, 0x10
je 0x40ed9c
cmp ebp, 0x20
jne 0x40edb8
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x40edb8
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x40edc9
mov eax, dword [esi]
add eax, ebx
call fcn.0040ed38
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x40edbc
cmp byte [esp + 4], 0
je 0x40edeb
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x40ee0b
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x40ed71
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x43b63b
Capabilities:
Encode data using xor

Disassembly:
push 0x43b3c1
mov edx, dword [esp]
add esp, 4
inc edi
add edi, 0x28068e80
sub esi, 0xb2348e44
call fcn.0043b687
add esi, 0x312b44bc
add esi, 1
sub esi, 0x6059c4b0
xor dword [ebx], edx
and edi, esi
inc ebx
sub esp, 4
mov dword [esp], 0xc7a369bc
pop esi
dec esi
or esi, esi
cmp ebx, eax
jne fcn.0043b63b
dec esi
ret
Function at 0x402720
Capabilities:
Check http status code
Create http request

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
push 0
push 0
push 0
push 0
push str.EpsonOnlineHelp
mov esi, eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x18], ebx
je 0x402901
push 0
push 0x84600000
push 0
push 0
push esi
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov edi, eax
test edi, edi
je 0x4028e7
mov ebx, dword [sym.imp.WININET.dll_HttpQueryInfoW]
push 0
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0x20000013
push edi
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 4
call ebx
cmp eax, 1
jne 0x402878
mov eax, dword [esp + 0x14]
cmp eax, 0x12d
je 0x4027c2
cmp eax, 0x12e
je 0x4027c2
cmp eax, 0x12f
je 0x4027c2
cmp eax, 0x133
jne 0x4028c7
push 0
lea edx, [esp + 0x14]
push edx
push 0
push 0x21
push edi
mov dword [esp + 0x24], 0
call ebx
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x4028c7
lea eax, [eax + eax + 2]
push eax
call fcn.00412f83
mov esi, eax
add esp, 4
test esi, esi
je 0x4028c7
mov ecx, dword [esp + 0x10]
lea edx, [ecx + ecx + 2]
push edx
push 0
push esi
call fcn.00413ca0
add esp, 0xc
push 0
lea eax, [esp + 0x14]
push eax
push esi
push 0x21
push edi
call ebx
cmp eax, 1
jne 0x40286d
mov eax, esi
call fcn.004026f0
lea ecx, [eax + eax + 2]
push ecx
call fcn.00412f83
mov edx, eax
add esp, 4
test edx, edx
mov dword [ebp], edx
je 0x40286d
mov eax, esi
call fcn.004026f0
lea eax, [eax + eax + 2]
push eax
push 0
push edx
call fcn.00413ca0
add esp, 0xc
push esi
mov eax, esi
call fcn.004026f0
mov ecx, dword [ebp]
add eax, 1
push eax
push ecx
call fcn.00413046
add esp, 0xc
push esi
call fcn.00412b3f
add esp, 4
jmp 0x4028c7
cmp dword [esp + 0x14], 0xc8
jne 0x4028dd
mov eax, esi
call fcn.004026f0
lea edx, [eax + eax + 2]
push edx
call fcn.00412f83
mov edx, eax
mov eax, esi
mov dword [ebp], edx
call fcn.004026f0
lea eax, [eax + eax + 2]
push eax
push 0
push edx
call fcn.00413ca0
add esp, 0x10
push esi
mov eax, esi
call fcn.004026f0
mov ecx, dword [ebp]
add eax, 1
push eax
push ecx
call fcn.00413046
add esp, 0xc
cmp dword [ebp], 0
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
jne 0x4028f8
call esi
mov edx, dword [esp + 0x18]
push edx
call esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
call esi
mov eax, dword [esp + 0x18]
push eax
call esi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret
Function at 0x403090
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 0x4030a9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4030e4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4030e0
lea ebx, [ebx]
cmp esi, eax
jae 0x4030e4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4030d0
cmp esi, eax
jb 0x4030ea
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 0x403850
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x14
mov eax, dword [0x434bf4]
xor eax, esp
mov dword [esp + 0x10], eax
push esi
push 8
lea eax, [esp + 8]
push eax
push 5
push ecx
or esi, 0xffffffff
mov word [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4038d3
cmp word [esp + 4], 0
je 0x4038d3
lea edx, [esp + 4]
push edx
call fcn.004131e8
mov ecx, dword [0x4360b4]
add esp, 4
xor edx, edx
test ecx, ecx
je 0x4038b2
mov edi, edi
cmp ecx, eax
je 0x4038b2
mov ecx, dword [edx*8 + 0x4360bc]
add edx, 1
test ecx, ecx
jne 0x4038a0
cmp dword [edx*8 + 0x4360b4], 0
je 0x4038d3
mov eax, dword [edx*8 + 0x4360b0]
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.004127bc
add esp, 0x14
ret
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
xor ecx, esp
call fcn.004127bc
add esp, 0x14
ret
Function at 0x406abf
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x434bf4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0xc]
jne 0x406afc
push 0x42b890
push 4
push eax
call fcn.00413046
push eax
call fcn.00402ec0
add esp, 0x10
jmp 0x406b0e
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x406b79
push edi
call fcn.00413c5c
mov edi, dword [eax]
call fcn.00413c5c
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.00413c02
add esp, 0x18
mov ebx, eax
call fcn.00413c5c
cmp dword [eax], 0
je 0x406b59
call fcn.00413c5c
push dword [eax]
call fcn.004069af
pop ecx
jmp 0x406b60
call fcn.00413c5c
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x406b79
cmp ebx, esi
jae 0x406b79
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x406b7b
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004127bc
leave
ret
Function at 0x40f730
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x40f75e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40f77c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0040f69a
jmp 0x40f77c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40f77c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0040f69a
test edi, edi
mov eax, edi
jne 0x40f766
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x438544]
test ecx, ecx
je 0x40f83f
jmp 0x40f72f
ret 8

Function at 0x4127bc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x434bf4]
jne 0x4127c6
repz ret
jmp fcn.004178fd

Function at 0x41670d
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 + 0x434d80]
je 0x416728
inc edi
cmp edi, 0x17
jb 0x416719
cmp edi, 0x17
jae 0x4168a8
push ebp
push 3
call fcn.0041ef80
cmp eax, 1
pop ecx
je 0x416874
push 3
call fcn.0041ef80
test eax, eax
pop ecx
jne 0x41675c
cmp dword [0x434bd4], 1
je 0x416874
cmp ebx, 0xfc
je 0x4168a7
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x438858
push ebp
call fcn.0041ef1b
add esp, 0xc
test eax, eax
je 0x416792
push esi
push esi
push esi
push esi
push esi
call fcn.00417b12
add esp, 0x14
push 0x104
mov esi, 0x438871
push esi
push 0
mov byte [0x438975], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4167d6
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0041ef1b
add esp, 0xc
test eax, eax
je 0x4167d6
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00417b12
add esp, 0x14
push esi
call fcn.0041ee90
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41681b
push esi
call fcn.0041ee90
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x438b6c
push 0x42d32c
sub ecx, eax
push ecx
push eax
call fcn.0041edd0
add esp, 0x14
test eax, eax
je 0x41681b
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00417b12
add esp, 0x14
jmp 0x41681d
xor esi, esi
push 0x42d328
push ebx
push ebp
call fcn.0041ed5f
add esp, 0xc
test eax, eax
je 0x41683d
push esi
push esi
push esi
push esi
push esi
call fcn.00417b12
add esp, 0x14
push dword [edi*8 + 0x434d84]
push ebx
push ebp
call fcn.0041ed5f
add esp, 0xc
test eax, eax
je 0x41685f
push esi
push esi
push esi
push esi
push esi
call fcn.00417b12
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0041eba2
add esp, 0xc
jmp 0x4168a7
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4168a7
cmp ebp, 0xffffffff
je 0x4168a7
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x434d84]
push dword [esi]
call fcn.0041ee90
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 0x41eba2
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004172d2
xor ebx, ebx
cmp dword [0x439350], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x41ec78
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41ed58
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x41ed58
push eax
call fcn.00417264
mov dword [esp], 0x42d57c
push edi
mov dword [0x439350], eax
call esi
push eax
call fcn.00417264
mov dword [esp], 0x42d568
push edi
mov dword [0x439354], eax
call esi
push eax
call fcn.00417264
mov dword [0x439358], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00413973
test eax, eax
pop ecx
pop ecx
je 0x41ec46
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00417b12
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x41ec78
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00417264
cmp eax, ebx
pop ecx
mov dword [0x439360], eax
je 0x41ec78
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00417264
pop ecx
mov dword [0x43935c], eax
mov eax, dword [0x43935c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x41ecfd
cmp dword [0x439360], ecx
je 0x41ecfd
push eax
call fcn.004172db
push dword [0x439360]
mov esi, eax
call fcn.004172db
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x41ecfd
cmp edi, ebx
je 0x41ecfd
call esi
cmp eax, ebx
je 0x41ecca
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41ecca
test byte [ebp - 0x18], 1
jne 0x41ecfd
lea eax, [ebp - 0x10]
push eax
call fcn.004139aa
test eax, eax
pop ecx
je 0x41ece5
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00417b12
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x41ecf4
or dword [ebp + 0x10], 0x200000
jmp 0x41ed38
or dword [ebp + 0x10], 0x40000
jmp 0x41ed38
mov eax, dword [0x439354]
cmp eax, dword [ebp - 8]
je 0x41ed38
push eax
call fcn.004172db
cmp eax, ebx
pop ecx
je 0x41ed38
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x41ed38
mov eax, dword [0x439358]
cmp eax, dword [ebp - 8]
je 0x41ed38
push eax
call fcn.004172db
cmp eax, ebx
pop ecx
je 0x41ed38
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x439350]
call fcn.004172db
cmp eax, ebx
pop ecx
je 0x41ed58
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41ed5a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x426f4e
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x434bf4]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00426ee3
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.00413ca0
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 0x426f9d
cmp dword [ebp - 0x1c], 5
jb 0x426fb5
jmp 0x426fb1
cmp dword [ebp - 0x10], 1
jne 0x426fb5
cmp dword [ebp - 0x1c], 4
ja 0x426fb1
jne 0x426fb5
cmp dword [ebp - 0x18], 0
jbe 0x426fb5
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x42e74c
call fcn.00426db7
test eax, eax
jge 0x426fd6
mov byte [0x439524], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004127bc
add ebp, 0x78
leave
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219