joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c630
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ffbfd
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x569080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x14], 0x5305e4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
cmp esi, 0xffffffff
jne 0x40c68d
xor edi, edi
jmp 0x40c698
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], 0x5305e4
test esi, esi
je 0x40c6b8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40c970
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ffcfd
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x569080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0
movzx ebx, cx
push 0x1004
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov esi, eax
test esi, esi
jne 0x40c9c5
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 2
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.004d4097
mov edi, eax
add esp, 4
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
push esi
push edi
push 0x1004
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x40c9ff
xor bl, bl
jmp 0x40ca47
dec eax
lea ecx, [ebp - 0x14]
push eax
push edi
call fcn.00409e70
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
push eax
call fcn.00409df0
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x40ca45
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
mov edi, dword [ebp - 0x10]
mov bl, 1
mov dword [ebp - 4], 0xffffffff
push edi
call fcn.004d4092
add esp, 4
mov dword [ebp - 0x10], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ecc0
Capabilities:
Get file size
Hash data with md5
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x70
push 0xffffffffffffffff
push 0x500205
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x569080]
xor eax, ebp
mov dword [ebp + 0x6c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], edx
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
push ecx
mov byte [edx], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x24], 0x5305e4
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 0
cmp edi, 0xffffffff
je 0x40ee51
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40ee51
test ebx, ebx
je 0x40ee51
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
push 0x10000
call fcn.00408a70
mov esi, dword [ebp - 0x14]
test esi, esi
jne 0x40ed70
xor bl, bl
jmp 0x40ee3b
xor edi, edi
mov byte [ebp + 0x68], 0
mov dword [ebp - 0x10], edi
mov dword [ebp + 0x10], edi
mov dword [ebp + 0x14], edi
mov dword [ebp], 0x67452301
mov dword [ebp + 4], 0xefcdab89
mov dword [ebp + 8], 0x98badcfe
mov dword [ebp + 0xc], 0x10325476
nop dword [eax + eax]
push 0
lea eax, [ebp - 0x10]
push eax
push 0x10000
push esi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40ede5
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x40ede5
lea eax, [ecx + edi]
cmp eax, ebx
ja 0x40edd6
push ecx
push esi
lea ecx, [ebp]
call fcn.004106a0
add edi, dword [ebp - 0x10]
jmp 0x40eda0
sub ebx, edi
lea ecx, [ebp]
push ebx
push esi
mov dword [ebp - 0x10], ebx
call fcn.004106a0
lea ecx, [ebp]
call fcn.00410770
cmp byte [ebp + 0x68], 0
jne 0x40edf7
xor bl, bl
jmp 0x40ee38
mov esi, dword [ebp - 0x1c]
xor edi, edi
nop dword [eax]
mov dl, byte [ebp + edi + 0x58]
mov cl, dl
shr cl, 4
cmp cl, 0xa
sbb al, al
and dl, 0xf
and al, 0xd9
add al, 0x57
add al, cl
cmp dl, 0xa
mov byte [esi + edi*2], al
sbb al, al
and al, 0xd9
add al, 0x57
add al, dl
mov byte [esi + edi*2 + 1], al
inc edi
cmp edi, 0x10
jl 0x40ee00
mov byte [esi + 0x20], 0
mov bl, 1
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov byte [ebp - 4], 0
push esi
call fcn.004d4092
add esp, 4
mov dword [ebp - 0x14], 0
jmp 0x40ee53
xor bl, bl
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x24], 0x5305e4
test edi, edi
je 0x40ee73
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x20], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x6c]
xor ecx, ebp
call fcn.004d3ce9
lea esp, [ebp + 0x70]
pop ebp
ret
Function at 0x40fa40
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x500565
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x569080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0040f3f0
test al, al
je 0x40fa87
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
mov edx, esi
lea ecx, [ebp - 0x2c]
call fcn.0040f630
cmp dword [ebp - 0x28], 0
jle 0x40fc47
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.00402800
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 2
xor eax, eax
mov ecx, dword [ebp - 0x28]
dec ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], ecx
lea ebx, [eax + 1]
cmp ecx, ebx
jle 0x40fbf2
lea ecx, [esi - 0x10]
call fcn.00402800
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
push 1
push 0x5321bc
call fcn.00402660
test ebx, ebx
js 0x40fc47
cmp ebx, dword [ebp - 0x28]
jge 0x40fc47
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x18]
mov eax, dword [eax + ebx*4]
push dword [eax - 0xc]
push eax
call fcn.00402660
mov edi, dword [ebp - 0x18]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40fb5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
cmp eax, 0xb7
je 0x40fb5a
cmp dword [ebp - 0x1c], 1
jne 0x40fbba
push 1
push 0x5321bc
lea ecx, [ebp - 0x10]
call fcn.00402660
cmp ebx, dword [ebp - 0x28]
jge 0x40fc47
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x10]
mov eax, dword [eax + ebx*4]
push dword [eax - 0xc]
push eax
call fcn.00402660
mov byte [ebp - 4], 2
lea ecx, [edi - 0x10]
or eax, 0xffffffff
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x40fbac
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
mov esi, dword [ebp - 0x10]
inc ebx
cmp ebx, dword [ebp - 0x20]
jge 0x40fbef
jmp 0x40faf0
cmp ebx, 1
jle 0x40fbc7
lea ecx, [ebp - 0x10]
call fcn.0040f110
mov byte [ebp - 4], 2
lea ecx, [edi - 0x10]
or eax, 0xffffffff
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x40fbef
mov ebx, dword [ecx]
push ecx
mov eax, dword [ebx]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x525578]
mov ecx, ebx
call edi
mov eax, dword [ebp - 0x14]
xor ebx, ebx
cmp eax, 0xb7
cmovne ebx, eax
mov byte [ebp - 4], 0
lea ecx, [esi - 0x10]
or eax, 0xffffffff
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x40fc24
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00409960
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x8000000b
call fcn.004027d0
int3
Function at 0x410330
Capabilities:
Delete file
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x500635
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x569080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], edx
xor edi, edi
xor esi, esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
push ecx
lea ecx, [ebp - 0x30]
call fcn.0040fd90
mov byte [ebp - 4], 1
lea eax, [ebp - 0x20]
mov ebx, dword [ebp - 0x30]
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4103ee
push eax
lea ecx, [ebp - 0x14]
call fcn.00408a70
mov esi, dword [ebp - 0x14]
test al, al
jne 0x4103a1
mov edi, 8
jmp 0x4103f6
push esi
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4103ee
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x5321bc
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4103f6
cmp dword [ebp - 0x24], 0
je 0x4103f6
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x18]
test ecx, ecx
je 0x4103e0
mov eax, dword [edx + 8]
mov dword [ecx], eax
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4103f6
mov eax, dword [edx + 0xc]
mov dword [ecx], eax
jmp 0x4103f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov byte [ebp - 4], 0
cmp byte [ebp - 0x2c], 0
je 0x410407
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
call fcn.004d4092
add esp, 4
mov dword [ebp - 4], 0xffffffff
push esi
call fcn.004d4092
add esp, 4
mov dword [ebp - 0x14], 0
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

Function at 0x4128f0
Capabilities:
Hash data using fnv

Disassembly:
sub esp, 8
mov edx, dword [esp + 0xc]
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
push eax
push edx
lea eax, [esp + 8]
push eax
call fcn.00413040
mov eax, dword [esp + 4]
test eax, eax
je 0x412946
add eax, 0xc
add esp, 8
ret 4
push str.invalid_unordered_map_K__T__key
call fcn.004bce47
int3

Function at 0x413790
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [esp + 0xc]
mov ecx, 0
sub esi, edi
sar esi, 1
add esi, esi
je 0x4137c1
nop dword [eax]
movzx eax, byte [edi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x4137b0
pop edi
mov eax, edx
pop esi
ret 8
Function at 0x413ec0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5012d8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x569080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor ecx, eax
movzx eax, byte [edi + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edi + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
lea eax, [ebp - 0x20]
imul ebx, ecx, 0x1000193
push ebx
push edi
push eax
call fcn.00413040
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x413f4c
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov byte [eax + 4], 0
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
cmp dword [0x56c004], 0x6666666
je 0x4140b9
mov dword [ebp - 0x18], 0x56c000
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
push 0x28
mov dword [ebp - 0x14], 0
call fcn.004d4062
mov esi, eax
add esp, 4
lea eax, [esi + 8]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], eax
mov ecx, dword [edi]
mov dword [eax], ecx
lea ecx, [eax + 4]
lea eax, [edi + 4]
push eax
call fcn.004111d0
mov dword [ebp - 4], 2
mov ecx, dword [0x56c004]
mov edi, dword [0x56c018]
lea eax, [ecx + 1]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x53cd10]
mov eax, edi
shr eax, 0x1f
cvtpd2ps xmm3, xmm0
movd xmm0, edi
cvtdq2pd xmm0, xmm0
movaps xmm2, xmm3
addsd xmm0, qword [eax*8 + 0x53cd10]
cvtpd2ps xmm1, xmm0
movss xmm0, dword [0x56bffc]
divss xmm2, xmm1
comiss xmm2, xmm0
jbe 0x414047
divss xmm3, xmm0
movaps xmm0, xmm3
call fcn.00408a30
call fcn.004fc8b0
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
cmp edi, ecx
jae 0x414029
cmp edi, 0x200
jae 0x414027
shl edi, 3
cmp edi, ecx
jae 0x414029
mov edi, ecx
push edi
call fcn.004145e0
push ebx
lea eax, [esi + 8]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00413040
mov ecx, dword [0x56c004]
mov edx, dword [eax]
jmp 0x41404a
mov edx, dword [ebp - 0x20]
mov edi, dword [edx + 4]
inc ecx
mov dword [0x56c004], ecx
mov dword [esi], edx
mov dword [esi + 4], edi
mov dword [edi], esi
mov dword [edx + 4], esi
mov eax, dword [0x56c014]
mov ecx, dword [0x56c008]
and eax, ebx
mov dword [ebp - 0x14], 0
mov ebx, dword [ecx + eax*8]
cmp ebx, dword [0x56c000]
jne 0x414082
mov dword [ecx + eax*8], esi
jmp 0x414091
cmp ebx, edx
jne 0x41408b
mov dword [ecx + eax*8], esi
jmp 0x414095
cmp dword [ecx + eax*8 + 4], edi
jne 0x414095
mov dword [ecx + eax*8 + 4], esi
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov byte [eax + 4], 1
mov dword [ebp - 4], 0xffffffff
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
push str.unordered_map_set_too_long
call fcn.004bce27
int3
Function at 0x4145e0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50159d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x569080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, 0x1fffffff
mov edi, 1
bsr ecx, eax
mov eax, edi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
ja 0x414793
lea eax, [ecx - 1]
mov esi, dword [0x56c000]
or eax, edi
mov dword [ebp - 0x10], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
mov ecx, 0x56c008
lea eax, [edi + edi]
push eax
call fcn.00412cd0
lea eax, [edi - 1]
mov dword [0x56c018], edi
mov dword [0x56c014], eax
mov dword [ebp - 0x1c], 0x56bffc
mov dword [ebp - 4], 0
mov eax, dword [0x56c000]
mov eax, dword [eax]
mov ecx, eax
cmp eax, esi
je 0x41474d
nop word [eax + eax]
movzx edx, byte [eax + 8]
xor edx, 0x811c9dc5
mov ecx, dword [ecx]
imul edi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor edi, edx
movzx edx, byte [eax + 0xa]
imul edi, edi, 0x1000193
xor edi, edx
movzx edx, byte [eax + 0xb]
imul edi, edi, 0x1000193
xor edi, edx
mov edx, dword [0x56c008]
imul edi, edi, 0x1000193
and edi, dword [0x56c014]
mov ebx, dword [edx + edi*8]
lea edx, [edx + edi*8]
mov dword [ebp - 0x14], edx
cmp ebx, esi
jne 0x4146d6
mov dword [edx], eax
mov dword [edx + 4], eax
jmp 0x414743
mov edx, dword [edx + 4]
mov edi, dword [eax + 8]
cmp edi, dword [edx + 8]
jne 0x414710
mov edx, dword [edx]
mov dword [ebp - 0x18], edx
cmp edx, eax
je 0x414708
mov ebx, dword [eax + 4]
mov esi, dword [ebp - 0x18]
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp - 0x10]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x14]
mov dword [edx + 4], eax
jmp 0x414743
cmp ebx, edx
je 0x414720
mov edx, dword [edx + 4]
cmp edi, dword [edx + 8]
je 0x41476f
cmp ebx, edx
jne 0x414714
mov ebx, dword [eax + 4]
mov dword [ebp - 0x18], ebx
mov dword [ebx], ecx
mov ebx, dword [ecx + 4]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov dword [edx + 4], ebx
mov edx, dword [ebp - 0x18]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0x14]
mov dword [eax + 4], edi
mov dword [edx], eax
mov eax, ecx
cmp ecx, esi
jne 0x414680
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [eax + 4]
mov edx, dword [edx]
mov dword [ebp - 0x18], edx
mov esi, edx
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp - 0x10]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
jmp 0x414743
push str.invalid_hash_bucket_count
call fcn.004bce27
int3
Function at 0x41b3f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50225f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x569080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push 0
call fcn.004bd4b7
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov byte [ebp - 4], 1
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
mov byte [ebp - 4], 2
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov byte [ebp - 4], 3
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov byte [ebp - 4], 4
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov byte [ebp - 4], 5
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
mov eax, dword [ebp + 8]
test eax, eax
je 0x41b4a1
push eax
push esi
call fcn.004bd372
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push str.bad_locale_name
call fcn.004bce87
int3
Function at 0x41d760
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50268d
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x569080]
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
test byte [esi + 0x58], 8
je 0x41d7a0
push dword [esi + 0x30]
call dword [sym.imp.GDI32.dll_DeleteObject]
and byte [esi + 0x58], 0xf7
mov ebx, dword [esi + 0x34]
test ebx, ebx
jne 0x41d7b1
push 0xd
call dword [sym.imp.GDI32.dll_GetStockObject]
mov ebx, eax
mov dword [ebp - 0x70], ebx
mov dword [ebp - 4], 0
lea eax, [ebp - 0x6c]
push 0x5c
push 0
push eax
call fcn.004d5e00
add esp, 0xc
lea eax, [ebp - 0x6c]
push eax
push 0x5c
push ebx
call dword [sym.imp.GDI32.dll_GetObjectW]
mov ecx, dword [esi + 0x54]
mov eax, ecx
and eax, 0x30
cmp al, 0x30
jne 0x41d7ed
mov dword [ebp - 0x5c], 0x2bc
jmp 0x41d7ff
movzx eax, byte [ebp - 0x57]
test cl, 1
mov ecx, 1
cmove eax, ecx
mov byte [ebp - 0x57], al
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
or byte [esi + 0x58], 8
mov dword [esi + 0x30], eax
mov dword [ebp - 4], 0xffffffff
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.004d3ce9
mov esp, ebp
pop ebp
ret

Function at 0x41da30
Capabilities:
Create process on windows

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov bl, 1
mov ecx, dword [edi + 0x54]
mov eax, ecx
and eax, 0xc
cmp al, 0xc
jne 0x41da8c
mov eax, dword [edi + 4]
push eax
mov dword [esp + 0x10], eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
push dword [edi + 4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 0xfffffffe
call dword [sym.imp.USER32.dll_GetParent]
push dword [edi + 4]
mov esi, eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea ecx, [esp + 0xc]
push ecx
push eax
push 0x4e
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
mov al, bl
pop ebx
add esp, 0xc
ret
shr ecx, 2
test bl, cl
je 0x41dac2
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetParent]
mov edi, dword [edi + 4]
mov esi, eax
push edi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
push edi
movzx eax, ax
push eax
push 0x111
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
mov al, bl
pop ebx
add esp, 0xc
ret
push 1
push 0
push 0
push dword [edi + 0x28]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
seta bl
jbe 0x41daf1
or byte [edi + 0x58], 2
push 1
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
mov al, bl
pop ebx
add esp, 0xc
ret
Function at 0x4207e0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
mov ebx, ecx
push edi
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
test edi, edi
js 0x420859
mov esi, dword [esp + 0x10]
mov ecx, 1
mov eax, dword [esi]
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or ecx, eax
jge 0x420813
push edi
mov ecx, esi
call fcn.004025f0
push edi
push dword [esi]
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edi, eax
mov ecx, edi
cmp edi, 0xffffffff
jne 0x42083b
mov ecx, dword [esi]
test ecx, ecx
je 0x42083b
push dword [ecx - 8]
push ecx
call fcn.004d93d2
add esp, 8
mov ecx, eax
test ecx, ecx
js 0x420859
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x420859
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov word [eax + ecx*2], dx
mov eax, edi
pop edi
pop esi
pop ebx
ret 4
push 0x80070057
call fcn.004027d0
int3
Function at 0x422200
Capabilities:
Check for time delay via gettickcount
Query service status

Disassembly:
sub esp, 0x2c
mov eax, dword [0x569080]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
mov ebx, dword [esp + 0x34]
lea eax, [esp + 4]
push eax
push 0x24
lea eax, [esp + 0x10]
mov dword [esp + 0xc], 0
push eax
xorps xmm0, xmm0
mov dword [esp + 0x34], 0
push 0
push ebx
movups xmmword [esp + 0x1c], xmm0
movups xmmword [esp + 0x2c], xmm0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x422261
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004d3ce9
add esp, 0x2c
ret 8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [esp + 0x40]
mov edi, eax
cmp dword [esp + 0x14], esi
je 0x4222b4
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0xc]
push eax
push 0x24
lea eax, [esp + 0x18]
push eax
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x4222e3
cmp dword [esp + 0x14], esi
je 0x4222b4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, 0x7530
ja 0x4222ca
cmp dword [esp + 0x14], esi
jne 0x422275
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004d3ce9
add esp, 0x2c
ret 8
pop edi
pop esi
mov eax, 0x102
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004d3ce9
add esp, 0x2c
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004d3ce9
add esp, 0x2c
ret 8