joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43c460
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46144d
mov eax, dword fs:[0]
push eax
sub esp, 0x1d4
mov eax, dword [0x473044]
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 ebx, ecx
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x1d4]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1a4], eax
call fcn.0040e9b0
cmp byte [edi], 0
mov dword [ebp - 4], 0
je 0x43c508
push dword [edi + 0xc]
lea eax, [ebp - 0x1b0]
push dword [edi + 8]
push eax
call fcn.0043c310
push eax
push 0xdb0
lea eax, [ebp - 0x1e0]
mov byte [ebp - 4], 1
push eax
call fcn.0043c3f0
push eax
lea ecx, [ebp - 0x1d4]
mov byte [ebp - 4], 2
call fcn.0040ece0
push dword [ebp - 0x1e0]
call fcn.00450956
push dword [ebp - 0x1b0]
mov byte [ebp - 4], 0
call fcn.00450956
add esp, 8
lea eax, [edi + 0x18]
mov ecx, eax
mov dword [ebp - 0x1a0], eax
call fcn.0040f140
mov esi, eax
lea eax, [ebp - 0x1c8]
lea ecx, [esi + 1]
push ecx
push eax
lea ecx, [edi + 0x18]
call fcn.00425d80
mov eax, dword [edi + 0x18]
lea ecx, [ebp - 0x1bc]
add eax, 2
mov byte [ebp - 4], 3
lea eax, [eax + esi*2]
push eax
call fcn.0040eb50
lea eax, [ebp - 0x1c8]
mov byte [ebp - 4], 4
push eax
mov ecx, ebx
call fcn.0043c7e0
lea eax, [ebp - 0x1bc]
mov ecx, ebx
push eax
call fcn.0043c7e0
lea eax, [ebp - 0x1c8]
push eax
lea ecx, [ebp - 0x19c]
call fcn.0040ebb0
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 5
call fcn.0040ef20
lea eax, [ebp - 0x1bc]
push eax
lea ecx, [ebp - 0x19c]
call fcn.0040efd0
lea ecx, [ebp - 0x19c]
call fcn.0040ef20
lea eax, [ebp - 0x1d4]
push eax
lea ecx, [ebp - 0x19c]
call fcn.0040efd0
lea ecx, [ebp - 0x19c]
call fcn.0040ef20
cmp byte [edi + 1], 0
je 0x43c628
push 0x3f4
lea eax, [ebp - 0x1b0]
push eax
call fcn.00418e80
push eax
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 6
call fcn.0040efd0
push dword [ebp - 0x1b0]
mov byte [ebp - 4], 5
call fcn.00450956
add esp, 4
lea ecx, [ebp - 0x19c]
push 0x4639b8
call fcn.0040f010
push 0
lea eax, [ebp - 0x30]
push eax
lea eax, [edi + 0x10]
push eax
call fcn.004188a0
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x19c]
call fcn.0040f010
push dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push dword [ebx + 4]
call edi
push dword [ebp - 0x19c]
push eax
call fcn.0041a1b0
push dword [ebp - 0x1a0]
lea eax, [ebp - 0x1b0]
push eax
call fcn.00412850
push 0x110
push 0x160
lea ecx, [ebp - 0x190]
push ecx
push 0x80
push dword [eax]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push dword [ebp - 0x1b0]
mov esi, eax
call fcn.00450956
add esp, 4
test esi, esi
je 0x43c6a5
push dword [ebp - 0x1a4]
push dword [ebx + 4]
call edi
push 0
push dword [ebp - 0x190]
push 0x170
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [ebp - 0x19c]
call fcn.00450956
push dword [ebp - 0x1bc]
call fcn.00450956
push dword [ebp - 0x1c8]
call fcn.00450956
push dword [ebp - 0x1d4]
call fcn.00450956
add esp, 0x10
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.00450740
mov esp, ebp
pop ebp
ret 0xc
Function at 0x43c9f0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4614c4
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x473044]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea ecx, [edi + 0x38]
mov dword [edi], 0x10000
mov dword [edi + 8], 0xffffffff
mov dword [edi + 0xc], 0xffffffff
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0xffffffff
mov dword [edi + 0x1c], 0xffffffff
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0xffffffff
mov dword [edi + 0x2c], 0xffffffff
mov dword [edi + 0x30], 0xffffffff
mov dword [edi + 0x34], 0xffffffff
call fcn.0040e9b0
lea ecx, [edi + 0x44]
mov dword [ebp - 4], 0
call fcn.0040e9b0
lea ecx, [edi + 0x50]
mov byte [ebp - 4], 1
call fcn.0040e9b0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0
lea esi, [edi + 0x68]
mov byte [ebp - 4], 3
mov dword [ebp - 0x14], esi
mov ecx, esi
mov dword [ebp - 0x18], esi
call fcn.0040e9b0
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 4
call fcn.0040e9b0
add esi, 0x18
mov byte [ebp - 4], 5
mov ecx, esi
mov dword [ebp - 0x18], esi
call fcn.0040e9b0
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 6
call fcn.0040e9b0
lea eax, [edi + 0x98]
push eax
call fcn.0040bef0
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 0x440670
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c4
mov eax, dword [0x473044]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x476c58], 0
mov edx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
jne 0x4406f0
push esi
push edx
lea eax, [ebp - 0x2c4]
push eax
call fcn.0040fac0
push 0x4010
push 0x160
mov ecx, dword [eax]
lea eax, [ebp - 0x164]
push eax
mov eax, dword [ebp + 0xc]
or eax, 0x80
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push dword [ebp - 0x2c4]
mov esi, eax
call fcn.00450956
mov ecx, dword [ebp - 0x160]
add esp, 4
mov eax, esi
mov dword [edi], ecx
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00450740
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [0x476c50]
test eax, eax
je 0x440717
push 0x4010
push 0x2b4
lea ecx, [ebp - 0x2b8]
push ecx
mov ecx, dword [ebp + 0xc]
or ecx, 0x80
push ecx
push edx
call eax
mov ecx, dword [ebp - 0x2b4]
mov dword [edi], ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00450740
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4407d0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
mov eax, dword [0x473044]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [ebp + 8]
mov edx, 0x4011
test al, al
mov ecx, 0x4110
lea eax, [ebp - 0x164]
cmovne ecx, edx
push ecx
push 0x160
push eax
push 0x90
push 0x4627b2
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00450740
mov esp, ebp
pop ebp
ret 4

Function at 0x440b80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x461a0e
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x473044]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0xd66
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
cmp eax, 1
lea ecx, [ebp - 0x18]
sete al
mov byte [esi + 0x30], al
call fcn.0040e9b0
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
lea ecx, [esi + 8]
call fcn.0041a520
lea ecx, [ebp - 0x18]
call fcn.0040f1f0
lea ecx, [ebp - 0x18]
call fcn.0040f1a0
lea eax, [ebp - 0x18]
push eax
call fcn.00416ea0
lea eax, [ebp - 0x18]
push eax
lea ecx, [esi + 0xc]
call fcn.0040ece0
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
push dword [ebp - 0x18]
call fcn.00450956
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4410e0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x461ad3
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x473044]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], 0
mov dword [esi], vtable.CExtractDialog.0
lea ecx, [esi + 0xc]
mov dword [ebp - 4], 0
mov dword [esi + 8], 0
call fcn.0040e9b0
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
call fcn.0040e9b0
mov word [esi + 0x24], 0
mov eax, esi
mov word [esi + 0x30], 0
mov byte [esi + 0x30], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x441550
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x473044]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
mov dword [ebp - 0x84], 0x420041
xor edx, edx
mov dword [ebp - 0x80], 0x440043
mov dword [ebp - 0x7c], 0x460045
mov dword [ebp - 0x78], 0x480047
mov dword [ebp - 0x74], 0x4a0049
mov dword [ebp - 0x70], 0x4c004b
mov dword [ebp - 0x6c], 0x4e004d
mov dword [ebp - 0x68], 0x50004f
mov dword [ebp - 0x64], 0x520051
mov dword [ebp - 0x60], 0x540053
mov dword [ebp - 0x5c], 0x560055
mov dword [ebp - 0x58], 0x580057
mov dword [ebp - 0x54], 0x5a0059
mov dword [ebp - 0x50], 0x620061
mov dword [ebp - 0x4c], 0x640063
mov dword [ebp - 0x48], 0x660065
mov dword [ebp - 0x44], 0x680067
mov dword [ebp - 0x40], 0x6a0069
mov dword [ebp - 0x3c], 0x6c006b
mov dword [ebp - 0x38], 0x6e006d
mov dword [ebp - 0x34], 0x70006f
mov dword [ebp - 0x30], 0x720071
mov dword [ebp - 0x2c], 0x740073
mov dword [ebp - 0x28], 0x760075
mov dword [ebp - 0x24], 0x780077
mov dword [ebp - 0x20], 0x7a0079
mov dword [ebp - 0x1c], 0x310030
mov dword [ebp - 0x18], 0x330032
mov dword [ebp - 0x14], 0x350034
mov dword [ebp - 0x10], 0x370036
mov dword [ebp - 0xc], 0x390038
mov dword [ebp - 8], 0x2f002b
test esi, esi
jle 0x44168f
nop word [eax + eax]
movzx ecx, word [edi + edx*2]
xor eax, eax
cmp word [ebp + eax*2 - 0x84], cx
je 0x44168a
inc eax
cmp eax, 0x40
jb 0x441666
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00450740
mov esp, ebp
pop ebp
ret 4
inc edx
cmp edx, esi
jl 0x441660
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00450740
mov esp, ebp
pop ebp
ret 4
Function at 0x44fa40
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x473044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x208
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004521d0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x210], 0
lea eax, [ebp - 0x210]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x44fad6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x44fae8
mov eax, dword [ebp - 0x210]
xor ecx, ecx
add ecx, edi
mov dword [esi], ecx
adc eax, 0
mov dword [esi + 4], eax
push dword [esi]
mov dword [ebp - 0x218], 0
call fcn.0045094d
mov ecx, dword [ebp - 0x214]
add esp, 4
push 0
mov dword [ecx], eax
lea ecx, [ebp - 0x218]
push ecx
push dword [esi]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00450740
mov esp, ebp
pop ebp
ret 8
Function at 0x40d610
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push esi
push edi
mov edi, dword [0x84fce4]
push 0
push edi
push 0x130c
push dword [0x6f5108]
call ebx
xor esi, esi
push 0
push 0
push 0x8002
push dword [esi*4 + 0x6f50f4]
call ebx
xor eax, eax
mov ecx, 5
cmp esi, edi
cmove eax, ecx
push eax
push dword [esi*4 + 0x6f50f4]
call dword [sym.imp.USER32.dll_ShowWindow]
inc esi
cmp esi, 5
jl 0x40d635
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40dee0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40df3b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40df3b
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40df28
cmp esi, edx
jae 0x40df3b
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x40df16
cmp esi, edx
jae 0x40df3b
xor eax, eax
cmp word [esi], ax
pop edi
cmove esi, eax
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x40ecb0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [0x6f4dde], 0
je 0x40ecde
nop dword [eax]
push 3
push 0xa
mov ecx, 0x6ef2f0
mov byte [0x6f4ddc], 1
call fcn.00427830
cmp byte [0x6f4dde], 0
jne 0x40ecc0
lea eax, [ebp - 4]
mov byte [0x6f4ddc], 0
push eax
push 0
push 0
push 0x40e4c0
push 0
push 0
mov byte [0x6f4dde], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x40ed15
mov byte [0x6f4dde], al
mov eax, 4
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x414510
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov ecx, 0x6f1ea4
push 0
call fcn.00471a1d
mov edi, eax
mov esi, 1
test edi, edi
je 0x414678
mov ebx, dword [ebp + 8]
mov eax, ebx
shr eax, 4
mov dword [ebp - 4], eax
inc eax
movzx eax, ax
mov dword [ebp + 8], eax
nop dword [eax]
push 0
push eax
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x414571
push ebx
mov edx, eax
mov ecx, edi
call fcn.0040dee0
add esp, 4
test eax, eax
jne 0x41458c
push esi
mov ecx, 0x6f1ea4
call fcn.00471a1d
mov edi, eax
inc esi
test edi, edi
je 0x414678
mov eax, dword [ebp + 8]
jmp 0x414550
test edi, edi
je 0x414678
mov eax, dword [ebp - 4]
inc eax
push 6
movzx eax, ax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x414678
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x414678
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x414678
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and ebx, 0xf
jbe 0x4145f9
cmp esi, ecx
jae 0x414678
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ebx, 1
jne 0x4145e3
cmp esi, ecx
jae 0x414678
cmp word [esi], 0
je 0x414678
movzx eax, word [esi]
lea ecx, [esi + 2]
push 0
push 0
push 0
push 0
push eax
push ecx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
js 0x414683
mov ebx, dword [ebp - 8]
mov edx, 1
mov ecx, dword [ebx]
sub edx, dword [ecx - 4]
mov ecx, dword [ecx - 8]
sub ecx, edi
or edx, ecx
jge 0x414641
push edi
mov ecx, ebx
call fcn.004147f0
movzx eax, word [esi]
push 0
push 0
push edi
push dword [ebx]
push eax
lea eax, [esi + 2]
push eax
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebx]
cmp edi, dword [eax - 8]
jg 0x414683
mov dword [eax - 0xc], edi
mov eax, dword [ebx]
mov byte [edi + eax], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.004011d0
int3
Function at 0x416b10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [0x6f4ee5], 0
je 0x416b26
mov eax, 0xa
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
test dl, dl
push eax
push 0
lea eax, [ecx + 0x10]
cmove eax, ecx
push eax
push 0x4167e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x416b51
mov eax, 4
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x416b60
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
test edx, edx
push ebx
push esi
push 0
push 0x80
push 3
push 0
push 3
push closesocket
lea ebx, [ebp - 8]
push ecx
cmovne ebx, edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x416b98
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebx], eax
add eax, dword [ebp + 8]
push 1
push eax
call fcn.004e217e
mov edi, eax
add esp, 8
test edi, edi
jne 0x416bc8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 4]
push eax
push dword [ebx]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x416bf3
mov eax, dword [ebp - 4]
cmp eax, dword [ebx]
jne 0x416bf3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.004e21e3
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x418150
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [0x6f4ee4], 0
je 0x418166
mov eax, 0xa
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
push eax
push 0
push ecx
push 0x417790
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x418189
mov eax, 4
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x418a70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
cmp eax, 0xffffffff
jne 0x418a8e
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x418a85
sub eax, edx
or ebx, 0xffffffff
test eax, eax
je 0x418aaf
movzx ecx, byte [esi]
lea esi, [esi + 1]
movzx edx, bl
xor edx, ecx
shr ebx, 8
xor ebx, dword [edx*4 + 0x6ee660]
sub eax, 1
jne 0x418a95
not ebx
pop esi
mov eax, ebx
pop ebx
pop ebp
ret
Function at 0x418d80
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x60aca0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x20c]
push 0x208
push eax
call fcn.004e72b5
add esp, 0x10
cmp byte [ebp - 0x20c], 0
je 0x418e96
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x418dc3
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea ebx, [ebp - 0x20c]
sub ecx, edx
lea eax, [ebp - 0x20c]
add ebx, ecx
push eax
mov esi, ebx
call edi
cmp eax, 0xffffffff
jne 0x418e5f
nop dword [eax]
test esi, esi
je 0x418e1c
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.004de810
mov esi, eax
add esp, 8
test esi, esi
je 0x418e0e
mov byte [esi], 0
lea eax, [ebp - 0x20c]
push eax
call edi
cmp eax, 0xffffffff
je 0x418df0
cmp esi, ebx
jae 0x418e5f
test esi, esi
je 0x418e29
mov byte [esi], 0x5c
jmp 0x418e38
cmp byte [ebp - 0x20c], 0
lea esi, [ebp - 0x20c]
je 0x418e3e
inc esi
cmp byte [esi], 0
jne 0x418e38
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x20c]
push eax
call edi
cmp eax, 0xffffffff
je 0x418e72
cmp esi, ebx
jb 0x418e20
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dcc5c
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0xc], 0
je 0x418e80
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dcc5c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 2
xor ecx, ebp
call fcn.004dcc5c
mov esp, ebp
pop ebp
ret
Function at 0x419140
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x60aca0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
test eax, eax
jne 0x419177
cmp dword [ebp + 0x1c], 1
mov eax, 0x6efb28
mov ecx, 0x6efa24
cmovne eax, ecx
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.004e72b5
add esp, 0x10
test ebx, ebx
je 0x4191bd
push 0x581760
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.004ede81
push ebx
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.004ede81
add esp, 0x18
test esi, esi
je 0x4191ec
push 0x581764
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.004ede81
push esi
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.004ede81
add esp, 0x18
push 0
push 0
push 3
push 0
push 3
push closesocket
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x419222
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dcc5c
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x10c], 0
push 0
test edi, edi
jne 0x419241
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10c], eax
jmp 0x419253
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 0x18]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10c]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004dcc5c
mov esp, ebp
pop ebp
ret
Function at 0x4192a0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x60aca0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
push 0x20
mov byte [ebp - 8], cl
mov dword [0x6eeb9c], ecx
lea ecx, [ebp - 0x2c]
push ecx
push dword [ebp + 0xc]
mov dword [ebp - 0xc], 0x2e
push eax
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
cmp byte [ebp - 0x2c], 0
jne 0x4192f6
fld qword [ebp + 0x10]
mov dword [0x6eeb9c], 0xf00e
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dcc5c
mov esp, ebp
pop ebp
ret
push 0
push 4
call fcn.004ef3a1
add esp, 8
test eax, eax
je 0x41934c
mov ecx, 0x5f7364
nop dword [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x419330
test dl, dl
je 0x41932c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x419330
add eax, 2
add ecx, 2
test dl, dl
jne 0x419310
xor eax, eax
jmp 0x419335
sbb eax, eax
or eax, 1
test eax, eax
je 0x41934c
push 5
lea eax, [ebp - 0xc]
push eax
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea eax, [ebp - 0x2c]
push 0x2c
push eax
call fcn.004de6e0
add esp, 8
test eax, eax
je 0x419363
mov cl, byte [ebp - 0xc]
mov byte [eax], cl
lea eax, [ebp - 0x2c]
push 0x2e
push eax
call fcn.004de6e0
add esp, 8
test eax, eax
je 0x41937a
mov cl, byte [ebp - 0xc]
mov byte [eax], cl
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004ee78c
add esp, 8
cmp byte [ebp + 0x20], 0
fstp qword [ebp - 0xc]
je 0x4193ce
lea ecx, [ebp - 0x2c]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4193a0
sub ecx, edx
lea eax, [ebp - 0x2c]
add eax, ecx
cmp dword [ebp - 0x30], eax
je 0x4193ce
fld qword [ebp + 0x10]
mov dword [0x6eeb9c], 0xf00f
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dcc5c
mov esp, ebp
pop ebp
ret
movsd xmm1, qword [ebp + 0x10]
maxsd xmm1, qword [ebp - 0xc]
movsd xmm0, qword [ebp + 0x18]
mov ecx, dword [ebp - 4]
xor ecx, ebp
minsd xmm0, xmm1
movsd qword [ebp - 0xc], xmm0
fld qword [ebp - 0xc]
call fcn.004dcc5c
mov esp, ebp
pop ebp
ret