joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4089d0
Capabilities:
Delete file

Disassembly:
sub esp, 0x338
mov eax, dword [0x44bcd0]
xor eax, esp
mov dword [esp + 0x334], eax
push ebp
mov ebp, dword [esp + 0x340]
lea edx, [esp + 0x234]
push esi
mov eax, ebp
sub edx, ebp
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4089f8
lea eax, [esp + 0x238]
dec eax
lea ebx, [ebx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x408a10
mov ecx, dword [str..]
mov dl, byte [0x43dc28]
mov dword [eax], ecx
mov byte [eax + 4], dl
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x23c]
push ecx
call fcn.00421431
mov esi, eax
add esp, 8
mov dword [esp + 8], esi
cmp esi, 0xffffffff
je 0x408b84
lea edx, [esp + 0xc]
push edx
push esi
call fcn.00421561
add esp, 8
test eax, eax
jne 0x408b7b
push edi
lea ecx, [esp + 0x34]
mov eax, 0x43dbe0
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x408a90
test dl, dl
je 0x408a8c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x408a90
add eax, 2
add ecx, 2
test dl, dl
jne 0x408a70
xor eax, eax
jmp 0x408a95
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x408b64
lea ecx, [esp + 0x34]
mov eax, 0x43dc20
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x408ac6
test dl, dl
je 0x408ac2
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x408ac6
add eax, 2
add ecx, 2
test dl, dl
jne 0x408aa6
xor eax, eax
jmp 0x408acb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x408b64
lea edx, [esp + 0x138]
mov eax, ebp
sub edx, ebp
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x408ae0
lea edi, [esp + 0x138]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x408af2
mov ax, word [0x43d584]
mov word [edi], ax
lea eax, [esp + 0x34]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408b10
lea edi, [esp + 0x138]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408b21
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
test byte [esp + 0x10], 0x10
rep movsb byte es:[edi], byte [esi]
je 0x408b52
lea ecx, [esp + 0x138]
push ecx
call fcn.004089d0
add esp, 4
jmp 0x408b60
lea edx, [esp + 0x138]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
push esi
call fcn.00421561
add esp, 8
test eax, eax
je 0x408a64
pop edi
push esi
call fcn.004213a3
add esp, 4
push ebp
call fcn.00421373
mov ecx, dword [esp + 0x340]
add esp, 4
pop esi
pop ebp
xor ecx, esp
call fcn.0041eff4
add esp, 0x338
ret

Function at 0x408bb0
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call fcn.004089a0
add esp, 4
test eax, eax
je 0x408bc9
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
ret
Function at 0x408db0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0x43d570
push eax
xor esi, esi
call fcn.0042065d
mov ecx, dword [esp + 0x20]
push 0x43d590
push ecx
mov ebp, eax
call fcn.0042065d
add esp, 0x10
mov edi, eax
mov dword [esp + 0xc], edi
test ebp, ebp
je 0x408e61
test edi, edi
je 0x408e58
push ebx
push 0x7d000
call fcn.00410bca
push ebp
mov ebx, eax
call fcn.00420274
add esp, 8
test eax, eax
jne 0x408e49
mov edi, dword [esp + 0x20]
push ebp
push 0x7d000
push 1
push ebx
call fcn.0042057c
lea edx, [eax + esi]
add esp, 0x10
cmp edx, edi
jbe 0x408e21
mov eax, edi
sub eax, esi
mov ecx, dword [esp + 0x10]
push ecx
push eax
push 1
push ebx
call fcn.004201f2
add esi, eax
add esp, 0x10
cmp esi, edi
jae 0x408e45
push ebp
call fcn.00420274
add esp, 4
test eax, eax
je 0x408e05
mov edi, dword [esp + 0x10]
push ebx
call fcn.00410bbf
add esp, 4
mov esi, 1
pop ebx
push ebp
call fcn.00420014
add esp, 4
test edi, edi
je 0x408e6e
push edi
call fcn.00420014
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret

Function at 0x408e80
Capabilities:
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
movzx eax, al
shr eax, 4
and eax, 1
ret

Function at 0x408ee0
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [esp + 8]
not ecx
and eax, ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop esi
ret

Function at 0x408ff0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x43b3d1
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
mov eax, dword [0x44bcd0]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0xc], ebx
call fcn.00411c35
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x409039
push 0x80004005
call fcn.004011d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov esi, dword [esp + 0x34]
add eax, 0x10
mov dword [esi], eax
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x10], 1
call fcn.004010b0
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 1
call fcn.00401080
push eax
lea ecx, [esp + 0x14]
call fcn.00401070
push eax
lea ecx, [esp + 0x18]
call fcn.00401060
push eax
lea ecx, [esp + 0x1c]
call fcn.00401050
push eax
lea ecx, [esp + 0x20]
call fcn.00401040
push eax
lea ecx, [esp + 0x24]
call fcn.00401030
push eax
push str._04d__02d__02d__02d:_02d:_02d
push esi
call fcn.00401f40
add esp, 0x20
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], bl
call fcn.00401020
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x24
ret
Function at 0x4090e0
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x43b3f8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x44bcd0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
call fcn.00411c35
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40911f
push 0x80004005
call fcn.004011d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0xc], esi
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push edx
mov dword [esp + 0x30], 0
mov edi, 1
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
jne 0x409181
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x10]
push str.GetDiskFreeSpaceEx_failed_with_error_code__d
push eax
call fcn.00401f40
mov esi, dword [esp + 0x18]
add esp, 0xc
push edi
push esi
mov ecx, 0x44d3c9
call fcn.0040bc50
jmp 0x409199
mov ecx, dword [esp + 0x30]
cmp ecx, dword [esp + 0x14]
jb 0x409199
ja 0x409197
mov edx, dword [esp + 0x2c]
cmp edx, dword [esp + 0x10]
jbe 0x409199
xor edi, edi
lea eax, [esi - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4091bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret

Function at 0x409450
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x40
call dword [sym.imp.KERNEL32.dll_GetVersion]
push 0x43d840
lea ecx, [esp + 4]
call fcn.00402d40
mov eax, dword [esp]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov dword [esp + 0x10], eax
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0x3c
mov dword [esp + 0xc], 0x40
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 5
mov dword [esp + 0x28], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x4094d1
cmp dword [esp + 0x4c], 0
je 0x4094d1
mov ecx, dword [esp + 0x3c]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4094f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esp, 0x40
ret
Function at 0x40bb30
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x310
mov eax, dword [0x44bcd0]
xor eax, esp
mov dword [esp + 0x30c], eax
push ebx
mov ebx, dword [esp + 0x318]
push edi
push pe_nt_image_headers32
lea eax, [esp + 0x218]
push 0
push eax
mov dword [esp + 0x14], 0
call fcn.00420a40
push 0x208
lea ecx, [esp + 0x1c]
push 0
push ecx
call fcn.00420a40
add esp, 0x18
push pe_nt_image_headers32
lea edx, [esp + 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov al, byte [esp + 0x214]
lea edi, [esp + 0xc]
mov byte [esp + 0xc], al
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40bba0
push esi
mov ecx, 9
mov esi, str.:InetPub_ftprootTiprayLdTermlog
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x10]
push ecx
call fcn.00421bdc
add esp, 4
lea edi, [esp + 0x10]
dec edi
pop esi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40bbc8
mov dx, word [0x43d584]
lea eax, [esp + 0xc]
mov word [edi], dx
dec eax
nop
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40bbe0
mov ecx, dword [str.LdCab.log]
mov edx, dword [0x43e024]
mov dword [eax], ecx
mov cx, word [0x43e028]
mov dword [eax + 4], edx
lea edx, [esp + 0xc]
push edx
mov word [eax + 8], cx
call fcn.00408bd0
add esp, 4
cmp eax, 0xfa000
jbe 0x40bc23
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0xc]
push ecx
mov ecx, ebx
call fcn.00402d40
mov ecx, dword [esp + 0x314]
pop edi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0041eff4
add esp, 0x310
ret 4

Function at 0x40c4c0
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, ecx
push 0x40
lea eax, [esi + 4]
push 0
push eax
mov dword [esi], vtable.CMD5Checksum.0
call fcn.00420a40
add esp, 0xc
mov dword [esi + 0x48], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x4c], 0x67452301
mov dword [esi + 0x50], 0xefcdab89
mov dword [esi + 0x54], 0x98badcfe
mov dword [esi + 0x58], 0x10325476
mov eax, esi
pop esi
ret

Function at 0x40ca21
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.00411285
mov eax, dword [esi + 0x98]
push 0x640000
push 0
push 0x401
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 4]
push ecx
push 0
push 0
push 0x40c9a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
mov dword [esi + 0x74], eax
pop esi
pop ecx
ret
Function at 0x40cb10
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43b9eb
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x44bcd0]
xor eax, esp
mov dword [esp + 0x108], eax
push esi
push edi
mov eax, dword [0x44bcd0]
xor eax, esp
push eax
lea eax, [esp + 0x118]
mov dword fs:[0], eax
call fcn.00411c35
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40cb63
push 0x80004005
call fcn.004011d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0xc], esi
push 0x104
lea ecx, [esp + 0x14]
push 0
push ecx
mov dword [esp + 0x12c], 0
call fcn.00420a40
add esp, 0xc
push 0x104
lea edx, [esp + 0x14]
push edx
mov edi, 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov eax, dword [esp + 0x12c]
mov ecx, dword [esp + 0x128]
push eax
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.004090e0
add esp, 0xc
test eax, eax
jne 0x40cbec
lea eax, [esp + 0xc]
push str.The_disk_free_space_is_to_small_
push eax
xor edi, edi
call fcn.00401f40
mov esi, dword [esp + 0x14]
add esp, 8
push edi
push esi
mov ecx, 0x44d3c9
call fcn.0040bc50
lea eax, [esi - 0x10]
mov dword [esp + 0x120], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cc13
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x118]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0041eff4
add esp, 0x118
ret
Function at 0x40f040
Capabilities:
Access peb ldr_data
Create directory
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x43bbd0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x44bcd0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x30]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
push esi
call ebx
mov eax, dword [esp + 0x2c]
push eax
lea ecx, [esp + 0x18]
call fcn.00402d40
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x2c], 0
call fcn.00409320
add esp, 8
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x24], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f0c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 1
push 0x43d584
lea ecx, [esp + 0x18]
call fcn.00408f40
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f0d7
mov ecx, dword [esp + 0x10]
sub eax, edx
lea esi, [eax + 1]
mov eax, dword [ecx - 0xc]
cmp esi, eax
jge 0x40f142
mov edi, edi
test esi, esi
jl 0x40f179
cmp esi, eax
jg 0x40f179
cmp byte [esi + ecx], 0x5c
jne 0x40f13a
push esi
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x18]
call fcn.00401d50
mov edi, dword [esp + 0x18]
push 0
push edi
call ebx
lea eax, [edi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f136
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 0xc]
inc esi
cmp esi, eax
jl 0x40f0f0
lea eax, [ecx - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f166
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret
push 0x80070057
call fcn.004011d0
int3
Function at 0x410030
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x43b23b
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
push esi
mov eax, dword [0x44bcd0]
xor eax, esp
push eax
lea eax, [esp + 0xd8]
mov dword fs:[0], eax
push 0
lea ecx, [esp + 0x10]
call fcn.0040c8d0
mov edx, dword [esp + 0xe8]
lea eax, [esp + 0xc]
mov dword [esp + 0xe0], 0
mov dword [0x44d3c0], eax
test edx, edx
jne 0x410088
xor eax, eax
jmp 0x410099
mov eax, edx
lea esi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410090
sub eax, esi
push eax
push edx
mov ecx, 0x44d3b4
call fcn.00401960
mov edx, dword [esp + 0xec]
test edx, edx
jne 0x4100b4
xor eax, eax
jmp 0x4100c9
mov eax, edx
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4100c0
sub eax, esi
push eax
push edx
mov ecx, 0x44d3b8
call fcn.00401960
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0x40ff60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea ecx, [esp + 0xc]
call fcn.00411584
lea ecx, [esp + 0xc]
mov dword [esp + 0xe0], 0xffffffff
call fcn.00401170
xor eax, eax
mov ecx, dword [esp + 0xd8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xdc
ret
Function at 0x410450
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x8008
call fcn.00420a10
mov eax, dword [0x44bcd0]
xor eax, esp
mov dword [esp + 0x8004], eax
push ebx
mov ebx, dword [esp + 0x8014]
push esi
mov esi, dword [esp + 0x8014]
mov dword [esp + 8], 0
call fcn.00411c35
test eax, eax
jne 0x410493
push 0x80004005
call fcn.004011d0
mov edx, dword [eax]
push ebp
mov ecx, eax
mov eax, dword [edx + 0xc]
push edi
call eax
mov ebp, eax
push 0x43d570
push esi
add ebp, 0x10
call fcn.00435a60
mov edi, eax
add esp, 8
test edi, edi
je 0x410535
push 0x43d590
push ebx
call fcn.0042065d
mov esi, eax
add esp, 8
test esi, esi
je 0x41052c
push esi
mov dword [esp + 0x14], 1
call fcn.00420274
add esp, 4
test eax, eax
jne 0x410523
push 0x8000
lea ecx, [esp + 0x18]
push ecx
push edi
call fcn.00435fd0
add esp, 0xc
test eax, eax
jle 0x410523
push esi
push eax
lea edx, [esp + 0x1c]
push 1
push edx
call fcn.004201f2
add esp, 0x10
test eax, eax
je 0x41051b
push esi
call fcn.00420274
add esp, 4
test eax, eax
je 0x4104e0
jmp 0x410523
mov dword [esp + 0x10], 0
push esi
call fcn.00420014
add esp, 4
push edi
call fcn.00436440
add esp, 4
lea eax, [ebp - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
pop edi
pop ebp
test edx, edx
jg 0x410553
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x800c]
mov eax, dword [esp + 8]
pop esi
pop ebx
xor ecx, esp
call fcn.0041eff4
add esp, 0x8008
ret
Function at 0x4107e0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
xor edx, edx
push edi
mov dword [esi], edx
mov dword [esi + 4], edx
xor eax, eax
mov dword [esi + eax*4 + 8], eax
inc eax
cmp eax, 0x100
jl 0x4107f2
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x18], edx
xor edi, edi
lea ecx, [esi + 0x10]
mov dword [esp + 0x10], 0x40
movzx edx, byte [edx + ebp]
mov eax, dword [ecx - 8]
add edx, eax
add edi, edx
and edi, 0x800000ff
jns 0x410832
dec edi
or edi, 0xffffff00
inc edi
mov edx, dword [esi + edi*4 + 8]
mov dword [ecx - 8], edx
mov dword [esi + edi*4 + 8], eax
mov eax, dword [esp + 0x18]
inc eax
cdq
idiv ebx
mov eax, dword [ecx - 4]
mov dword [esp + 0x18], edx
movzx edx, byte [edx + ebp]
add edx, eax
add edi, edx
and edi, 0x800000ff
jns 0x410864
dec edi
or edi, 0xffffff00
inc edi
mov edx, dword [esi + edi*4 + 8]
mov dword [ecx - 4], edx
mov dword [esi + edi*4 + 8], eax
mov eax, dword [esp + 0x18]
inc eax
cdq
idiv ebx
mov eax, dword [ecx]
mov dword [esp + 0x18], edx
movzx edx, byte [edx + ebp]
add edx, eax
add edi, edx
and edi, 0x800000ff
jns 0x410895
dec edi
or edi, 0xffffff00
inc edi
mov edx, dword [esi + edi*4 + 8]
mov dword [ecx], edx
mov dword [esi + edi*4 + 8], eax
mov eax, dword [esp + 0x18]
inc eax
cdq
idiv ebx
mov eax, dword [ecx + 4]
mov dword [esp + 0x18], edx
movzx edx, byte [edx + ebp]
add edx, eax
add edi, edx
and edi, 0x800000ff
jns 0x4108c6
dec edi
or edi, 0xffffff00
inc edi
mov edx, dword [esi + edi*4 + 8]
mov dword [ecx + 4], edx
mov dword [esi + edi*4 + 8], eax
mov eax, dword [esp + 0x18]
inc eax
cdq
idiv ebx
add ecx, 0x10
sub dword [esp + 0x10], 1
mov dword [esp + 0x18], edx
jne 0x410817
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x410980
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x43bd0b
mov eax, dword fs:[0]
push eax
mov eax, 0x8010
call fcn.00420a10
mov eax, dword [0x44bcd0]
xor eax, esp
mov dword [esp + 0x800c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44bcd0]
xor eax, esp
push eax
lea eax, [esp + 0x8024]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x8038]
mov esi, dword [esp + 0x8034]
mov ebp, dword [esp + 0x803c]
xor edi, edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], edi
call fcn.00411c35
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4109f8
push 0x80004005
call fcn.004011d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push 0x43d570
push esi
mov dword [esp + 0x8034], edi
call fcn.0042065d
mov edi, eax
add esp, 8
test edi, edi
jne 0x410a5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
lea ecx, [esp + 0x1c]
push str.RC4File_fopen_srcfile__s__Fail__d_
push ecx
call fcn.00401f40
mov edx, dword [esp + 0x24]
add esp, 0x10
push edi
push edx
mov ecx, 0x44d3c9
call fcn.0040bc50
mov dword [esp + 0x18], 1
jmp 0x410b1d
push 0x43d590
push ebx
call fcn.0042065d
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x410aa6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
push str.RC4File_fopen_destfile__s__Fail__d_
push ecx
call fcn.00401f40
mov edx, dword [esp + 0x24]
add esp, 0x10
push ebx
push edx
mov ecx, 0x44d3c9
call fcn.0040bc50
mov dword [esp + 0x18], 2
jmp 0x410b07
push edi
call fcn.00420274
add esp, 4
test eax, eax
jne 0x410b07
push edi
push 0x8000
lea eax, [esp + 0x28]
push 1
push eax
call fcn.0042057c
mov ecx, dword [esp + 0x8050]
push ecx
mov esi, eax
push ebp
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00410900
push ebx
push esi
lea eax, [esp + 0x48]
push 1
push eax
call fcn.004201f2
add esp, 0x30
cmp esi, eax
jne 0x410aff
push edi
call fcn.00420274
add esp, 4
test eax, eax
je 0x410ab3
jmp 0x410b07
mov dword [esp + 0x18], 3
push edi
call fcn.00420014
add esp, 4
test ebx, ebx
je 0x410b1d
push ebx
call fcn.00420014
add esp, 4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x802c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410b48
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x8024]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x800c]
xor ecx, esp
call fcn.0041eff4
add esp, 0x801c
ret
Function at 0x4117bc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x4117e0
cmp dword [edi + 0x54], 0
jne 0x4117e0
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0041b010
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0041177d
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x412b75
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x44bcd0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x11c], eax
mov esi, ecx
lea eax, [ebp - 0x120]
jne 0x412c13
push 0x43efc4
push 4
push eax
call fcn.00422c0d
push eax
call fcn.004010e0
add esp, 0x10
push ebx
push edi
call fcn.0042259e
mov edi, dword [eax]
call fcn.0042259e
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00420c40
add esp, 0x18
mov dword [ebp - 0x11c], eax
call fcn.0042259e
cmp dword [eax], ebx
je 0x412c2a
call fcn.0042259e
push dword [eax]
call fcn.00411b47
pop ecx
jmp 0x412c31
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x412bbb
jmp 0x412cb8
call fcn.0042259e
mov dword [eax], edi
cmp dword [ebp - 0x11c], 0xffffffff
je 0x412cb4
cmp dword [ebp - 0x11c], esi
jae 0x412cb4
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x15c]
push ebx
push eax
mov dword [ebp - 0x160], 0x40
call fcn.00420a40
add esp, 0xc
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x412ca3
push str.FindActCtxSectionStringA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x412ca3
lea ecx, [ebp - 0x160]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x412ca3
push ebx
push ebx
push esi
jmp 0x412cac
push ebx
push ebx
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x412cb6
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041eff4
leave
ret