joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4395e8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x47ddc8]
cmp byte [eax + 0xc], 0
je 0x439755
push 0x8000
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43974e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x47e27c], 0
jne 0x43963c
push 0x43975c
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
push 0x439764
push ebx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x47e27c], eax
cmp dword [0x477198], 0
jne 0x439737
push 0x439774
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x477198], eax
cmp dword [0x477198], 0
je 0x439737
push 0x439780
mov eax, dword [0x477198]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x47e280], eax
push 0x439790
mov eax, dword [0x477198]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x47e284], eax
push 0x4397a4
mov eax, dword [0x477198]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x47e288], eax
push 0x4397bc
mov eax, dword [0x477198]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x47e28c], eax
push 0x4397d4
mov eax, dword [0x477198]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x47e290], eax
push 0x4397e8
mov eax, dword [0x477198]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x47e294], eax
push 0x439800
mov eax, dword [0x477198]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x47e298], eax
push 0x439818
mov eax, dword [0x477198]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x47e29c], eax
push 0x439834
mov eax, dword [0x477198]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x47e2a0], eax
push 0x439840
mov eax, dword [0x477198]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x47e2a4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x439755
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x4465a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x47e47c
cmp dword [edi], 0
jne 0x44661c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x47e478]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4771ec
mov ecx, 2
call fcn.0045394c
mov edx, 0x446578
lea eax, [esi + 5]
call fcn.00446598
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00446598
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 0x4465f1
mov dword [0x47e478], 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
Function at 0x447620
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00455544
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x447678
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x47e0dc]
mov dl, 1
mov eax, dword [0x447144]
call fcn.0044c694
call fcn.00454cd0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0044724c
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x448a44
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x448ad4
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x448ad4
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x448a87
test edx, 3
jne 0x448a76
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x448a81
jmp 0x448a87
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x448a87
cmp dword [ecx - 8], 1
je 0x448a91
mov edx, ebx
or edx, 3
call fcn.004557cc
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x448aa3
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00455080

Function at 0x448ae0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x448b70
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x448b70
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x448b23
test edx, 3
jne 0x448b12
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x448b1d
jmp 0x448b23
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x448b23
cmp dword [ecx - 8], 1
je 0x448b2d
mov edx, ebx
or edx, 3
call fcn.004557cc
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x448b3f
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00455080

Function at 0x44bdd4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x44be0d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00455170
jmp 0x44be16
mov eax, ebx
mov edx, esi
call fcn.004550d4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x44be20
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x44be42
movzx eax, byte [esp]
jmp 0x44be44
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x44c4d4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x44c34c
mov eax, dword [0x47df88]
cmp byte [eax], 0
je 0x44c550
mov eax, dword [0x47df8c]
call fcn.00453c54
call fcn.004538b8
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.USER32.DLL_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0044956c
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x44c598
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x44c586
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x47de30]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x47e0f4]
call fcn.00456220
push eax
call sub.USER32.DLL_LoadStringA
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.USER32.DLL_MessageBoxA
add esp, 0x444
ret

Function at 0x44cde4
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 0x44ceba
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00455118
lea eax, [ebp - 4]
call fcn.00455594
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00455544
push eax
call sub.VERSION.DLL_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x44cea4
mov eax, ebx
call fcn.004536ec
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x44ce9d
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.00455544
push eax
call sub.VERSION.DLL_GetFileVersionInfoA
test eax, eax
je 0x44ce87
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x44cecc
mov eax, dword [ebp - 0x10]
push eax
call sub.VERSION.DLL_VerQueryValueA
test eax, eax
je 0x44ce87
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 0x44cea4
mov eax, dword [ebp - 0x10]
call fcn.00453708
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44cec1
lea eax, [ebp - 4]
call fcn.00455080
ret
Function at 0x453b48
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00455080
test esi, esi
jne 0x453b7e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00455170
jmp 0x453b9c
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00453a4c
mov edi, eax
test esi, esi
je 0x453b9c
cmp dword [ebx], 0
je 0x453b9c
dec esi
jmp 0x453b85
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x454284
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x477544]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x45431c
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x4542fc
xor eax, eax
push ebp
push 0x4542f5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x454338
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4542fc
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
movzx eax, word [0x477544]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x477544], ax
mov esp, ebp
pop ebp
ret

Function at 0x454f00
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47efbc], 0
je 0x454f61
cmp word [0x47f190], 0xd7b2
jne 0x454f29
cmp dword [0x47f198], 0
jbe 0x454f29
mov eax, 0x47f18c
call dword [0x47f1a8]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
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 0x454f88
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x477550], 0
jne 0x454f7d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret
Function at 0x45643c
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x45666c
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x4564bf
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x45666c
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x4564bf
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x456688
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x456548
xor eax, eax
push ebp
push 0x456541
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00456278
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x456526
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4566a8
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x456526
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x456548
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x456662
cmp byte [ebp - 0xd], 0
jne 0x45658f
cmp byte [ebp - 0x12], 0
je 0x456662
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4565a8
dec ebx
cmp byte [ebx], 0x2e
je 0x4565b7
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4565a7
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x456662
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4565f4
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x456662
cmp byte [ebp - 0xd], 0
je 0x456662
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x456662
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x456db4
Capabilities:
Accept command line arguments

Disassembly:
sub dword [0x47f534], 1
jae 0x456e48
call fcn.004534c8
mov byte [0x477540], 2
mov dword [0x47ef80], 0x47551e
mov dword [0x47ef84], 0x475530
mov byte [0x47efbe], 2
mov dword [0x47ef6c], 0x455f50
call fcn.00454254
test al, al
je 0x456e00
call fcn.00454284
call fcn.00454348
mov word [0x47efc4], 0xd7b0
mov word [0x47f190], 0xd7b0
mov word [0x47f35c], 0xd7b0
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x47efb0], eax
call fcn.00451d8c
mov dword [0x47efac], eax
call sub.KERNEL32.DLL_GetACP
mov dword [0x47f538], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x47efa4], eax
ret

Function at 0x469958
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x469974
call fcn.0046aabc
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x469993
test bl, 1
je 0x469993
call fcn.0046fb54
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x46cc04
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea eax, [ebp - 0x200]
push eax
push 0x1001
mov edx, dword [ebx + 4]
push edx
call sub.KERNEL32.DLL_GetLocaleInfoA
push str._._n
lea ecx, [ebp - 0x200]
push ecx
call fcn.004687a8
add esp, 8
lea eax, [ebp - 0x200]
push eax
call fcn.00468838
pop ecx
mov edx, pe_nt_image_headers32
sub edx, eax
push edx
lea ecx, [ebp - 0x200]
push ecx
call fcn.00468838
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
push 0x1002
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
push 0x47bd65
lea ecx, [ebp - 0x200]
push ecx
call fcn.004687a8
add esp, 8
push 0xa
lea eax, [ebp - 0x200]
push eax
call fcn.00468838
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
mov ecx, dword [ebx]
push ecx
call fcn.0046dc6c
add esp, 0xc
cmp dword [ebx + 0x24], 0
jne 0x46cd15
push esi
call fcn.00468838
pop ecx
mov edi, eax
lea eax, [ebp - 0x200]
push eax
call fcn.00468838
pop ecx
add edi, eax
add edi, 3
push edi
call fcn.00468438
pop ecx
mov edi, eax
mov dword [ebx + 0x24], edi
test edi, edi
jne 0x46ccec
xor eax, eax
jmp 0x46cd9c
push esi
call fcn.00468838
pop ecx
push eax
lea edx, [ebp - 0x200]
push edx
call fcn.00468838
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push 0
push edi
call fcn.00468700
add esp, 0xc
jmp 0x46cd55
mov edi, dword [ebx + 0x24]
push edi
call fcn.00468838
pop ecx
push eax
push esi
call fcn.00468838
pop ecx
pop edx
add edx, eax
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.00468838
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push edi
call fcn.00468458
add esp, 8
mov dword [ebx + 0x24], eax
cmp dword [ebx + 0x24], 0
jne 0x46cd55
xor eax, eax
jmp 0x46cd9c
push esi
mov edx, dword [ebx + 0x24]
push edx
call fcn.004687a8
add esp, 8
push 0x47bd67
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.004687a8
add esp, 8
lea eax, [ebp - 0x200]
push eax
mov edx, dword [ebx + 0x24]
push edx
call fcn.004687a8
add esp, 8
push 0x47bd69
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.004687a8
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46fae8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
jne 0x46fb15
jmp 0x46fb4c
call fcn.0046fa98
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.00468838
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.00468838
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x46fbcc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x47c398], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x46fca6
cmp dword [0x47c394], 0
jne 0x46fca6
cmp dword [0x47c578], 0
je 0x46fc60
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.0046f998
add esp, 8
mov ebx, eax
test eax, eax
jne 0x46fc46
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.0046f998
add esp, 8
mov ebx, eax
test eax, eax
jne 0x46fc46
lea ebx, [ebp - 0x84]
jmp 0x46fc47
inc ebx
call fcn.0046fb88
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x46fce1
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x47c39c
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00468838
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x47c39f
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x46fce1
cmp dword [0x47c394], 0
je 0x46fcc0
cmp dword [0x47c394], 0xffffffff
je 0x46fce1
push esi
call dword [0x47c394]
pop ecx
mov eax, dword [0x47c398]
test eax, eax
je 0x46fce1
cmp dword [0x47c398], 0xffffffff
je 0x46fce1
cmp byte [eax], 0
je 0x46fce1
push esi
push eax
call fcn.0046fae8
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x470478
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x482434], 0
jne 0x4704f9
cmp dword [0x482454], 0
jne 0x4704a8
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x482454], eax
test eax, eax
jne 0x4704a8
push str.GetEnvironmentStrings_failed
call fcn.0046fcf8
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x482454]
jmp 0x4704bc
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.00468838
pop ecx
mov edi, eax
test eax, eax
jne 0x4704b4
lea edi, [ebp + 1]
push edi
call fcn.00468438
pop ecx
mov ebx, eax
mov dword [0x482438], ebx
test ebx, ebx
jne 0x4704e6
xor eax, eax
jmp 0x4705bc
push edi
mov edx, dword [0x482454]
push edx
push ebx
call fcn.0046866c
add esp, 0xc
jmp 0x470519
xor esi, esi
mov ebx, dword [0x482434]
jmp 0x470513
push eax
call fcn.00468838
pop ecx
test eax, eax
jne 0x47050f
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x470503
lea ebx, [esi + 4]
push 4
mov dword [0x48243c], ebx
inc ebx
push ebx
call fcn.004680f8
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x47053c
xor eax, eax
jmp 0x4705bc
cmp dword [0x482434], 0
jne 0x47056d
xor esi, esi
mov ebx, dword [0x482438]
mov eax, dword [esp]
mov ebp, eax
jmp 0x47055e
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.00468838
pop ecx
mov edi, eax
test eax, eax
jne 0x470554
jmp 0x47059e
xor esi, esi
mov ebx, dword [0x482434]
mov eax, dword [esp]
mov edi, eax
jmp 0x470598
push eax
call fcn.00468838
pop ecx
test eax, eax
je 0x47058d
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x470591
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x47057c
mov eax, dword [0x482434]
test eax, eax
je 0x4705ae
push eax
call fcn.00468448
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x482434], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x403880
Capabilities:
Get local ipv4 addresses
Get socket information
Initialize winsock library
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x45ffed
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x19c
lea eax, [esp + 0xc]
push esi
push eax
push 0x101
mov dword [esp + 0x10], 0x10
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x4038d2
mov eax, 1
pop esi
mov ecx, dword [esp + 0x19c]
mov dword fs:[0], ecx
add esp, 0x1a8
ret
push 0x3e8
push 2
push 6
call sub.WSOCK32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
jne 0x403902
mov eax, 1
pop esi
mov ecx, dword [esp + 0x19c]
mov dword fs:[0], ecx
add esp, 0x1a8
ret
mov ecx, dword [0x47ff58]
mov edx, dword [0x47ff5c]
mov ax, word [0x47ff60]
mov dword [0x47ff3e], ecx
mov cx, word [esp + 0x1b8]
mov dword [0x47ff42], edx
mov edx, dword [0x47ff64]
mov word [0x47ff46], ax
mov eax, dword [0x47c120]
mov word [0x47ff48], cx
mov cx, word [0x47c124]
mov dword [0x47ff4c], edx
mov dx, word [esp + 0x1b4]
push 0x10
push 0x47ff3c
push esi
mov word [0x47ff3c], 6
mov word [0x47ff4a], 6
mov dword [0x47ff50], eax
mov word [0x47ff54], cx
mov word [0x47ff56], dx
call sub.WSOCK32.dll_bind
cmp eax, 0xffffffff
jne 0x4039ad
push esi
call sub.WSOCK32.dll_closesocket
mov eax, 1
pop esi
mov ecx, dword [esp + 0x19c]
mov dword fs:[0], ecx
add esp, 0x1a8
ret
lea eax, [esp + 8]
push eax
push 0x47ff3c
push esi
call sub.WSOCK32.dll_getsockname
cmp eax, 0xffffffff
jne 0x4039e3
push esi
call sub.WSOCK32.dll_closesocket
mov eax, 1
pop esi
mov ecx, dword [esp + 0x19c]
mov dword fs:[0], ecx
add esp, 0x1a8
ret
lea ecx, [esp + 4]
push 4
push ecx
push 0x4000
push 0x3e8
push esi
mov dword [esp + 0x18], 0
call sub.WSOCK32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x403a22
mov eax, 1
pop esi
mov ecx, dword [esp + 0x19c]
mov dword fs:[0], ecx
add esp, 0x1a8
ret
push 1
push esi
call fcn.00403850
push 8
call fcn.0043fd6b
add esp, 0xc
mov dword [esp + 0xc], eax
test eax, eax
mov dword [esp + 0x1a8], 0
je 0x403a58
push 0
push 0
push 0
push 0
mov ecx, eax
call fcn.004142f8
jmp 0x403a5a
xor eax, eax
mov edx, dword [esp + 0x1b0]
push 0
push 0
push 0
push 0xfffffffffffffff1
push 0
push 0x403ab0
mov dword [esp + 0x1c0], 0xffffffff
mov dword [0x47ff08], eax
mov dword [0x47ff38], esi
mov dword [0x47ff34], edx
call fcn.0043fee2
mov ecx, dword [esp + 0x1a0]
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x1a8
ret

Function at 0x403bf0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
sub eax, edx
xor ecx, ecx
test ax, ax
je 0x403c26
push ebx
push esi
and eax, 0xffff
push edi
mov edi, dword [esp + 0x10]
mov esi, eax
mov eax, edx
and eax, 0xffff
add eax, edi
mov bl, byte [eax]
xor bl, cl
inc ecx
inc edx
dec esi
mov byte [eax], bl
jne 0x403c0f
pop edi
pop esi
pop ebx
ret