joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100b4db0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c26f5
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x100d7040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x20], edi
movzx eax, byte [edx]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edx + 1]
xor ecx, eax
movzx eax, byte [edx + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, ebx
push eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push edx
push eax
call fcn.100b4d40
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100b4e3a
mov dword [edi], eax
mov byte [edi + 4], 0
jmp 0x100b4f80
cmp dword [ebx + 8], 0xfffffff
jne 0x100b4e4e
push str.unordered_map_set_too_long
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
lea eax, [ebx + 4]
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0
push 0x10
mov dword [ebp - 0x24], 0
call fcn.100b7608
mov ecx, dword [ebp - 0x10]
mov esi, eax
add esp, 4
mov dword [ebp - 0x24], esi
mov ecx, dword [ecx]
mov dword [esi + 8], ecx
mov byte [esi + 0xc], 0
mov dword [ebp - 4], 1
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0x1c]
inc eax
movss xmm3, dword [ebx]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100cbff0]
mov eax, ecx
shr eax, 0x1f
cvtpd2ps xmm2, xmm0
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
movaps xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x100cbff0]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, xmm3
jbe 0x100b4f33
divss xmm2, xmm3
sub esp, 8
movss dword [ebp - 0x10], xmm2
fld dword [ebp - 0x10]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
add esp, 8
fstp dword [ebp - 0x10]
movss xmm0, dword [ebp - 0x10]
call fcn.100b89b0
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
mov eax, dword [ebx + 0x1c]
cmp eax, ecx
jae 0x100b4f15
cmp eax, 0x200
jae 0x100b4f13
shl eax, 3
cmp eax, ecx
jae 0x100b4f15
mov eax, ecx
push eax
mov ecx, ebx
call fcn.10080490
push dword [ebp - 0x14]
lea eax, [esi + 8]
mov ecx, ebx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.100b4d40
mov edx, dword [eax]
jmp 0x100b4f36
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 4]
inc dword [ebx + 8]
mov edi, dword [ebp - 0x28]
mov dword [esi + 4], eax
mov dword [esi], edx
mov dword [eax], esi
mov dword [edx + 4], esi
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x18]
and eax, dword [ebp - 0x14]
mov ebx, dword [ecx + eax*8]
cmp ebx, dword [edi]
jne 0x100b4f61
mov dword [ecx + eax*8], esi
jmp 0x100b4f73
cmp ebx, edx
jne 0x100b4f6a
mov dword [ecx + eax*8], esi
jmp 0x100b4f77
mov edx, dword [ebp - 0x10]
cmp dword [ecx + eax*8 + 4], edx
jne 0x100b4f77
mov dword [ecx + eax*8 + 4], esi
mov edi, dword [ebp - 0x20]
mov dword [edi], esi
mov byte [edi + 4], 1
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x100b5540
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c26f5
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x100d7040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x20], edi
movzx eax, byte [edx]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edx + 1]
xor ecx, eax
movzx eax, byte [edx + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, ebx
push eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push edx
push eax
call fcn.100b4d40
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100b55ca
mov dword [edi], eax
mov byte [edi + 4], 0
jmp 0x100b5712
cmp dword [ebx + 8], 0xfffffff
jne 0x100b55de
push str.unordered_map_set_too_long
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
lea eax, [ebx + 4]
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0
push 0x10
mov dword [ebp - 0x24], 0
call fcn.100b7608
mov edx, dword [ebp - 0x10]
mov esi, eax
add esp, 4
mov dword [ebp - 0x24], esi
mov ecx, dword [edx]
mov edx, dword [edx + 4]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
mov dword [ebp - 4], 1
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0x1c]
inc eax
movss xmm3, dword [ebx]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100cbff0]
mov eax, ecx
shr eax, 0x1f
cvtpd2ps xmm2, xmm0
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
movaps xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x100cbff0]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, xmm3
jbe 0x100b56c5
divss xmm2, xmm3
sub esp, 8
movss dword [ebp - 0x10], xmm2
fld dword [ebp - 0x10]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
add esp, 8
fstp dword [ebp - 0x10]
movss xmm0, dword [ebp - 0x10]
call fcn.100b89b0
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
mov eax, dword [ebx + 0x1c]
cmp eax, ecx
jae 0x100b56a7
cmp eax, 0x200
jae 0x100b56a5
shl eax, 3
cmp eax, ecx
jae 0x100b56a7
mov eax, ecx
push eax
mov ecx, ebx
call fcn.10080490
push dword [ebp - 0x14]
lea eax, [esi + 8]
mov ecx, ebx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.100b4d40
mov edx, dword [eax]
jmp 0x100b56c8
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 4]
inc dword [ebx + 8]
mov edi, dword [ebp - 0x28]
mov dword [esi + 4], eax
mov dword [esi], edx
mov dword [eax], esi
mov dword [edx + 4], esi
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x18]
and eax, dword [ebp - 0x14]
mov ebx, dword [ecx + eax*8]
cmp ebx, dword [edi]
jne 0x100b56f3
mov dword [ecx + eax*8], esi
jmp 0x100b5705
cmp ebx, edx
jne 0x100b56fc
mov dword [ecx + eax*8], esi
jmp 0x100b5709
mov edx, dword [ebp - 0x10]
cmp dword [ecx + eax*8 + 4], edx
jne 0x100b5709
mov dword [ecx + eax*8 + 4], esi
mov edi, dword [ebp - 0x20]
mov dword [edi], esi
mov byte [edi + 4], 1
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4027ac
Capabilities:
Get routing table

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x133f
sub esp, 0x70
push fcn.004027ac
xor esi, esi
xor edi, edi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
fild dword [0x409164]
mov edx, 1
call fcn.00406b92
push 0
lea ebx, [ebp - 0xa0]
mov dword [ebx], esi
push ebx
push 0
call dword [sym.imp.IPHLPAPI.DLL_GetIpForwardTable]
mov esi, dword [ebp - 0xa0]
mov ebx, 0x4001
call fcn.00406b5a
call fcn.0040694c
fcompp
fnstsw ax
sahf
jne 0x4028fb
mov eax, esi
push eax
push 0x40
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
fldcw word [ebp - 0x10]
mov dword [ebp - 0x9c], eax
fild dword [0x409160]
mov edx, 1
call fcn.00406b92
push 0
lea ebx, [ebp - 0xa0]
mov dword [ebx], esi
push ebx
push dword [ebp - 0x9c]
call dword [sym.imp.IPHLPAPI.DLL_GetIpForwardTable]
mov esi, dword [ebp - 0xa0]
mov ebx, 0x4001
call fcn.00406b5a
call fcn.0040694c
fcompp
fnstsw ax
sahf
jne 0x4028ec
mov eax, 1
mov ebx, dword [ebp - 0x9c]
mov ecx, dword [ebx]
neg eax
add eax, ecx
mov dword [ebp - 0xac], eax
mov edi, 0
jmp 0x4028e2
fild dword [0x409210]
mov ebx, dword [ebp - 0x9c]
mov eax, edi
imul eax, eax, 0x38
add ebx, eax
mov eax, dword [ebx + 4]
call fcn.0040694c
fcompp
fnstsw ax
sahf
jne 0x4028e0
mov ebx, dword [ebp - 0x9c]
mov eax, edi
imul eax, eax, 0x38
add ebx, eax
push dword [ebx + 0x10]
call fcn.00402916
call fcn.00406ef0
lea ebx, [ebp - 0x98]
call fcn.0040697a
jmp 0x4028ec
inc edi
mov eax, edi
cmp eax, dword [ebp - 0xac]
jle 0x402890
push dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
fldcw word [ebp - 0x10]
mov eax, dword [ebp - 0x98]
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4029d9
Capabilities:
Get routing table

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x133f
sub esp, 0x70
push fcn.004029d9
xor esi, esi
xor edi, edi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
fild dword [0x409164]
mov edx, 1
call fcn.00406b92
push 0
lea ebx, [ebp - 0xa0]
mov dword [ebx], esi
push ebx
push 0
call dword [sym.imp.IPHLPAPI.DLL_GetIpForwardTable]
mov esi, dword [ebp - 0xa0]
mov ebx, 0x4001
call fcn.00406b5a
call fcn.0040694c
fcompp
fnstsw ax
sahf
jne 0x402bb3
mov eax, esi
push eax
push 0x40
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
fldcw word [ebp - 0x10]
mov dword [ebp - 0x9c], eax
fild dword [0x409160]
mov edx, 1
call fcn.00406b92
push 0
lea ebx, [ebp - 0xa0]
mov dword [ebx], esi
push ebx
push dword [ebp - 0x9c]
call dword [sym.imp.IPHLPAPI.DLL_GetIpForwardTable]
mov esi, dword [ebp - 0xa0]
mov ebx, 0x4001
call fcn.00406b5a
call fcn.0040694c
fcompp
fnstsw ax
sahf
jne 0x402ba4
mov eax, 1
mov ebx, dword [ebp - 0x9c]
mov ecx, dword [ebx]
neg eax
add eax, ecx
mov dword [ebp - 0xac], eax
mov edi, 0
jmp 0x402b96
fild dword [0x409210]
mov ebx, dword [ebp - 0x9c]
mov eax, edi
imul eax, eax, 0x38
add ebx, eax
mov eax, dword [ebx + 4]
call fcn.0040694c
fcompp
fnstsw ax
sahf
jne 0x402b94
fild dword [0x409160]
mov edx, 1
call fcn.00406b92
mov ebx, dword [ebp - 0x9c]
mov eax, edi
imul eax, eax, 0x38
add ebx, eax
lea ebx, [ebx + 4]
push ebx
call dword [sym.imp.IPHLPAPI.DLL_DeleteIpForwardEntry]
mov ebx, 0x4001
call fcn.00406b5a
call fcn.0040694c
fcompp
fnstsw ax
sahf
jne 0x402b8f
lea ebx, [ebp + 8]
push ebx
call dword [sym.imp.WS2_32.DLL_inet_addr]
fldcw word [ebp - 0x10]
mov ebx, dword [ebp - 0x9c]
mov ecx, edi
imul ecx, ecx, 0x38
add ebx, ecx
mov dword [ebx + 0x10], eax
fild dword [0x409160]
mov edx, 1
call fcn.00406b92
mov ebx, dword [ebp - 0x9c]
mov eax, edi
imul eax, eax, 0x38
add ebx, eax
lea ebx, [ebx + 4]
push ebx
call dword [sym.imp.IPHLPAPI.DLL_CreateIpForwardEntry]
mov ebx, 0x4001
call fcn.00406b5a
call fcn.0040694c
fcompp
fnstsw ax
sahf
jne 0x402b8f
mov dword [ebp - 0x98], 1
jmp 0x402ba4
inc edi
mov eax, edi
cmp eax, dword [ebp - 0xac]
jle 0x402ac0
push dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
fldcw word [ebp - 0x10]
mov eax, dword [ebp - 0x98]
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 0x20
Function at 0x402c78
Capabilities:
Accept command line arguments
Allocate thread local storage
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, section..data
test word [0x402c5a], 4
jne 0x402c93
jmp 0x4030c2
jmp fcn.00402ec5
push 0
call dword [sym.imp.OLE32.DLL_CoInitialize]
call fcn.00402dc1
mov dword [ebx + 0x3f0], 1
lea eax, [ebx + 0x5c4]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
sub esp, 0x44
mov dword [esp], 0x44
mov dword [esp + 0x2c], 0
push esp
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
mov eax, 0xa
test dword [esp + 0x2c], 1
je 0x403113
movzx eax, word [esp + 0x30]
add esp, 0x44
mov dword [ebx + 0x3e4], eax
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
call fcn.00402e67
mov dword [ebx + 0x3e0], eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [ebx + 0x3ec], eax
call fcn.00402c98
push 0xff
jb 0x403192
pop eax
movzx ecx, word [0x402c58]
jecxz 0x40315d
push ecx
push 8
push esp
call dword [sym.imp.COMCTL32.DLL_InitCommonControlsEx]
pop eax
pop eax
call fcn.00402d0d
push eax
mov ebx, section..data
mov ecx, dword [ebx + 0xd8]
call fcn.0040319e
mov ecx, dword [ebx + 0xb4]
jecxz 0x403182
push ecx
call dword [0x43b000]
mov edi, dword [ebx + 0x428]
call fcn.00402d12
call fcn.00402cf9
call dword [sym.imp.OLE32.DLL_CoUninitialize]
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x402c98
Capabilities:
Allocate thread local storage

Disassembly:
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
cmp eax, 0xffffffff
stc
je 0x402cf8
mov dword [ebx + 0x3d0], eax
mov dword [ebx + 0x3d8], 0
mov dword [ebx + 0x3d4], 0
call fcn.00402fa4
jb 0x402cf8
mov dword [ebx + 0x3d4], eax
mov word [eax + 0xac], 8
call fcn.00402ce7
dec ebp
push ebx
and byte [ebx + 0x61], dl
outsb dx, byte [esi]
jae 0x402d01
push ebx
jb 0x402d4e
add byte [esi - 4], bl
mov bl, 0xd0
add eax, dword [eax]
add bh, bh
adc eax, sym.imp.KERNEL32.DLL_TlsFree
ret

Function at 0x402ec5
Capabilities:
Terminate process

Disassembly:
mov edx, 0xf4
jmp 0x402ed1
mov dh, 0xb0
mov word [ebp - 0x90], dx
jmp 0x402ee7
test byte [ebp - 0x90], 0xff
jne 0x402ef9
mov word [ebp - 0x90], 0xb033
push eax
push ebx
push ecx
push esi
push edi
mov ax, word [ebp - 0x8e]
mov word [ebp - 0xe], ax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x3c], eax
call fcn.00402fa4
jb 0x402f33
test dword [eax + 0x28], 0xffffffff
je 0x402f33
test dword [eax + 0x24], 0xffffffff
je 0x402f33
call fcn.00402ec5
mov edi, dword [ebp - 0x84]
mov ecx, dword [edi - 6]
jecxz 0x402f66
xor ebx, ebx
mov edx, dword [esp + 0x14]
xor esi, esi
mov bl, byte [ecx]
inc ecx
cmp bl, 0xff
jne 0x402f56
add esi, 0xfe
jmp 0x402f46
add esi, ebx
add edi, esi
cmp edi, edx
jb 0x402f44
mov dword [eax + 0x30], edi
sub edi, esi
mov dword [eax + 0x2c], edi
test word [0x402c5a], 0x2000
je 0x402f87
test dword [ebp - 0x8c], 0xffffffff
jne 0x402f87
call fcn.00402ec5
cmp eax, 1
jne 0x402f96
cmp byte [ebp - 0x90], 0xf1
jae 0x402f96
pop edi
pop esi
pop ecx
pop ebx
pop eax
ret
push 0xff
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
Function at 0x40697a
Capabilities:
Terminate process

Disassembly:
push esi
push edi
mov esi, dword [ebp - 0x88]
mov esi, dword [ebp + esi - 0x6c]
add dword [ebp - 0x88], 4
test esi, 1
je 0x40699a
and esi, 0xfffffffe
jne 0x4069a4
xchg dword [ebx], esi
call fcn.00406191
pop edi
pop esi
ret
call fcn.004061b9
mov edi, dword [ebx]
or edi, edi
je 0x4069b4
cmp ecx, dword [edi - 4]
je 0x4069d4
call fcn.0040615d
jb 0x4069e4
cld
push ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xchg dword [ebx], edx
mov esi, edx
call fcn.00406191
pop edi
pop esi
ret
cld
push ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
ret
xchg dword [ebx], edx
mov esi, edx
call fcn.00406191
pop edi
pop esi
jmp 0x402edc

Function at 0x406df2
Capabilities:
Terminate process

Disassembly:
mov ah, 0xb0
mov word [ebp - 0x90], ax
xor eax, eax
push eax
push edx
push esi
mov ebx, dword [ebp - 0x84]
sub ebx, 0xa
mov esi, dword [ebx]
sub ebx, 4
shr esi, 1
jb 0x406e1f
je 0x406e1b
shr esi, 1
jae 0x406e40
shl esi, 2
mov esi, dword [ebp + esi]
call fcn.00406191
jmp 0x406dfe
pop esi
pop edx
pop eax
ret
shr esi, 1
jb 0x406e51
push ebx
shl esi, 2
lea ebx, [ebp + esi]
mov eax, 1
call fcn.00402ec5
pop ebx
jae 0x406dfe
pop esi
pop edx
pop eax
jmp 0x402edc
shl esi, 2
mov ecx, dword [ebp + esi]
jecxz 0x406dfe
push ecx
mov ecx, dword [ecx]
call dword [ecx + 8]
jmp 0x406dfe
lea ecx, [ebp + esi*4]
push ecx
call dword [sym.imp.OLEAUT32.DLL_VariantClear]
jmp 0x406dfe
Function at 0x406e08
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 0x406e6e
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.00404f00
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004036fc
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406e58
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406e75
lea eax, [ebp - 0x10]
call fcn.00404c90
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405150
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409d49
test al, 0x10
jne 0x409d4d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x409ee4
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405150
push eax
call sub.kernel32.dll_GetFileAttributesA
pop ebx
ret

Function at 0x409ef8
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00405150
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x409f1a
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40d20c
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 pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40d245
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404d80
jmp 0x40d24e
mov eax, ebx
mov edx, esi
call fcn.00404ce4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40d258
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_1
test eax, eax
jle 0x40d279
mov al, byte [esp]
jmp 0x40d27b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40d910
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40d778
mov eax, dword [0x50e1cc]
cmp byte [eax], 0
je 0x40d98c
mov eax, dword [0x50dce0]
call fcn.00403504
call fcn.00402cdc
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.0040a430
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40d9d4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d9c2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x50dc18]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x50f668]
call fcn.00406218
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40e2a8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40e37e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404d28
lea eax, [ebp - 8]
call fcn.004051a0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00405150
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40e368
mov eax, ebx
call fcn.00402b50
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40e361
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 - 8]
call fcn.00405150
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40e34b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40e390
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40e34b
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e368
mov eax, dword [ebp - 0x10]
call fcn.00402b80
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e385
lea eax, [ebp - 8]
call fcn.00404c90
ret

Function at 0x40eae4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40eb48
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404f00
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409834
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40eb4f
lea eax, [ebp - 0xc]
call fcn.00404c90
ret
Function at 0x420840
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.00420698
dec esi
jne 0x420862
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x4219bc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
lea ebx, [ebp - 0xc]
mov esi, 0x50f88c
cmp dword [esi], 0
jne 0x421a62
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov edx, dword [0x50f888]
mov dword [eax], edx
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, 0x4fe488
mov ecx, 2
call fcn.00402ebc
mov edx, 0x421994
mov eax, dword [ebp - 8]
add eax, 5
call fcn.004219b4
mov edx, dword [ebp - 8]
mov dword [edx + 6], eax
mov eax, dword [ebp - 8]
add eax, 0xa
mov dword [ebx], eax
mov eax, dword [ebx]
mov byte [eax], 0xe8
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, dword [ebx]
call fcn.004219b4
mov edx, dword [ebx]
mov dword [edx + 1], eax
mov eax, dword [ebx]
mov edx, dword [esi]
mov dword [eax + 5], edx
mov eax, dword [ebx]
mov dword [esi], eax
add dword [ebx], 0xd
mov eax, dword [ebx]
sub eax, dword [ebp - 8]
cmp eax, 0xffc
jl 0x421a29
mov eax, dword [ebp - 8]
mov dword [0x50f888], eax
mov eax, dword [esi]
mov dword [ebp - 4], eax
mov eax, dword [esi]
mov dword [ebx], eax
mov eax, dword [ebx]
mov eax, dword [eax + 5]
mov dword [esi], eax
mov eax, dword [ebx]
mov edx, dword [ebp + 8]
mov dword [eax + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 9], edx
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4230f8
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x4230fe
ret

Function at 0x4259b0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x425a01
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4259e8
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4259d8
jmp 0x425a01
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x4259e9
pop ebx
mov esp, ebp
pop ebp
ret