joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411850
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43914b
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x450068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x2c], esi
mov edi, dword [ebp + 8]
push 0xfffffffffffffff5
mov dword [ebp - 0x30], esi
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea ecx, [ebp - 0x28]
mov dword [esi + 4], eax
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x4118ba
movzx ecx, word [ebp - 0x20]
mov eax, ecx
mov dword [esi + 0x10], ecx
and eax, 0xf
and ecx, 0xf0
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ecx
jmp 0x4118d6
mov dword [esi + 0x14], 7
mov eax, 7
mov dword [esi + 0x18], 0
xor ecx, ecx
mov dword [esi + 0x10], 7
push eax
call fcn.004110d0
shr ecx, 4
push ecx
mov dword [esi + 0xc], eax
call fcn.004110d0
mov dword [esi + 8], eax
lea ecx, [esi + 0x20]
mov byte [esi + 0x1c], 0
xor eax, eax
push 1
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
push 0x447df8
mov word [ecx], ax
call fcn.00402cf0
mov dword [ebp - 4], 0
mov eax, edi
mov dword [esi + 0x38], 0x447d64
mov dword [esi + 0x3c], 0x448fe4
cmp dword [edi + 0x14], 8
jb 0x411930
mov eax, dword [edi]
push str.w_ccsUTF_8
push eax
push esi
call fcn.00422faf
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x411965
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041aaeb
mov esp, ebp
pop ebp
ret 4
mov ecx, edi
call fcn.004029d0
push eax
push ebx
push str.Error___d__opening_file__s_n
call fcn.00411490
add esp, 0xc
mov dword [esi], 0
push 1
call fcn.004237d5
int3
Function at 0x411d10
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x450068]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x30]
push edi
push 0
push eax
push 0
push 0x8010
mov ebx, edx
mov dword [ebp - 0x30], 0
push esi
push ebx
mov edi, ecx
mov dword [ebp - 0x34], ebx
call dword [sym.imp.DNSAPI.dll_DnsQuery_W]
test eax, eax
je 0x411e1b
cmp eax, 0x251d
jne 0x411dcc
mov edx, esi
lea ecx, [ebp - 0x2c]
call fcn.00412060
push ecx
lea eax, [ebp - 0x34]
mov ecx, edi
push eax
call fcn.0040f820
push 1
push ecx
mov ecx, edi
call fcn.00412130
push ecx
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
call fcn.0040f640
push ecx
push 0x449418
mov ecx, edi
call fcn.0040f640
push 1
push ecx
mov ecx, edi
call fcn.00412130
push 1
push ecx
mov ecx, edi
call fcn.00412130
push 1
push ecx
mov ecx, edi
call fcn.00412130
push 2
push ecx
mov ecx, edi
call fcn.00412130
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041aaeb
mov esp, ebp
pop ebp
ret
cmp eax, 0x232b
jne 0x411ddf
call fcn.00411800
push str.DNS_ERR_NAME_ERROR
jmp 0x411df0
cmp eax, 0x25e5
je 0x411db9
call fcn.00411800
push str.DNS_ERR_UNABLE_TO_DISPLAY
push 0x448f94
push 2
call fcn.00422bab
add esp, 4
push eax
call fcn.004040e0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041aaeb
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x30]
test esi, esi
je 0x411db9
push esi
mov edx, ebx
mov ecx, edi
call fcn.00411a60
mov esi, dword [esi]
add esp, 4
test esi, esi
jne 0x411e22
push 1
push dword [ebp - 0x30]
call dword [sym.imp.DNSAPI.dll_DnsFree]
mov ecx, dword [ebp - 4]
lea eax, [esi + 1]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041aaeb
mov esp, ebp
pop ebp
ret
Function at 0x411e60
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x450068]
xor eax, ebp
mov dword [ebp - 4], eax
push str.DNSAPI.DLL
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x412023
cmp eax, 0xffffffff
je 0x412023
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.DnsGetCacheDataTable
push eax
call edi
mov ebx, eax
test ebx, ebx
je 0x412034
push 0
push 0
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x411edb
push str.RtlIpv4AddressToStringW
push esi
call edi
mov dword [0x4520ac], eax
test eax, eax
je 0x412045
cmp dword [0x4520a8], 0
jne 0x411f28
mov dword [0x4520a8], 2
test esi, esi
jne 0x411f05
push esi
push esi
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x411f28
push str.RtlIpv6AddressToStringW
push esi
call edi
mov ecx, dword [0x4520a8]
test eax, eax
mov edx, 1
mov dword [0x4520a4], eax
cmovne ecx, edx
mov dword [0x4520a8], ecx
lea eax, [ebp - 8]
push eax
call ebx
test eax, eax
jne 0x411fa0
mov edi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff4
call edi
mov esi, dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
cmp eax, 0xffffffff
je 0x411f4c
push 0xc
push eax
call esi
push str._ERROR_
push 2
call fcn.00422bab
add esp, 4
push eax
call fcn.004040e0
add esp, 8
push 0xfffffffffffffff4
call edi
cmp eax, 0xffffffff
je 0x411f72
push 7
push eax
call esi
push str.DISPLAYDNS_FAILED
push 0x448f94
push 2
call fcn.00422bab
add esp, 4
push eax
call fcn.004040e0
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041aaeb
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 8]
test esi, esi
je 0x411f8f
mov ebx, dword [sym.imp.DNSAPI.dll_DnsFree]
nop dword [eax]
movzx ecx, word [esi + 8]
xor eax, eax
mov edi, dword [esi]
test cx, cx
je 0x411fcc
mov edx, dword [esi + 4]
push ecx
mov ecx, dword [ebp - 0xc]
call fcn.00411d10
add esp, 4
movzx ecx, word [esi + 0xa]
test cx, cx
je 0x411fe4
mov edx, dword [esi + 4]
push ecx
mov ecx, dword [ebp - 0xc]
call fcn.00411d10
add esp, 4
movzx ecx, word [esi + 0xc]
test cx, cx
je 0x411ffc
mov edx, dword [esi + 4]
push ecx
mov ecx, dword [ebp - 0xc]
call fcn.00411d10
add esp, 4
test eax, eax
je 0x41200c
push 0
push dword [esi + 4]
call ebx
push 0
push esi
call ebx
mov esi, edi
test edi, edi
jne 0x411fb0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041aaeb
mov esp, ebp
pop ebp
ret
mov ecx, str.LoadLibrary_DNSAPI.DLL_
call fcn.00411690
push 1
call fcn.004237d5
mov ecx, str.Cant_load_API__DnsGetCacheDataTable_
call fcn.00411420
push 1
call fcn.004237d5
mov ecx, str.Cant_load_API__RtlIpv4AddressToStringW_
call fcn.00411420
push 1
call fcn.004237d5
int3
Function at 0x4131e0
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x148
mov eax, dword [0x450068]
xor eax, esp
mov dword [esp + 0x144], eax
push esi
push edi
push 0x40
lea eax, [esp + 0x14]
mov esi, ecx
push 0
push eax
call fcn.0041d060
add esp, 0xc
cmp esi, 0xffffffff
je 0x4132f3
test esi, esi
je 0x4132f3
push 0
lea eax, [esp + 0x10]
push eax
push 0x40
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x413305
cmp dword [esp + 0xc], 0x40
jne 0x413305
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, 0x5a4d
cmp word [esp + 0x10], ax
jne 0x4132d4
push 0
push 0
push dword [esp + 0x54]
push esi
call edi
cmp eax, 0xffffffff
je 0x413305
push 0xf8
lea eax, [esp + 0x54]
push 0
push eax
call fcn.0041d060
add esp, 0xc
lea eax, [esp + 0xc]
push 0
push eax
push 0xf8
lea eax, [esp + 0x5c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x413305
cmp dword [esp + 0xc], 0xf8
jne 0x413305
cmp dword [esp + 0x50], 0x4550
jne 0x4132d4
push 0
push 0
push 0
push esi
call edi
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.0041aaeb
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push esi
call edi
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.0041aaeb
mov esp, ebp
pop ebp
ret
mov eax, esi
cdq
push edx
push eax
push str.Handle_file___lld_n
call fcn.00411490
add esp, 0xc
mov ecx, dword [esp + 0x14c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.0041aaeb
mov esp, ebp
pop ebp
ret
Function at 0x414c50
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x450068]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [0x452134]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [0x452140]
and ecx, eax
mov eax, dword [edx + ecx*8]
add ecx, ecx
mov ebx, dword [edx + ecx*4]
add edx, 4
lea ecx, [edx + ecx*4]
mov edx, dword [0x45212c]
mov dword [ebp - 8], ecx
cmp ebx, edx
jne 0x414cb0
mov ecx, edx
jmp 0x414cb4
mov ecx, dword [ecx]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x414ccc
mov cx, word [eax + 8]
cmp cx, word [edi]
je 0x414cc8
mov eax, dword [eax]
mov ecx, dword [ebp - 8]
jmp 0x414ca8
mov dword [esi], eax
jmp 0x414cce
mov dword [esi], edx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041aaeb
mov esp, ebp
pop ebp
ret 8
Function at 0x415140
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439400
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x450068]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
mov edx, dword [ebx + 0x18]
mov esi, dword [ebx + 4]
mov dword [ebp - 0x20], eax
movzx eax, byte [edi]
xor eax, 0x811c9dc5
mov dword [ebp - 0x24], ebx
imul ecx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor ecx, eax
imul eax, ecx, 0x1000193
and edx, eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x1c], edx
mov ecx, dword [eax + edx*8]
cmp esi, ecx
je 0x4151f1
mov esi, dword [eax + edx*8 + 4]
mov esi, dword [esi]
cmp esi, ecx
je 0x4151f1
mov esi, dword [esi + 4]
mov ax, word [edi]
cmp ax, word [esi + 8]
jne 0x4151b8
mov edi, dword [ebp + 0x10]
push edi
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov dword [ecx], eax
mov edx, dword [edi]
mov ecx, dword [edi + 4]
mov dword [edx + 4], ecx
dec dword [ebx + 8]
call fcn.00414e90
mov eax, dword [ebp - 0x20]
mov dword [eax], esi
mov byte [eax + 4], 0
jmp 0x4152f4
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x18], edi
mov eax, dword [edi]
cmp esi, eax
je 0x415221
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov edx, dword [esi + 4]
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx + edx*8]
cmp eax, dword [ebx + 4]
jne 0x415238
mov dword [ecx + edx*8], edi
mov eax, dword [ebx + 0xc]
mov dword [eax + edx*8 + 4], edi
jmp 0x41525d
cmp eax, esi
jne 0x415241
mov dword [ecx + edx*8], edi
jmp 0x41525d
mov eax, dword [ecx + edx*8 + 4]
mov eax, dword [eax]
mov dword [ecx + edx*8 + 4], eax
cmp eax, edi
je 0x41525d
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx + edx*8 + 4]
mov eax, dword [eax + 4]
mov dword [ecx + edx*8 + 4], eax
mov dword [ebp - 4], 2
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0x1c]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x44b2c0]
mov eax, ecx
shr eax, 0x1f
cvtpd2ps xmm1, xmm0
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x44b2c0]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, dword [ebx]
jbe 0x4152eb
cmp ecx, 0x200
jae 0x4152b2
shl ecx, 3
jmp 0x4152bc
cmp ecx, 0x1fffffff
jae 0x4152bc
add ecx, ecx
push ecx
mov ecx, ebx
call fcn.00402e40
mov eax, dword [ebx + 4]
cmp dword [eax], eax
je 0x4152eb
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
mov esi, dword [ebx + 4]
mov ecx, ebx
mov esi, dword [esi]
push esi
lea eax, [esi + 8]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00415140
cmp esi, dword [ebp - 0x1c]
jne 0x4152d1
mov eax, dword [ebp - 0x20]
mov dword [eax], edi
mov byte [eax + 4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041aaeb
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4153c0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
movzx edx, byte [eax + 8]
xor edx, 0x811c9dc5
imul edx, edx, 0x1000193
push edi
mov edi, ecx
movzx ecx, byte [eax + 9]
xor edx, ecx
imul ecx, edx, 0x1000193
mov edx, dword [edi + 0x18]
and edx, ecx
lea esi, [edx*8]
mov edx, dword [edi + 0xc]
add edx, esi
mov ecx, dword [edx]
cmp dword [edx + 4], eax
jne 0x41541f
cmp ecx, eax
jne 0x415417
mov ecx, dword [edi + 4]
mov dword [edx], ecx
mov edx, dword [edi + 0xc]
mov ecx, dword [edi + 4]
mov dword [esi + edx + 4], ecx
jmp 0x415427
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
jmp 0x415427
cmp ecx, eax
jne 0x415427
mov ecx, dword [eax]
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov esi, dword [eax]
push eax
mov dword [ecx], esi
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
dec dword [edi + 8]
call fcn.00414e90
pop edi
mov dword [ebx], esi
mov eax, ebx
pop esi
pop ebx
pop ebp
ret 8
Function at 0x42fa90
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042f73e

Function at 0x435b60
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00435823

Function at 0x435b6b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004359a4

Function at 0x1002281
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x100300c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x210]
push ecx
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp eax, esi
jae 0x1002461
test eax, eax
jne 0x10022ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1002464
mov eax, dword [ebp - 0x218]
test eax, eax
je 0x1002461
lea ecx, [ebp - 0x210]
cmp eax, ecx
je 0x1002461
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0x210]
cmp ax, 0x41
jb 0x1002301
cmp ax, 0x5a
jbe 0x100230a
lea ecx, [eax - 0x61]
cmp cx, 0x19
ja 0x100232e
cmp word [ebp - 0x20e], 0x3a
jne 0x100232e
cmp word [ebp - 0x20c], 0x5c
jne 0x1002461
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x214], ecx
push 0x5c
pop edi
cmp ax, di
jne 0x1002370
cmp word [ebp - 0x20e], di
jne 0x1002370
lea eax, [ebp - 0x20c]
push edi
push eax
call sub.msvcrt.dll_wcschr
pop ecx
pop ecx
test eax, eax
je 0x1002461
add eax, 2
push edi
push eax
call sub.msvcrt.dll_wcschr
pop ecx
pop ecx
mov dword [ebp - 0x214], eax
test eax, eax
je 0x1002461
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100239a
and al, 0x10
movzx eax, al
neg eax
sbb eax, eax
and eax, 0xfffffef5
add eax, 0x10b
jmp 0x1002464
mov esi, dword [ebp - 0x218]
lea eax, [ebp - 0x210]
cmp esi, eax
jne 0x10023ae
mov esi, eax
jmp 0x10023b1
add esi, 0xfffffffe
cmp esi, dword [ebp - 0x214]
je 0x1002461
cmp word [esi], di
jne 0x1002461
cmp esi, dword [ebp - 0x214]
jbe 0x1002461
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x210]
push 0x5c
push eax
call sub.msvcrt.dll_wcsrchr
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1002461
movzx ebx, word [edi + 2]
xor eax, eax
mov word [edi + 2], ax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov word [edi + 2], bx
cmp eax, 0xffffffff
jne 0x1002429
mov esi, edi
cmp edi, dword [ebp - 0x214]
ja 0x10023d2
cmp esi, dword [ebp - 0x214]
jbe 0x1002461
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor ebx, ebx
jmp 0x100244a
test al, 0x10
jne 0x1002417
mov eax, 0x10b
jmp 0x1002464
cmp word [esi + 2], bx
je 0x100245d
push 0x5c
pop eax
push esi
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2]
push ebx
lea eax, [ebp - 0x210]
push eax
call edi
test eax, eax
jne 0x1002434
jmp 0x10022c3
xor eax, eax
jmp 0x1002464
push 0x7b
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01001987
leave
ret 4
Function at 0x4045b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
push 0
mov edi, dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
push esi
push 0
push 0
push 0x258
push 0x258
push 0
push closesocket
push 0xa0000
push 0x4de1a0
push 0x4de138
push 0
mov dword [0x4de134], esi
call edi
mov dword [0x4de130], eax
test eax, eax
jne 0x404600
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0
push esi
push 0x6a
push eax
push 0
push 0
push 0
push 0
push 0x50000000
push 0
push str.msctls_statusbar32
push 0
call edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
mov esi, eax
push 0
push esi
call edi
lea eax, [ebp - 8]
push eax
push 2
push 0x404
push esi
mov dword [ebp - 8], 0x87
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp + 8]
mov edx, dword [0x4de130]
push ecx
push edx
call edi
mov eax, dword [0x4de130]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x406450
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x411018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0x42c]
push ebx
push esi
push edi
test eax, eax
js 0x406559
cmp eax, 2
jge 0x406559
mov esi, eax
imul esi, esi, 0x214
lea esi, [esi + ecx + 4]
push edx
inc eax
lea edi, [esi + 4]
push pe_nt_image_headers32
mov dword [ecx + 0x42c], eax
push edi
mov dword [esi], 1
call dword [sym.imp.MSVCR100.dll_strcpy_s]
add esp, 0xc
cmp dword [esi], 0
je 0x406559
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0xe]
movzx ecx, word [ebp - 0x12]
movzx edx, word [ebp - 0x14]
push eax
push ecx
push edx
push edi
lea ebx, [esi + 0x110]
push str.._s_04d__02d__02d.txt
push ebx
mov dword [esi + 0x104], eax
mov dword [esi + 0x108], ecx
mov dword [esi + 0x10c], edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x210], eax
cmp eax, 0xffffffff
jne 0x406534
mov dword [esi], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a4e0
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x406559
mov ecx, dword [esi + 0x210]
push ecx
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a4e0
mov esp, ebp
pop ebp
ret
Function at 0x406570
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
mov eax, dword [0x411018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
test eax, eax
js 0x406767
cmp eax, dword [ecx + 0x42c]
jge 0x406767
imul eax, eax, 0x214
cmp dword [eax + ecx + 4], 0
lea esi, [eax + ecx + 4]
je 0x406767
lea eax, [ebp - 0x818]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x812]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
cmp ecx, dword [esi + 0x104]
jne 0x4065f6
movzx edx, word [ebp - 0x816]
cmp edx, dword [esi + 0x108]
jne 0x4065f6
movzx eax, word [ebp - 0x818]
cmp eax, dword [esi + 0x10c]
je 0x4066b3
mov ecx, dword [esi + 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, word [ebp - 0x812]
movzx ecx, word [ebp - 0x816]
movzx edx, word [ebp - 0x818]
push eax
push ecx
push edx
mov dword [esi + 0x10c], edx
lea edx, [esi + 4]
push edx
lea edi, [esi + 0x110]
push str.._s_04d__02d__02d.txt
push edi
mov dword [esi + 0x104], eax
mov dword [esi + 0x108], ecx
call ebx
add esp, 0x18
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x210], eax
cmp eax, 0xffffffff
jne 0x40667d
mov dword [esi], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a4e0
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4066b3
mov eax, dword [esi + 0x210]
push eax
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a4e0
mov esp, ebp
pop ebp
ret
push 0x3ff
lea ecx, [ebp - 0x807]
push 0
push ecx
mov byte [ebp - 0x808], 0
call sub.MSVCR100.dll_memset
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
push edx
push eax
lea ecx, [ebp - 0x808]
push 0x400
push ecx
call dword [sym.imp.MSVCR100.dll_vsprintf_s]
push 0x3ff
lea edx, [ebp - 0x407]
push 0
push edx
mov byte [ebp - 0x408], 0
call sub.MSVCR100.dll_memset
movzx ecx, word [ebp - 0x80c]
movzx edx, word [ebp - 0x80e]
lea eax, [ebp - 0x808]
push eax
movzx eax, word [ebp - 0x810]
push ecx
push edx
push eax
lea ecx, [ebp - 0x408]
push str._02d:_02d:_02d__s_r_n
push ecx
call ebx
lea eax, [ebp - 0x408]
add esp, 0x40
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406740
mov ecx, dword [esi + 0x210]
sub eax, edx
push 0
lea edx, [ebp - 0x81c]
push edx
push eax
lea eax, [ebp - 0x408]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a4e0
mov esp, ebp
pop ebp
ret
Function at 0x406780
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, eax
cmp ecx, 0xff
ja 0x40683e
mov eax, dword [ebp + 8]
lea edx, [eax + 1]
mov dword [ebp - 4], edx
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4067a0
sub eax, dword [ebp - 4]
shl ecx, 4
mov edx, dword [ecx + 0x40ce88]
mov dword [esi + 0x34], edx
mov edx, dword [ecx + 0x40ce8c]
mov dword [esi + 0x38], edx
mov edx, dword [ecx + 0x40ce90]
mov dword [esi + 0x3c], edx
mov ecx, dword [ecx + 0x40ce94]
mov edx, dword [ebp + 8]
mov dword [esi + 0x40], ecx
push edx
mov ecx, esi
call fcn.004068d0
call fcn.004069c0
mov eax, dword [esi + 0x8c]
mov ecx, dword [esi + 0x90]
mov edx, dword [esi + 0x94]
mov dword [edi], eax
mov eax, dword [esi + 0x98]
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
mov dword [edi + 0xc], eax
mov byte [esi + 0x9c], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x34], 0x67452301
mov dword [esi + 0x38], 0xefcdab89
mov dword [esi + 0x3c], 0x98badcfe
mov dword [esi + 0x40], 0x10325476
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x408080
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push str.AllowableIpList.txt
push 0x64
push edi
call dword [sym.imp.MSVCR100.dll_strcpy_s]
push 0x40df5c
lea esi, [edi + 0x64]
push str.AllowableIpList.txt
push esi
call dword [sym.imp.MSVCR100.dll_fopen_s]
add esp, 0x18
test eax, eax
je 0x4080bf
mov dword [edi + 0xd0], 0
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
push eax
push 4
lea ecx, [ebp - 4]
push 1
push ecx
call dword [sym.imp.MSVCR100.dll_fread]
mov edx, dword [esi]
push edx
call dword [sym.imp.MSVCR100.dll_rewind]
mov eax, dword [ebp - 4]
add esp, 0x14
cmp al, 0xef
jne 0x4080fe
cmp ah, 0xbb
jne 0x4080fe
cmp byte [ebp - 2], 0xbf
jne 0x4080fe
mov eax, dword [esi]
push 0
push 3
push eax
call dword [sym.imp.MSVCR100.dll_fseek]
add esp, 0xc
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret