joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408008
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
push edi
cmp dword [esi + 4], 0
jne 0x4080a0
lea eax, [esi + 0xc]
push eax
call fcn.0040454b
pop ecx
mov word [ebp - 0x10], 2
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_htons]
mov edi, dword [ebp + 8]
mov word [ebp - 0xe], ax
movsx eax, byte [edi]
push eax
call sub.MSVCRT.dll_isalpha
pop ecx
test eax, eax
push edi
je 0x408065
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x40805c
mov eax, 0x81
jmp 0x4080a2
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x40806b
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0
push 1
pop edi
mov dword [ebp - 0xc], eax
push edi
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 8], eax
je 0x408096
lea ecx, [ebp - 0x10]
push 0x10
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x40809d
mov eax, 0x82
jmp 0x4080a2
mov dword [esi + 4], edi
xor eax, eax
pop edi
pop esi
leave
ret 8

Function at 0x4080fe
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
push dword [ebp + 8]
call sub.MSVCRT.dll_strlen
mov esi, eax
pop ecx
test esi, esi
mov ebx, esi
jbe 0x40813f
mov eax, 0x3e8
cmp esi, eax
jae 0x408122
mov eax, esi
push 0
push eax
mov eax, ebx
sub eax, esi
add eax, dword [ebp + 8]
push eax
push dword [edi + 8]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x408146
sub esi, eax
jne 0x408117
pop edi
pop esi
pop ebx
pop ebp
ret 4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push 0x40c770
push eax
call sub.MSVCRT.dll__CxxThrowException

Function at 0x40815d
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0
mov edi, ecx
push 0x3e8
push esi
push dword [edi + 8]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x408194
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push 0x40c770
push eax
call sub.MSVCRT.dll__CxxThrowException
and byte [eax + esi], 0
push esi
mov ecx, edi
call fcn.004081e0
test eax, eax
je 0x4081d8
push esi
mov ecx, edi
call fcn.004082c1
push 3
push 0x410ce4
push esi
call sub.MSVCRT.dll__mbsnbcmp
add esp, 0xc
neg eax
sbb eax, eax
push 0x40c770
and al, 0xfe
add eax, 0x85
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
call sub.MSVCRT.dll__CxxThrowException
mov eax, esi
pop edi
pop esi
pop ebp
ret 4
Function at 0x408328
Capabilities:
Read and send data from client to server
Read file on windows
Send data
Send data on socket

Disassembly:
mov eax, 0x408a48
call fcn.00408540
sub esp, 0x220
push ebx
push esi
push edi
push 0x410088
push dword [ebp + 8]
mov dword [ebp - 0x10], ecx
call sub.MSVCRT.dll_fopen
mov ebx, eax
xor edi, edi
pop ecx
cmp ebx, edi
pop ecx
je 0x40838d
push 2
push edi
push ebx
call sub.MSVCRT.dll_fseek
push ebx
call sub.MSVCRT.dll_ftell
mov esi, eax
add esp, 0x10
cmp esi, 1
jl 0x40838d
push edi
push edi
push ebx
call sub.MSVCRT.dll_fseek
push esi
call sub.MSVCRT.dll_malloc
add esp, 0x10
cmp eax, edi
mov dword [ebp + 8], eax
jne 0x408394
push ebx
call sub.MSVCRT.dll_fclose
pop ecx
xor eax, eax
jmp 0x4084b9
push dword [ebp + 0xc]
lea eax, [ebp - 0x22c]
push dword [ebp + 0xc]
push str.______NextPart_000_01C19920.83032BC0
push str._r_n_r_n___s_r_nContent_Type:_application_octet_stream__r_n_tname__s__r_nContent_Transfer_Encoding:_base64_r_nContent_Disposition:_attachment__r_n_tfilename__s__r_n_r_n
push eax
call sub.MSVCRT.dll_sprintf
mov ecx, dword [ebp - 0x10]
add esp, 0x14
lea eax, [ebp - 0x22c]
push eax
call fcn.004080fe
lea ecx, [ebp - 0x2c]
call fcn.00404000
mov dword [ebp - 4], edi
mov edi, esi
test esi, esi
jle 0x4083fc
mov eax, 0x3e8
cmp edi, eax
jge 0x4083de
mov eax, edi
push ebx
push eax
mov eax, dword [ebp + 8]
push 1
sub eax, edi
add eax, esi
push eax
call sub.MSVCRT.dll_fread
add esp, 0x10
test eax, eax
je 0x4083fc
sub edi, eax
test edi, edi
jg 0x4083d3
push ebx
call sub.MSVCRT.dll_fclose
pop ecx
push esi
lea ecx, [ebp - 0x2c]
push dword [ebp + 8]
call fcn.0040416f
push 0x400
push dword [ebp + 8]
call sub.MSVCRT.dll_realloc
pop ecx
xor esi, esi
pop ecx
mov edi, eax
lea ecx, [ebp - 0x2c]
mov dword [ebp + 0xc], esi
call fcn.0040406e
cmp eax, esi
mov dword [ebp + 8], eax
jle 0x408497
mov ebx, dword [ebp + 8]
cmp dword [ebp + 0xc], ebx
jge 0x408479
sub ebx, dword [ebp + 0xc]
cmp ebx, 0x4a
jl 0x408447
push 0x4a
pop ebx
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00404066
add eax, dword [ebp + 0xc]
push eax
lea eax, [esi + edi]
push eax
call sub.MSVCRT.dll_memcpy
add dword [ebp + 0xc], ebx
lea esi, [esi + ebx + 2]
add esp, 0xc
cmp esi, 0x39c
mov byte [esi + edi - 2], 0xd
mov byte [esi + edi - 1], 0xa
jl 0x408434
mov eax, dword [ebp - 0x10]
push 0
push esi
push edi
push dword [eax + 8]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
je 0x408497
mov eax, dword [ebp + 0xc]
xor esi, esi
cmp eax, dword [ebp + 8]
jl 0x408434
push edi
call sub.MSVCRT.dll_free
pop ecx
xor eax, eax
mov ecx, dword [ebp + 8]
cmp dword [ebp + 0xc], ecx
lea ecx, [ebp - 0x2c]
sete al
or dword [ebp - 4], 0xffffffff
mov esi, eax
call fcn.00404033
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x404548
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00406844
test esi, esi
jne 0x404580
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00406980
jmp 0x40459e
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040448c
mov edi, eax
test esi, esi
je 0x40459e
cmp dword [ebx], 0
je 0x40459e
dec esi
jmp 0x404587
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405de0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4c1050], 0
je 0x405e41
cmp word [0x4c132c], 0xd7b2
jne 0x405e09
cmp dword [0x4c1334], 0
jbe 0x405e09
mov eax, 0x4c1328
call dword [0x4c1344]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x405e6c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4be030], 0
jne 0x405e5d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x405fcc
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x4be034], 0
je 0x405ff2
mov edx, esi
mov eax, ebx
call dword [0x4be034]
jmp 0x406001
mov eax, 8
call fcn.004041d4
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4c1051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405f94
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x408614
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40877b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406844
cmp si, word [0x4be7dc]
jb 0x4086ae
cmp si, word [0x4be9dc]
ja 0x4086ae
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x4086ae
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4be7dc]
jae 0x408688
mov edi, ebx
dec edi
jmp 0x4086a9
cmp si, word [ebx*8 + 0x4be7dc]
jbe 0x408698
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x4086a9
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4be7e0]
call fcn.00408524
jmp 0x4086ae
cmp edi, dword [ebp - 0xc]
jae 0x408672
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x40875d
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40875d
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406a2c
push dword [ebp - 0x164]
push 0x408798
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406a2c
push dword [ebp - 0x168]
push 0x4087a8
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406a2c
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00406de4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408782
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.0040683c
ret
Function at 0x408934
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x408a39
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4c3b58
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4c3b70]
jne 0x408980
mov eax, esi
mov edx, 0x4c3b74
mov ecx, 0x55
call fcn.00406a2c
push 0x4c3b58
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408a23
push 0x4c3b58
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00406844
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4089f1
cmp byte [0x4c3b54], 0
je 0x4089b6
mov edx, esi
mov eax, ebx
call fcn.00408814
jmp 0x4089f1
mov edx, esi
mov eax, ebx
call fcn.00408614
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x4089f1
cmp dword [esi], 0
je 0x4089da
mov eax, esi
mov edx, 0x408a54
call fcn.00406c40
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408614
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00406c40
push 0x4c3b58
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4c3b70], bx
push 0xaa
mov eax, dword [esi]
call fcn.004068d0
push eax
push 0x4c3b74
call sub.kernel32.dll_lstrcpynW
push 0x4c3b58
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408a40
lea eax, [ebp - 4]
call fcn.00406834
ret
Function at 0x409128
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov esi, ecx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
call fcn.0040682c
mov eax, dword [ebp - 0x21c]
call fcn.0040682c
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x4092c7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00406844
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.004068d0
push eax
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrcpynW
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrlenW
add eax, eax
lea edx, [ebp - 0x20a]
add eax, edx
sub eax, 2
mov dword [edi], eax
jmp 0x4091c8
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x4091da
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x4091c5
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x409293
add dword [edi], 2
mov eax, dword [edi]
mov word [eax], 0
lea eax, [ebp - 0x20a]
mov edx, dword [edi]
sub edx, eax
sar edx, 1
jns 0x409203
adc edx, 0
mov eax, 0x105
sub eax, edx
mov dword [ebp - 0x214], eax
lea edx, [ebp - 0x220]
mov eax, dword [ebp - 0x218]
call fcn.00408c78
cmp dword [ebp - 0x220], 0
je 0x40923b
push ebp
mov eax, dword [ebp - 0x220]
call fcn.0040901c
pop ecx
mov ebx, eax
jmp 0x409293
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00408934
mov eax, dword [ebp - 0x224]
call fcn.0040901c
pop ecx
mov ebx, eax
test bl, bl
jne 0x409286
cmp byte [0x4c3b54], 0
jne 0x409286
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00408934
mov eax, dword [ebp - 0x228]
call fcn.0040901c
pop ecx
mov ebx, eax
test bl, bl
jne 0x409293
push ebp
call fcn.004090cc
pop ecx
mov ebx, eax
test bl, bl
je 0x4092a9
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406a2c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4092ce
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.0040683c
ret

Function at 0x409a40
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret
Function at 0x40cbc4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x4c3c58
push 0xa
push 0x40cc58
mov eax, dword [0x4c3c3c]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40cbe8
call fcn.00418d1c
push ebx
mov eax, dword [0x4c3c3c]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40cbff
call fcn.00418d1c
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40cc11
call fcn.00418d1c
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x4c3c5c], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x4c3c60], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x4c3c64], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x4c3c68], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x4c3c6c], ecx
add edx, dword [eax + 0x14]
mov dword [0x4c3c70], edx
pop esi
pop ebx
ret

Function at 0x411720
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4117c9
test eax, edx
je 0x4117cc
push 0
push 0
cmp word [eax - 0xa], 2
je 0x411749
push edx
mov edx, eax
mov eax, esp
call fcn.00406a48
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x41175f
push eax
lea eax, [esp + 8]
call fcn.00406a48
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41176e
movzx eax, word [eax]
sub eax, ecx
jmp 0x411795
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x4117af
add ecx, 4
js 0x411786
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x4117ac
push eax
mov eax, ecx
mov edx, 2
call fcn.0040606c
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x411793
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x411795
xor eax, eax
ret
test eax, eax
je 0x4117dc
test edx, edx
jne 0x411730
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x415f10
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 0x415f49
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406980
jmp 0x415f52
mov eax, ebx
mov edx, esi
call fcn.00406844
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x415f5c
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 0x415f7e
movzx eax, word [esp]
jmp 0x415f80
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x416710
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 0x416835
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00416520
mov esi, eax
mov eax, dword [0x4c0470]
cmp byte [eax], 0
je 0x4167dd
mov eax, dword [0x4c01f8]
call fcn.0040467c
call fcn.0040433c
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 [0x4166e8]
call fcn.00408010
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 0x416850
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x416819
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4c0194]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4c3c3c]
call fcn.00408104
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 0x41683c
lea eax, [ebp - 4]
mov edx, dword [0x4166e8]
call fcn.0040801c
ret

Function at 0x4179ec
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x417ac2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00406898
lea eax, [ebp - 4]
call fcn.00407230
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004068d0
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x417aac
mov eax, ebx
call fcn.004041d4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x417aa5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004068d0
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x417a8f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x417ad4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x417a8f
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417aac
mov eax, dword [ebp - 0x10]
call fcn.004041f0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417ac9
lea eax, [ebp - 4]
call fcn.00406834
ret
Function at 0x418bc4
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.0040637c
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 0x418b6e
mov eax, edi
add eax, eax
call fcn.004041d4
mov esi, eax
jmp 0x418b70
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 0x418ba9
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 0x418b93
mov eax, esp
cmp esi, eax
je 0x418bb6
mov eax, esi
call fcn.004041f0
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 0x418bf0
cmp bl, 0
je 0x418bec
cmp bl, 0x41
jl 0x418be7
cmp bl, 0x5a
jg 0x418be7
or bl, 0x20
xor al, bl
inc esi
jmp 0x418bcb
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x418b30

Function at 0x43dd04
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x43dda2
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xc]
je 0x43dd66
cmp byte [ebx + 0x10], 0
jne 0x43dd66
cmp byte [ebx + 0x3c], 0
jne 0x43dd66
mov byte [ebx + 0xe], 0
mov byte [ebx + 0xc], 0
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x43dd87
lea edx, [ebp - 4]
mov eax, dword [0x4c041c]
call fcn.004099cc
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x42e9e8]
call fcn.00416854
call fcn.00405880
jmp 0x43dd87
lea edx, [ebp - 8]
mov eax, dword [0x4c041c]
call fcn.004099cc
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x42e9e8]
call fcn.00416854
call fcn.00405880
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43dda9
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040683c
ret

Function at 0x43e620
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x43e66e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.0043dc88
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x43e687
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x43e690
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0043dc88
dec esi
jne 0x43e6b2
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x43fecc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4c5f98
cmp dword [edi], 0
jne 0x43ff48
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4c5f94]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4beff4
mov ecx, 2
call fcn.0040438c
mov edx, 0x43fea4
lea eax, [esi + 5]
call fcn.0043fec4
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0043fec4
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x43ff1d
mov dword [0x4c5f94], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8