joyce8/EMBER2024-capa huggingface dataset:
Function at 0x474374
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x416920]
call fcn.0040546c
xor eax, eax
push ebp
push 0x4744b8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4a10ac], 0
jne 0x4743c7
mov ecx, dword [0x4a1740]
mov dl, 1
mov eax, dword [0x407fc0]
call fcn.0040c89c
call fcn.004041e8
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.004030ac
mov eax, ebx
call fcn.00405094
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x4744c8
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.0040646c
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.004050a4
test eax, eax
jle 0x47445f
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x474458
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404a6c
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404a38
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00408ed4
test eax, eax
jne 0x474458
mov ebx, 0x15
jmp 0x474464
mov ebx, 0x10
jmp 0x474464
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x4a10ac]
call fcn.00474270
mov eax, dword [ebp - 8]
call fcn.00474270
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00406484
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4744bf
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004047ec
lea eax, [ebp - 0x10]
mov edx, dword [0x416920]
call fcn.0040553c
ret

Function at 0x47c1f8
Capabilities:
Create thread

Disassembly:
push ebx
push esi
test dl, dl
je 0x47c206
add esp, 0xfffffff0
call fcn.00403d80
mov ebx, edx
mov esi, eax
xor edx, edx
mov eax, esi
call fcn.0047befc
lea eax, [esi + 0x48]
push eax
push 4
push esi
push 0x47c0f4
push 0
push 0
call sub.kernel32.dll_CreateThread
mov dword [esi + 0x44], eax
mov byte [esi + 0x4d], 1
mov byte [esi + 0x4c], 0
mov eax, esi
test bl, bl
je 0x47c248
call fcn.00403dd8
pop dword fs:[0]
add esp, 0xc
mov eax, esi
pop esi
pop ebx
ret

Function at 0x47c29c
Capabilities:
Resume thread

Disassembly:
cmp byte [eax + 0x4d], 0
je 0x47c2af
mov byte [eax + 0x4d], 0
mov eax, dword [eax + 0x44]
push eax
call sub.kernel32.dll_ResumeThread
ret

Function at 0x47cd5c
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
mov edx, 0x40
call fcn.004079a8
ret
Function at 0x47d88c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
call fcn.00404c94
xor eax, eax
push ebp
push 0x47d96a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [edi], 0
mov dword [edi + 4], 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404ca4
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jbe 0x47d954
mov eax, ebx
call fcn.00402784
mov esi, eax
push esi
push ebx
push 0
mov eax, dword [ebp - 8]
call fcn.00404ca4
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x47d94d
call sub.kernel32.dll_GetSystemDefaultLangID
movzx eax, ax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x47d978
push esi
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x47d94d
mov eax, dword [ebp - 4]
mov ax, word [eax + 0xc]
and ax, 0xffff
mov word [edi], ax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
shr eax, 0x10
mov word [edi + 2], ax
mov eax, dword [ebp - 4]
mov ax, word [eax + 8]
and ax, 0xffff
mov word [edi + 4], ax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
shr eax, 0x10
mov word [edi + 6], ax
mov eax, esi
call fcn.004027a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47d971
lea eax, [ebp - 8]
call fcn.004047c8
ret

Function at 0x47dcd4
Capabilities:
Encrypt data using des

Disassembly:
push ebx
mov ecx, edx
and cl, 0x20
mov ebx, edx
and bl, 0x1e
and ebx, 0xff
shr ebx, 1
or cl, bl
and dl, 1
shl edx, 4
or cl, dl
mov edx, ecx
and edx, 0xff
and eax, 0xff
shl eax, 3
lea eax, [eax*8 + 0x4a135c]
mov al, byte [eax + edx]
and al, 0xf
pop ebx
ret

Function at 0x47dd10
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
test ebx, ebx
js 0x47dd28
shr ebx, 2
mov esi, dword [eax + ebx*4]
dec ebx
push esi
jns 0x47dd21
mov eax, esp
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, 7
call fcn.004030ac
xor edx, edx
mov eax, 0x4a155c
mov bl, byte [eax]
mov ecx, ebx
and cl, 7
and ecx, 0xff
push ecx
mov ecx, 7
pop esi
sub ecx, esi
mov esi, 1
shl esi, cl
xor ecx, ecx
mov cl, bl
shr ecx, 3
mov ebx, dword [ebp - 4]
movzx ecx, byte [ebx + ecx]
and esi, ecx
je 0x47dd92
mov ecx, edx
and ecx, 7
push ecx
mov ecx, 7
pop ebx
sub ecx, ebx
mov bl, 1
shl bl, cl
mov ecx, edx
shr ecx, 3
mov esi, dword [ebp - 8]
or byte [esi + ecx], bl
inc edx
inc eax
cmp edx, 0x38
jne 0x47dd46
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4
Function at 0x47dfd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov ebx, dword [ebp + 0x10]
test ebx, ebx
js 0x47dfe9
shr ebx, 2
mov esi, dword [ecx + ebx*4]
dec ebx
push esi
jns 0x47dfe2
mov ecx, esp
mov ebx, edx
test ebx, ebx
js 0x47dffb
shr ebx, 2
mov esi, dword [eax + ebx*4]
dec ebx
push esi
jns 0x47dff4
mov eax, esp
mov dword [ebp - 4], ecx
push 5
lea ecx, [ebp - 0xa]
call fcn.0047dbc4
mov ebx, 6
mov eax, dword [ebp - 4]
lea edx, [ebp - 0xa]
mov cl, byte [eax]
xor byte [edx], cl
inc edx
inc eax
dec ebx
jne 0x47e015
mov al, byte [ebp - 0xa]
xor edx, edx
mov dl, al
shr edx, 2
mov byte [ebp - 0x12], dl
and al, 3
shl eax, 4
mov dl, byte [ebp - 9]
xor ecx, ecx
mov cl, dl
shr ecx, 4
or al, cl
mov byte [ebp - 0x11], al
and dl, 0xf
shl edx, 2
mov al, byte [ebp - 8]
xor ecx, ecx
mov cl, al
shr ecx, 6
or dl, cl
mov byte [ebp - 0x10], dl
and al, 0x3f
mov byte [ebp - 0xf], al
mov al, byte [ebp - 7]
xor edx, edx
mov dl, al
shr edx, 2
mov byte [ebp - 0xe], dl
and al, 3
shl eax, 4
xor edx, edx
mov dl, byte [ebp - 6]
shr edx, 4
or al, dl
mov byte [ebp - 0xd], al
mov al, byte [ebp - 6]
and al, 0xf
shl eax, 2
xor edx, edx
mov dl, byte [ebp - 5]
shr edx, 6
or al, dl
mov byte [ebp - 0xc], al
mov al, byte [ebp - 5]
and al, 0x3f
mov byte [ebp - 0xb], al
xor ebx, ebx
lea esi, [ebp - 0x12]
mov eax, ebx
mov dl, byte [esi]
call fcn.0047dcd4
mov byte [esi], al
inc ebx
inc esi
cmp ebx, 8
jne 0x47e09a
mov ebx, 4
lea eax, [ebp - 0x12]
lea edx, [ebp - 0xa]
mov cl, byte [eax]
shl ecx, 4
or cl, byte [eax + 1]
mov byte [edx], cl
inc edx
add eax, 2
dec ebx
jne 0x47e0b7
lea eax, [ebp - 0xa]
mov edx, 5
call fcn.0047dc54
mov ebx, 4
lea eax, [ebp - 0xa]
mov edx, dword [ebp + 0xc]
mov cl, byte [eax]
mov byte [edx], cl
inc edx
inc eax
dec ebx
jne 0x47e0e0
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x47e0f8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov ebx, ecx
test ebx, ebx
js 0x47e111
shr ebx, 2
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x47e10a
mov edx, esp
mov dword [ebp - 4], edx
mov ebx, eax
mov dword [ebp - 8], 8
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dl, byte [eax]
mov byte [ecx], dl
inc ecx
inc eax
dec dword [ebp - 8]
jne 0x47e125
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0047dabc
test bl, bl
jne 0x47e1f8
mov dword [ebp - 8], 0x10
mov dword [ebp - 0x14], 0x4a2c88
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
mov cl, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x47e15c
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
mov cl, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x47e170
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov eax, dword [ebp - 0x14]
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0047dfd0
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov bl, byte [edx]
xor bl, byte [esi]
mov byte [ecx], bl
inc ecx
inc esi
inc edx
dec eax
jne 0x47e1a2
add dword [ebp - 0x14], 6
dec dword [ebp - 8]
jne 0x47e151
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ecx, [ebp - 0xc]
mov bl, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x47e1c5
mov eax, 4
mov edx, dword [ebp + 0xc]
mov cl, byte [edx]
mov byte [edx + 4], cl
inc edx
dec eax
jne 0x47e1d6
mov eax, 4
lea edx, [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
mov bl, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x47e1ea
jmp 0x47e2b3
cmp bl, 1
jne 0x47e2b3
mov dword [ebp - 8], 0xfffffff0
mov ebx, 0x4a2ce2
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
mov cl, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x47e218
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
mov cl, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x47e22c
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov ecx, ebx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0047dfd0
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov dword [ebp - 0x18], ecx
mov cl, byte [edx]
xor cl, byte [esi]
mov edi, dword [ebp - 0x18]
mov byte [edi], cl
inc dword [ebp - 0x18]
inc esi
inc edx
dec eax
jne 0x47e25e
sub ebx, 6
inc dword [ebp - 8]
jne 0x47e20d
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ebx, [ebp - 0xc]
mov cl, byte [edx]
mov byte [ebx], cl
inc ebx
inc edx
dec eax
jne 0x47e285
mov eax, 4
mov ebx, dword [ebp + 0xc]
mov dl, byte [ebx]
mov byte [ebx + 4], dl
inc ebx
dec eax
jne 0x47e296
mov eax, 4
lea ebx, [ebp - 0xc]
mov edx, dword [ebp + 0xc]
mov cl, byte [ebx]
mov byte [edx], cl
inc edx
inc ebx
dec eax
jne 0x47e2aa
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0047db40
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret 8
Function at 0x47f438
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf8
push ebx
push esi
push edi
mov edi, eax
mov byte [ebp - 5], 1
mov eax, dword [0x4a2d34]
call fcn.00405c00
mov esi, eax
test esi, esi
jl 0x47f4a7
inc esi
xor ebx, ebx
imul eax, ebx, 0x43
mov edx, dword [0x4a2d34]
mov eax, dword [edx + eax*4 + 0x108]
lea edx, [ebp - 0x108]
call fcn.0040396c
lea eax, [ebp - 0x108]
push eax
lea edx, [ebp - 0x208]
mov eax, edi
call fcn.0040396c
lea edx, [ebp - 0x208]
pop eax
xor ecx, ecx
mov cl, byte [eax]
inc ecx
call fcn.00403004
jne 0x47f4a3
mov esi, ebx
jmp 0x47f4d8
inc ebx
dec esi
jne 0x47f45d
mov eax, dword [0x4a2d34]
call fcn.00405bf8
inc eax
push eax
mov eax, 0x4a2d34
mov ecx, 1
mov edx, dword [0x47f40c]
call fcn.00405db4
add esp, 4
mov eax, dword [0x4a2d34]
call fcn.00405bf8
mov esi, eax
dec esi
imul eax, esi, 0x43
mov edx, dword [0x4a2d34]
mov dword [edx + eax*4 + 0x108], edi
mov eax, dword ss:[ebp + 4]
mov dword [ebp - 4], eax
imul eax, esi, 0x43
mov edx, dword [0x4a2d34]
mov byte [edx + eax*4], 0
call sub.kernel32.dll_GetCurrentProcessId
push eax
push 8
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x47f574
mov eax, 0x224
call fcn.00402784
mov ebx, eax
mov dword [ebx], 0x224
push ebx
push edi
call sub.kernel32.dll_Module32First
test eax, eax
je 0x47f567
jmp 0x47f55c
mov eax, dword [ebx + 0x14]
cmp eax, dword [ebp - 4]
jae 0x47f55c
add eax, dword [ebx + 0x18]
cmp eax, dword [ebp - 4]
jbe 0x47f55c
push 0x103
imul eax, esi, 0x43
mov edx, dword [0x4a2d34]
lea eax, [edx + eax*4]
push eax
mov eax, dword [ebx + 0x1c]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
jmp 0x47f567
push ebx
push edi
call sub.kernel32.dll_Module32Next
test eax, eax
jne 0x47f52f
mov eax, ebx
call fcn.004027a4
push edi
call sub.kernel32.dll_CloseHandle_1
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x480408
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffedc
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404c94
xor eax, eax
push ebp
push 0x48056d
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x109], 0
mov eax, dword [ebp - 4]
mov edx, 0x480584
call fcn.00404bf0
jne 0x4804b1
push 0x104
lea eax, [ebp - 0x109]
push eax
push 0x48058c
call sub.kernel32.dll_ExpandEnvironmentStringsA
push ebx
lea eax, [ebp - 0x109]
mov dword [ebp - 0x124], eax
mov byte [ebp - 0x120], 6
mov eax, dword [0x4a2d3c]
mov eax, dword [eax + 0x54]
mov dword [ebp - 0x11c], eax
mov byte [ebp - 0x118], 0xb
mov eax, dword [0x4a2d3c]
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x114], eax
mov byte [ebp - 0x110], 0xb
lea edx, [ebp - 0x124]
mov ecx, 2
mov eax, 0x4805a4
call fcn.00409eec
jmp 0x480557
mov eax, dword [ebp - 4]
mov edx, 0x4805b8
call fcn.00404bf0
jne 0x48052b
push 0x104
lea eax, [ebp - 0x109]
push eax
push 0x4805c4
call sub.kernel32.dll_ExpandEnvironmentStringsA
push ebx
lea eax, [ebp - 0x109]
mov dword [ebp - 0x124], eax
mov byte [ebp - 0x120], 6
mov eax, dword [0x4a2d3c]
mov eax, dword [eax + 0x54]
mov dword [ebp - 0x11c], eax
mov byte [ebp - 0x118], 0xb
mov eax, dword [0x4a2d3c]
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x114], eax
mov byte [ebp - 0x110], 0xb
lea edx, [ebp - 0x124]
mov ecx, 2
mov eax, 0x4805e4
call fcn.00409eec
jmp 0x480557
push 0x104
lea eax, [ebp - 0x109]
push eax
mov eax, dword [ebp - 4]
call fcn.00404ca4
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
mov eax, ebx
lea edx, [ebp - 0x109]
mov ecx, 0x105
call fcn.00404a38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480574
lea eax, [ebp - 4]
call fcn.004047c8
ret

Function at 0x481808
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x40c], edx
mov dword [ebp - 0x408], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x481934
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x48194c
push 0x481950
mov ecx, dword [0x4a2668]
mov dl, 1
mov eax, dword [0x417d88]
call fcn.0041ca48
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x48190f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x404]
push eax
push 0x400
call sub.kernel32.dll_GetTempPathA
xor eax, eax
push ebp
push 0x4818ef
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x408]
lea edx, [ebp - 0x404]
mov ecx, 0x400
call fcn.00404a38
lea eax, [ebp - 0x408]
mov edx, 0x481960
call fcn.00404aac
mov edx, dword [ebp - 0x408]
mov eax, dword [ebp - 4]
call fcn.0041c844
lea eax, [ebp - 0x40c]
lea edx, [ebp - 0x404]
mov ecx, 0x400
call fcn.00404a38
lea eax, [ebp - 0x40c]
mov edx, 0x481960
call fcn.00404aac
mov edx, dword [ebp - 0x40c]
mov eax, ebx
call fcn.00481968
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4818f9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x481916
mov eax, dword [ebp - 4]
call fcn.00403a1c
ret
Function at 0x481968
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7f0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404c94
xor eax, eax
push ebp
push 0x481aa1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx]
push 0
push 0x80
push 3
push 0
push 2
push 0x80000000
mov eax, dword [ebp - 8]
call fcn.00404ca4
push eax
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
cmp esi, 0xffffffff
je 0x481a83
push 0
lea eax, [ebp - 0xc]
push eax
push 2
lea eax, [ebp - 0x810]
push eax
push esi
call sub.kernel32.dll_ReadFile_1
test eax, eax
je 0x481a7d
cmp word [ebp - 0x810], 0xfeff
jne 0x481a7d
lea eax, [ebp - 0x10]
call fcn.00404eec
jmp 0x481a61
cmp dword [ebp - 0xc], 0
je 0x481a7d
mov eax, dword [ebp - 0xc]
dec eax
test eax, eax
jl 0x481a43
inc eax
xor edi, edi
lea ebx, [ebp - 0x810]
cmp word [ebx], 0xd
jne 0x481a3c
push 1
push 0
mov eax, edi
add eax, eax
mov edx, dword [ebp - 0xc]
sub edx, eax
sub edx, 4
neg edx
push edx
push esi
call sub.kernel32.dll_SetFilePointer_1
mov word [ebx], 0
jmp 0x481a43
inc edi
add ebx, 2
dec eax
jne 0x481a16
lea eax, [ebp - 0x10]
lea edx, [ebp - 0x810]
mov ecx, 0x400
call fcn.00405068
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00481570
push 0
lea eax, [ebp - 0xc]
push eax
push 0x800
lea eax, [ebp - 0x810]
push eax
push esi
call sub.kernel32.dll_ReadFile_1
test eax, eax
jne 0x4819ff
push esi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x481aa8
lea eax, [ebp - 0x10]
call fcn.00404eec
lea eax, [ebp - 8]
call fcn.004047c8
ret
Function at 0x4848a8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff390
push ebx
xor edx, edx
mov dword [ebp - 0xc70], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404c94
xor eax, eax
push ebp
push 0x484aa6
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
cmp dword [0x4a2d84], 0
jne 0x484a85
cmp dword [ebp - 4], 0
jne 0x48490b
lea edx, [ebp - 0xc70]
mov eax, 0x484abc
call fcn.00480408
mov edx, dword [ebp - 0xc70]
lea eax, [ebp - 4]
mov ecx, 0x484acc
call fcn.00404af0
mov eax, dword [ebp - 4]
call fcn.00404ca4
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4a2d84], eax
cmp dword [0x4a2d84], 0
je 0x484a80
push 0x484adc
mov eax, dword [0x4a2d84]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a2d90], eax
push 0x484aec
mov eax, dword [0x4a2d84]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a2d94], eax
push 0x484b00
mov eax, dword [0x4a2d84]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a2d98], eax
push 0x484b0c
mov eax, dword [0x4a2d84]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a2d60], eax
push 0x484b20
mov eax, dword [0x4a2d84]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a2d64], eax
push 0x484b30
mov eax, dword [0x4a2d84]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a2d68], eax
push 0x484b40
mov eax, dword [0x4a2d84]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a2d6c], eax
push 0x484b50
mov eax, dword [0x4a2d84]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a2d8c], eax
push 0x484b64
mov eax, dword [0x4a2d84]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a2d70], eax
push 0x484b70
mov eax, dword [0x4a2d84]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a2d74], eax
push 0x484b7c
mov eax, dword [0x4a2d84]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a2d78], eax
cmp dword [0x4a2d90], 0
je 0x484a85
cmp dword [0x4a2d94], 0
je 0x484a85
cmp dword [0x4a2d98], 0
je 0x484a85
cmp dword [0x4a2d64], 0
je 0x484a85
cmp dword [0x4a2d68], 0
je 0x484a85
cmp dword [0x4a2d8c], 0
je 0x484a85
lea eax, [ebp - 0xc6c]
xor ecx, ecx
mov edx, 0xc68
call fcn.004030ac
lea eax, [ebp - 0xc6c]
call fcn.00485998
mov eax, dword [ebp - 0xc6c]
mov dword [ebp - 0xc68], eax
lea eax, [ebp - 0xc68]
push eax
call dword [0x4a2d8c]
jmp 0x484a85
mov ebx, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x484aad
lea eax, [ebp - 0xc70]
call fcn.004047c8
lea eax, [ebp - 4]
call fcn.004047c8
ret
Function at 0x485118
Capabilities:
Print debug messages
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x485235
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 3
call sub.kernel32.dll_GetEnvironmentStringsA
mov esi, eax
test esi, esi
je 0x485217
mov dword [ebp - 4], esi
xor ebx, ebx
jmp 0x485159
inc ebx
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp word [eax], 0
jne 0x485155
add ebx, 2
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x10], 0
lea edx, [ebp - 0x14]
xor ecx, ecx
mov eax, 0x485250
call fcn.00409eec
mov eax, dword [ebp - 0xc]
call fcn.00404ca4
push eax
call sub.kernel32.dll_OutputDebugStringA
lea eax, [ebx + 0x15]
call fcn.00402784
mov edi, eax
mov dword [ebp - 4], edi
mov dword [edi], 0x10615
lea eax, [ebx + 0xc]
sub eax, 4
mov dword [edi + 4], eax
lea eax, [edi + 8]
mov edx, dword [0x4a1af4]
mov edx, dword [edx + 4]
mov dword [eax], edx
mov dword [eax + 4], ebx
lea edx, [eax + 8]
mov eax, esi
mov ecx, ebx
call fcn.00402980
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
add edx, 8
push edx
mov ecx, eax
mov edx, 2
mov eax, dword [ebp - 8]
call fcn.00484c1c
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004027a4
push esi
call sub.kernel32.dll_FreeEnvironmentStringsA
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x10], 0
lea edx, [ebp - 0x14]
xor ecx, ecx
mov eax, 0x485278
call fcn.00409eec
mov eax, dword [ebp - 0x18]
call fcn.00404ca4
push eax
call sub.kernel32.dll_OutputDebugStringA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48523c
lea eax, [ebp - 0x18]
call fcn.004047c8
lea eax, [ebp - 0xc]
call fcn.004047c8
ret
Function at 0x487e90
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x118], edx
mov dword [ebp - 0x114], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x487f9d
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
je 0x487f77
cmp byte [ebx], 0
je 0x487f77
mov byte [ebp - 0x10d], 0
lea eax, [ebp - 0x10d]
push eax
push 0x105
call sub.kernel32.dll_GetTempPathA
lea eax, [ebp - 0x114]
lea edx, [ebp - 0x10d]
mov ecx, 0x105
call fcn.00404a38
mov edx, dword [ebp - 0x114]
lea eax, [ebp - 4]
mov ecx, 0x487fb4
call fcn.00404af0
push 0
push 0
push 2
push 0
push 1
push 0x40000000
mov eax, dword [ebp - 4]
call fcn.00404ca4
push eax
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
cmp esi, 0xffffffff
je 0x487f77
lea eax, [ebp - 0x118]
mov edx, ebx
call fcn.004049c0
mov eax, dword [ebp - 0x118]
lea edx, [ebp - 4]
call fcn.0040694c
cmp dword [ebp - 4], 0
je 0x487f71
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404aa4
push eax
lea eax, [ebp - 4]
call fcn.00404cfc
push eax
push esi
call sub.kernel32.dll_WriteFile_1
push esi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x487fa4
lea eax, [ebp - 0x118]
mov edx, 2
call fcn.004047ec
lea eax, [ebp - 4]
call fcn.004047c8
ret
Function at 0x48d5e8
Capabilities:
Initialize winsock library

Disassembly:
add esp, 0xfffffe70
push esp
push 2
call sub.ws2_32.dll_WSAStartup
test eax, eax
jne 0x48d617
cmp word [esp], 2
jae 0x48d617
mov ecx, 0x48d628
mov dl, 1
mov eax, dword [0x407fc0]
call fcn.0040c7e0
call fcn.004041e8
add esp, 0x190
ret

Function at 0x48e340
Capabilities:
Hide graphical window

Disassembly:
dec edx
je 0x48e348
dec edx
je 0x48e367
jmp 0x48e36c
mov eax, dword [0x4a1a28]
mov eax, dword [eax]
call fcn.004722f8
push 0
mov eax, dword [0x4a1a28]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
ret
call fcn.0046f290
ret