joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3fa718e0
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x3fae90dc]
call dword [sym.imp.kernel32.dll_TlsGetValue]
add eax, 0x1c1c
ret

Function at 0x3fa7dc01
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x3fae90dc]
call dword [sym.imp.kernel32.dll_TlsGetValue]
add eax, 0x17cc
ret

Function at 0x3fa86260
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x3fae90dc]
call dword [sym.imp.kernel32.dll_TlsGetValue]
add eax, 0x464
ret

Function at 0x3fa86272
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x3fae90dc]
call dword [sym.imp.kernel32.dll_TlsGetValue]
add eax, 0x51c
ret

Function at 0x3fa86284
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x3fae90dc]
call dword [sym.imp.kernel32.dll_TlsGetValue]
add eax, 0x1d8c
ret

Function at 0x3fa86296
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x3fae90dc]
call dword [sym.imp.kernel32.dll_TlsGetValue]
add eax, 0x1e44
ret

Function at 0x3fa886b7
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x3fae0c90
call fcn.3f9ec288
push ecx
mov eax, ecx
xor ecx, ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [ebp - 0x10], eax
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov byte [eax + 0x1c], 1
mov dword [ebp - 4], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x28], ecx
mov byte [eax + 0x2c], 1
mov byte [ebp - 4], 1
mov dword [eax + 0x30], ecx
mov dword [eax + 0x34], ecx
mov dword [eax + 0x38], ecx
mov byte [eax + 0x3c], 1
mov byte [ebp - 4], 2
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], ecx
mov byte [eax + 0x4c], 1
mov byte [ebp - 4], 3
mov dword [eax + 0x50], ecx
mov dword [eax + 0x54], ecx
mov dword [eax + 0x58], ecx
mov byte [eax + 0x5c], 1
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret

Function at 0x3fa89065
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x3fae0d32
call fcn.3f9ec288
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
and dword [ebp - 4], 0
mov esi, dword [ebp + 0xc]
mov ecx, dword [esi + 0x30]
mov eax, dword [esi + 4]
mov dword [ebp - 0x14], eax
mov edx, dword [esi]
mov dword [ebp - 0x18], edx
mov edi, dword [ecx]
push eax
push edx
call dword [edi + 0xc]
push esi
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.3fa8662f
push esi
mov ecx, edi
call fcn.3fa87031
push esi
mov ecx, edi
call fcn.3fa88371
push esi
mov ecx, edi
call fcn.3fa89001
push esi
mov ecx, edi
call fcn.3fa862a8
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x3fad7d5a
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x3fadf3dc
call fcn.3f9ec288
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea eax, [ebp + 0xb]
push eax
xor ebx, ebx
push 0x3f832b1c
lea ecx, [esi + 0xc]
mov dword [ebp - 0x10], esi
mov dword [esi], 0x3f83d1b8
mov dword [esi + 4], 1
mov dword [esi + 8], ebx
call fcn.3f9f5d74
mov dword [ebp - 4], ebx
lea edi, [esi + 0x20]
mov dword [esi + 0x1c], ebx
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov byte [edi + 0xc], 1
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.3f9c99ec
mov byte [ebp - 4], 2
lea ecx, [esi + 0x50]
call fcn.3f9c99ec
mov byte [ebp - 4], 3
push dword [ebp + 8]
mov ecx, edi
mov dword [esi + 0x74], ebx
call fcn.3f9e6afb
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x3fad857d
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x3fadf3dc
call fcn.3f9ec288
push ecx
push esi
push edi
mov esi, ecx
lea eax, [ebp + 0xb]
push eax
push dword [ebp + 8]
lea ecx, [esi + 0xc]
mov dword [ebp - 0x10], esi
mov dword [esi], 0x3f83d1b8
mov dword [esi + 4], 2
mov dword [esi + 8], 1
call fcn.3f9f5d74
xor edi, edi
mov dword [ebp - 4], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov byte [esi + 0x2c], 1
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.3f9c99ec
mov byte [ebp - 4], 2
lea ecx, [esi + 0x50]
call fcn.3f9c99ec
mov byte [ebp - 4], 3
mov dword [esi + 0x74], edi
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x3fad85fc
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x3fadf3dc
call fcn.3f9ec288
push ecx
push esi
push edi
mov esi, ecx
lea eax, [ebp + 0xb]
push eax
push dword [ebp + 8]
lea ecx, [esi + 0xc]
mov dword [ebp - 0x10], esi
mov dword [esi], 0x3f83d1b8
mov dword [esi + 4], 2
mov dword [esi + 8], 1
call fcn.3f9f5d74
xor edi, edi
mov dword [ebp - 4], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov byte [esi + 0x2c], 1
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.3f9c99ec
mov byte [ebp - 4], 2
lea ecx, [esi + 0x50]
call fcn.3f9c99ec
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], edi
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x3fad8681
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x3fadf3dc
call fcn.3f9ec288
push ecx
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov dword [esi + 8], eax
lea eax, [ebp + 0xb]
push eax
push dword [ebp + 0xc]
lea ecx, [esi + 0xc]
mov dword [ebp - 0x10], esi
mov dword [esi], 0x3f83d1b8
mov dword [esi + 4], 2
call fcn.3f9f5d74
xor edi, edi
mov dword [ebp - 4], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov byte [esi + 0x2c], 1
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.3f9c99ec
mov byte [ebp - 4], 2
lea ecx, [esi + 0x50]
call fcn.3f9c99ec
mov byte [ebp - 4], 3
mov dword [esi + 0x74], edi
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 8

Function at 0x3fad86ff
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x3fadf3dc
call fcn.3f9ec288
push ecx
push ebx
push esi
push edi
mov esi, ecx
lea eax, [ebp + 0xb]
push eax
push dword [ebp + 8]
xor ebx, ebx
lea ecx, [esi + 0xc]
mov dword [ebp - 0x10], esi
mov dword [esi], 0x3f83d1b8
mov dword [esi + 4], 3
mov dword [esi + 8], ebx
call fcn.3f9f5d74
mov dword [ebp - 4], ebx
lea edi, [esi + 0x20]
mov dword [esi + 0x1c], ebx
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov byte [edi + 0xc], 1
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.3f9c99ec
mov byte [ebp - 4], 2
lea ecx, [esi + 0x50]
call fcn.3f9c99ec
mov byte [ebp - 4], 3
push dword [ebp + 0xc]
mov ecx, edi
mov dword [esi + 0x74], ebx
call fcn.3f9e6afb
push dword [ebp + 0x10]
mov ecx, edi
call fcn.3f9e6afb
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc

Function at 0x3fad8792
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x3fadf3dc
call fcn.3f9ec288
push ecx
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov dword [esi + 4], eax
lea eax, [ebp + 0xb]
push eax
push dword [ebp + 0xc]
xor edi, edi
lea ecx, [esi + 0xc]
mov dword [ebp - 0x10], esi
mov dword [esi], 0x3f83d1b8
mov dword [esi + 8], edi
call fcn.3f9f5d74
mov dword [ebp - 4], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov byte [esi + 0x2c], 1
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.3f9c99ec
mov byte [ebp - 4], 2
lea ecx, [esi + 0x50]
call fcn.3f9c99ec
mov byte [ebp - 4], 3
mov dword [esi + 0x74], edi
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x3fadac2b
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x3fadf3dc
call fcn.3f9ec288
push ecx
push ebx
push esi
push edi
mov esi, ecx
lea eax, [ebp + 0xb]
push eax
push dword [ebp + 8]
xor ebx, ebx
lea ecx, [esi + 0xc]
mov dword [ebp - 0x10], esi
mov dword [esi], 0x3f83d1b8
mov dword [esi + 4], 3
mov dword [esi + 8], ebx
call fcn.3f9f5d74
mov dword [ebp - 4], ebx
lea edi, [esi + 0x20]
mov dword [esi + 0x1c], ebx
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov byte [edi + 0xc], 1
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.3f9c99ec
mov byte [ebp - 4], 2
lea ecx, [esi + 0x50]
call fcn.3f9c99ec
mov byte [ebp - 4], 3
push dword [ebp + 0xc]
mov ecx, edi
mov dword [esi + 0x74], ebx
call fcn.3f9e6afb
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x402b10
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00403ab4
test esi, esi
jne 0x402b47
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00403b78
jmp 0x402b68
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.004029ac
mov dword [esp], eax
test esi, esi
je 0x402b68
cmp dword [ebx], 0
je 0x402b68
dec esi
jmp 0x402b4f
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x402f88
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x406008], 0x8088405
inc edx
mov dword [ebx + 0x406008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403230
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x406010]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4032c8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4032a8
xor eax, eax
push ebp
push 0x4032a1
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 0x4032e4
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 0x4032a8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x406010]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x406010], ax
mov esp, ebp
pop ebp
ret

Function at 0x403930
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x407034], 0
je 0x403991
cmp word [0x407208], 0xd7b2
jne 0x403959
cmp dword [0x407210], 0
jbe 0x403959
mov eax, 0x407204
call dword [0x407220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40607c
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 0x4039b8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40601c], 0
jne 0x4039ad
push 0
push 0x406074
push 0x40607c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404148
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x4041ae
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403c10
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403124
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x404198
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4041b5
lea eax, [ebp - 0x10]
call fcn.00403ab4
ret
Function at 0x4045ec
Capabilities:
Compress data via winapi

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
call fcn.00403e18
xor eax, eax
push ebp
push 0x40469c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 0xc]
call fcn.004045e0
mov ebx, eax
cmp ebx, 4
jbe 0x40467f
lea eax, [ebp + 0xc]
call fcn.00403e78
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov eax, esi
call fcn.00403e80
mov eax, dword [ebp - 8]
cmp dword [eax], 0x80000
jbe 0x404646
mov edi, 2
jmp 0x40464b
mov edi, 2
lea eax, [ebp - 4]
push eax
sub ebx, 4
push ebx
lea eax, [ebp + 0xc]
call fcn.00403e78
add eax, 4
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
push eax
mov eax, esi
call fcn.00403e78
push eax
push edi
call sub.ntdll.dll_RtlDecompressBuffer
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00403e80
jmp 0x404686
mov eax, esi
call fcn.00403ab4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4046a3
lea eax, [ebp + 0xc]
call fcn.00403ab4
ret
Function at 0x404700
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403e18
mov eax, dword [ebp - 8]
call fcn.00403e18
xor eax, eax
push ebp
push 0x4048a8
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
lea eax, [ebp - 0x18]
call fcn.00403ab4
mov eax, dword [ebp - 8]
call fcn.00403c28
test eax, eax
jle 0x40476c
mov dword [ebp - 0x20], eax
mov ebx, 1
mov eax, dword [ebp - 8]
movzx eax, byte [eax + ebx - 1]
cdq
idiv ebx
xor esi, edx
inc ebx
dec dword [ebp - 0x20]
jne 0x404759
cmp esi, 0xff
jle 0x404790
sar esi, 1
jns 0x40477b
adc esi, 0
mov dword [ebp - 0x24], esi
fild dword [ebp - 0x24]
call fcn.00402b74
mov esi, eax
cmp esi, 0xff
jg 0x404774
mov eax, dword [ebp - 4]
call fcn.00403c28
test eax, eax
jle 0x40486d
mov dword [ebp - 0x20], eax
mov ebx, 1
mov eax, dword [ebp - 8]
call fcn.00403c28
push eax
mov eax, ebx
pop edx
mov ecx, edx
cdq
idiv ecx
mov dword [ebp - 0x1c], edx
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00403c28
xor eax, ebx
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
movzx edx, byte [edx + ecx - 1]
mov ecx, edx
cdq
idiv ecx
mov dword [ebp - 0x10], edx
inc dword [ebp - 0x10]
mov eax, ebx
cdq
idiv dword [ebp - 0x10]
mov eax, esi
xor dl, al
mov eax, dword [ebp - 4]
mov al, byte [eax + ebx - 1]
mov ecx, ebx
and ecx, 0x8000007f
jns 0x4047ff
dec ecx
or ecx, 0xffffff80
inc ecx
xor al, cl
mov ecx, dword [ebp - 8]
mov edi, dword [ebp - 0x1c]
movzx ecx, byte [ecx + edi - 1]
add ecx, ecx
shr ecx, 2
xor al, cl
xor dl, al
mov byte [ebp - 0x11], dl
mov eax, ebx
and eax, 0x80000001
jns 0x404826
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x404842
lea eax, [ebp - 0x28]
mov dl, byte [ebp - 0x11]
call fcn.00403bc4
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0x18]
call fcn.00403c30
jmp 0x404863
lea eax, [ebp - 0x2c]
xor edx, edx
mov dl, byte [ebp - 0x11]
push edx
mov edx, 0xff
pop ecx
sub edx, ecx
call fcn.00403bc4
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x18]
call fcn.00403c30
inc ebx
dec dword [ebp - 0x20]
jne 0x4047a8
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
call fcn.00403b08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4048af
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.00403ad8
lea eax, [ebp - 0x18]
call fcn.00403ab4
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403ad8
ret
Function at 0x41e7b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x12000]
push edi
or ebp, 0xffffffff
jmp 0x41e7d2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41e7d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41e7c8
mov eax, 1
add ebx, ebx
jne 0x41e7eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41e7e0
jne 0x41e7fc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41e7e0
xor ecx, ecx
sub eax, 3
jb 0x41e810
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41e882
mov ebp, eax
add ebx, ebx
jne 0x41e81b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41e828
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41e84c
inc ecx
add ebx, ebx
jne 0x41e838
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41e82d
jne 0x41e849
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41e82d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41e86c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41e85d
jmp 0x41e7ce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41e86c
add edi, ecx
jmp 0x41e7ce
pop esi
mov edi, esi
mov ecx, 0xacf
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41e88a
cmp byte [edi], 7
jne 0x41e88a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41e88f
lea edi, [esi + 0x1c000]
mov eax, dword [edi]
or eax, eax
je 0x41e907
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1fe0c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1feac]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41e8bc
mov ecx, edi
jns 0x41e8eb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1feb0]
or eax, eax
je 0x41e901
mov dword [ebx], eax
add ebx, 4
jmp 0x41e8d9
call dword [esi + 0x1fec0]
mov ebp, dword [esi + 0x1feb4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x41e93b
sub esp, 0xffffff80
jmp 0x412a82
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x401012
mov eax, dword [0x4c342f]
shl eax, 2
mov dword [0x4c3433], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.0049f76c
pop edx
call fcn.0049f6d0
call fcn.0049f7ac
push 0
call fcn.004a0b20
pop ecx
push 0x4c33d8
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x4c3437], eax
push 0
jmp fcn.004a9934

Function at 0x4017a4
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffa6c
push ebx
push esi
mov bx, 2
lea eax, [ebp - 0x594]
push eax
push ebx
call sub.WSOCK32.DLL_WSAStartup
push 0x400
lea edx, [ebp - 0x404]
push edx
call sub.WSOCK32.DLL_gethostname
test eax, eax
jne 0x40182b
lea ecx, [ebp - 0x404]
push ecx
call sub.WSOCK32.DLL_gethostbyname
xor esi, esi
mov edx, dword [ebp + 0xc]
mov ecx, edx
mov dword [ebp - 4], ecx
jmp 0x401815
cmp word [eax + 0xa], 4
jne 0x401810
xor edx, edx
mov ecx, dword [ebp - 4]
jmp 0x401808
mov ebx, dword [eax + 0xc]
mov ebx, dword [ebx + esi*4]
mov bl, byte [ebx + edx]
inc edx
mov byte [ecx], bl
inc ecx
movsx ebx, word [eax + 0xa]
cmp edx, ebx
jl 0x4017fb
inc esi
add dword [ebp - 4], 4
test eax, eax
je 0x401822
mov edx, dword [eax + 0xc]
cmp dword [edx + esi*4], 0
jne 0x4017ed
call sub.WSOCK32.DLL_WSACleanup
mov eax, esi
jmp 0x401832
call sub.WSOCK32.DLL_WSACleanup
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402534
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed0
mov eax, 0x4c62a0
push ebx
push esi
push edi
mov edi, 0x4c5085
mov ebx, dword [ebp + 8]
call fcn.0049fef4
push 0x104
lea edx, [ebp - 0x130]
push edx
call sub.KERNEL32.DLL_GetWindowsDirectoryA
lea ecx, [edi + 0xd8]
push ecx
lea eax, [ebp - 0x130]
push eax
call fcn.0049fb64
add esp, 8
lea edx, [edi + 0xda]
push edx
lea ecx, [ebp - 0x130]
push ecx
call fcn.0049fb64
add esp, 8
lea eax, [ebp - 0x130]
push eax
call sub.KERNEL32.DLL_LoadLibraryA
mov esi, eax
test esi, esi
jne 0x4025e6
mov word [ebp - 0x1c], 8
lea edx, [edi + 0xe9]
lea eax, [ebp - 4]
call fcn.004adb50
inc dword [ebp - 0x10]
mov eax, dword [eax]
call fcn.00470060
dec dword [ebp - 0x10]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004adc4c
push 0
call fcn.004a8bcc
pop ecx
mov ecx, dword [ebp - 0x2c]
mov dword fs:[0], ecx
jmp 0x4026cf
mov dword [ebx + 0x920], esi
lea eax, [edi + 0xf5]
push eax
push esi
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebx + 0x870], eax
lea edx, [edi + 0xfd]
push edx
push esi
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebx + 0x874], eax
lea ecx, [edi + 0x105]
push ecx
push esi
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebx + 0x878], eax
lea eax, [edi + 0x10d]
push eax
push esi
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebx + 0x87c], eax
lea edx, [edi + 0x115]
push edx
push esi
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebx + 0x880], eax
cmp dword [ebx + 0x870], 0
je 0x402678
cmp dword [ebx + 0x874], 0
je 0x402678
cmp dword [ebx + 0x878], 0
je 0x402678
cmp dword [ebx + 0x87c], 0
je 0x402678
cmp dword [ebx + 0x880], 0
jne 0x4026ba
mov word [ebp - 0x1c], 0x14
lea edx, [edi + 0x11d]
lea eax, [ebp - 8]
call fcn.004adb50
inc dword [ebp - 0x10]
mov eax, dword [eax]
call fcn.00470060
dec dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004adc4c
push 0
call fcn.004a8bcc
pop ecx
mov ecx, dword [ebp - 0x2c]
mov dword fs:[0], ecx
jmp 0x4026cf
add esi, 0x1000
mov dword [ebx + 0x840], esi
mov eax, dword [ebp - 0x2c]
mov dword fs:[0], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40322c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe5c
mov eax, 0x4c651c
push ebx
push esi
push edi
call fcn.0049fef4
push 0x104
lea edx, [ebp - 0x1a4]
push edx
call sub.KERNEL32.DLL_GetWindowsDirectoryA
push 0x4c5290
lea ecx, [ebp - 0x1a4]
push ecx
call fcn.0049fb64
add esp, 8
push str.ai9splayds.dll
lea eax, [ebp - 0x1a4]
push eax
call fcn.0049fb64
add esp, 8
mov word [ebp - 0x28], 8
push 0x40
mov word [ebp - 0x28], 0x14
lea edx, [ebp - 0x1a4]
lea eax, [ebp - 4]
call fcn.004adb50
inc dword [ebp - 0x1c]
mov ecx, dword [eax]
mov dl, 1
mov eax, dword [0x4890c4]
call fcn.0048c254
mov ebx, eax
dec dword [ebp - 0x1c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004adc4c
mov word [ebp - 0x28], 0
jmp 0x403316
mov eax, ebx
call fcn.0048c04c
push eax
call fcn.0049f2bc
pop ecx
mov esi, eax
mov eax, ebx
call fcn.0048c04c
mov ecx, eax
mov eax, ebx
mov edx, esi
mov edi, dword [eax]
call dword [edi + 4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004418bc
pop ecx
mov eax, ebx
call fcn.0048c04c
push eax
push esi
lea edx, [ebp - 0xa0]
push edx
call fcn.004418e8
add esp, 0xc
lea ecx, [ebp - 0xa0]
push ecx
lea eax, [ebp - 0x48]
push eax
call fcn.00441980
add esp, 8
mov edi, ebx
mov dword [ebp - 0x10], edi
test edi, edi
je 0x403397
mov eax, dword [edi]
mov dword [ebp - 0xc], eax
mov word [ebp - 0x28], 0x38
mov edx, 3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x28], 0x2c
push esi
call fcn.0049f0f4
pop ecx
push 0x10
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x814]
push eax
lea edx, [ebp - 0x48]
push edx
call fcn.0049fcf4
add esp, 0xc
test eax, eax
je 0x4033fb
mov word [ebp - 0x28], 0x44
mov edx, str.zld_error_2
lea eax, [ebp - 0x14]
call fcn.004adb50
inc dword [ebp - 0x1c]
mov eax, dword [eax]
call fcn.00470060
dec dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004adc4c
push 0
call fcn.004a8bcc
pop ecx
mov ecx, dword [ebp - 0x38]
mov dword fs:[0], ecx
jmp 0x403404
mov eax, dword [ebp - 0x38]
mov dword fs:[0], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret