joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408b60
Capabilities:
Create process memory minidump
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, eax
sub edi, ebx
sar edi, 1
test ebx, ebx
jne 0x408b80
test edi, edi
je 0x408b80
push 0x80070057
call fcn.004083f0
mov eax, dword [section..data]
mov edx, dword [eax]
push 2
push edi
mov ecx, section..data
call edx
test eax, eax
jne 0x408b9a
call fcn.00409b80
lea esi, [eax + 0x10]
test edi, edi
js 0x408b76
cmp edi, dword [esi - 8]
jg 0x408b76
lea eax, [edi + edi]
push eax
push ebx
push eax
xor ecx, ecx
mov dword [esi - 0xc], edi
push esi
mov word [eax + esi], cx
call fcn.0040ba34
add esp, 0x10
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x408c44
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
push 0
push 0
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xc], edx
mov edx, dword [ebp + 0x18]
push edx
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
push edi
push eax
push ecx
mov dword [ebp - 4], 1
call dword [sym.imp.dbghelp.dll_MiniDumpWriteDump]
test eax, eax
je 0x408c44
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408c3c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408c6e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x408c80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x408cac
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x42b4ec
push esi
mov dword [ebp - 4], 0
call edi
mov eax, ebx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408cd0
sub eax, edx
push 0
sar eax, 1
lea edx, [ebp - 4]
push edx
add eax, eax
push eax
push ebx
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x409570
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4237e8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x42e0b0]
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 0x80000000
push str.dump.tar.gz
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4095d0
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
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
call fcn.0040b2b3
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
xor eax, eax
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x4365c0]
mov edx, dword [0x4365bc]
push edi
push ecx
mov ecx, dword [0x4365c4]
push edx
mov edx, esi
call fcn.00408dd0
add esp, 0xc
push esi
mov bl, al
call fcn.0040b9d8
add esp, 4
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 0x409c50
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423b88
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x42e0b0]
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
xor esi, esi
mov dword [ebp - 0x60], str.._c
mov dword [ebp - 0x5c], str._c:_
xor ebx, ebx
jmp 0x409c92
xor esi, esi
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [ebp - 0x58], eax
movsx eax, byte [ebp + 8]
push eax
mov dword [ebp - 4], esi
mov eax, dword [ebp + ebx*4 - 0x60]
push eax
lea edi, [ebp - 0x58]
call fcn.004043d0
add esp, 8
push 0x20
lea ecx, [ebp - 0x50]
push ecx
lea edx, [ebp - 0x64]
push edx
push esi
lea eax, [ebp - 0x54]
push eax
push esi
push esi
mov dword [ebp - 0x54], esi
mov esi, dword [ebp - 0x58]
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
add esi, 0xfffffff0
test eax, eax
jne 0x409d28
mov dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409d04
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
inc ebx
cmp ebx, 2
jb 0x409c90
xor eax, eax
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.0040b2c9
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x54]
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x409d4b
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, edi
jmp 0x409d0c
Function at 0x40a110
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423b29
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x42e0b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x34], esi
mov eax, dword [0x42b710]
mov edx, dword [section..data]
mov edi, ecx
mov ecx, dword [0x42b714]
mov dword [ebp - 0x18], eax
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x14], ecx
mov ecx, section..data
mov dword [ebp - 0x38], edi
mov word [ebp - 0x18], bx
call eax
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], esi
push 1
mov dword [ebp - 0x34], 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x28]
push edx
mov dword [ebp - 0x2c], eax
push esi
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x40a1e8
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
push esi
push 0xf4240
push ecx
push edx
call fcn.0040e5e0
mov ecx, dword [ebp - 0x20]
push esi
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x1c]
push 0xf4240
push eax
push ecx
call fcn.0040e5e0
mov edx, dword [ebp - 0x30]
push edx
push eax
movzx eax, bx
push eax
push str._c:_uMB__uMB
call fcn.004043d0
add esp, 0x10
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040b2c9
mov esp, ebp
pop ebp
ret
Function at 0x40a210
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423c1d
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x42e0b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
push 0x206
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x216]
xor eax, eax
push edi
mov dword [ebp - 0x220], edi
push ecx
mov dword [ebp - 0x224], esi
mov word [ebp - 0x218], ax
call fcn.0040daf0
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
push edi
push edi
push 0x25
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
movzx ebx, word [ebp - 0x218]
push 0x104
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movzx edi, word [ebp - 0x218]
mov ecx, esi
call fcn.0040a110
mov dword [ebp - 4], 0
mov dword [ebp - 0x220], 1
cmp di, bx
je 0x40a312
push 1
push 0x42b734
mov ebx, esi
call fcn.00403e30
mov ebx, edi
lea ecx, [ebp - 0x21c]
call fcn.0040a110
mov dword [ebp - 4], 1
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ebx, esi
call fcn.00403e30
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a312
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040b2c9
mov esp, ebp
pop ebp
ret
Function at 0x40a330
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423ae9
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x42e0b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x40
lea eax, [ebp - 0x50]
mov dword [ebp - 4], 0
mov edi, ecx
push 0
push eax
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x54], 0
call fcn.0040daf0
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, section..data
mov dword [ebp - 0x50], 0x40
call eax
add eax, 0x10
mov dword [edi], eax
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 0
push ecx
mov dword [ebp - 0x54], 1
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x40a463
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
push 0
push 0xf4240
push edx
push eax
call fcn.0040e5e0
mov ecx, dword [ebp - 0x1c]
push edx
mov edx, dword [ebp - 0x20]
push eax
push 0
push 0xf4240
push ecx
push edx
call fcn.0040e5e0
mov ecx, dword [ebp - 0x28]
push edx
push eax
mov eax, dword [ebp - 0x24]
push 0
push 0xf4240
push eax
push ecx
call fcn.0040e5e0
push edx
mov edx, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x30]
push 0
push 0xf4240
push edx
push eax
call fcn.0040e5e0
mov ecx, dword [ebp - 0x34]
push edx
mov edx, dword [ebp - 0x38]
push eax
push 0
push 0xf4240
push ecx
push edx
call fcn.0040e5e0
mov ecx, dword [ebp - 0x40]
push edx
push eax
mov eax, dword [ebp - 0x3c]
push 0
push 0xf4240
push eax
push ecx
call fcn.0040e5e0
push edx
mov edx, dword [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x48]
push 0
push 0xf4240
push edx
push eax
call fcn.0040e5e0
mov ecx, dword [ebp - 0x4c]
push edx
push eax
push ecx
push 0x42b738
call fcn.004043d0
add esp, 0x40
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040b2c9
mov esp, ebp
pop ebp
ret
Function at 0x40b2c9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e0b0]
jne 0x40b2d3
repz ret
jmp fcn.0040dbb6

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x40d2a3
call fcn.0040eba0
mov dword [eax], esi
call fcn.0040eb8d
push 0x16
pop esi
mov dword [eax], esi
call fcn.0040eb3b
mov eax, esi
jmp 0x40d2f8
test dword [ebp + 0xc], 0xfffffff9
jne 0x40d289
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40d2d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040ebb3
pop ecx
call fcn.0040eb8d
mov eax, dword [eax]
jmp 0x40d2f8
test al, 0x10
jne 0x40d2f6
test al, 1
je 0x40d2f6
test byte [ebp + 0xc], 2
je 0x40d2f6
call fcn.0040eba0
mov dword [eax], 5
call fcn.0040eb8d
mov dword [eax], 0xd
jmp 0x40d2c7
xor eax, eax
pop esi
pop ebp
ret
Function at 0x41a905
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42e0b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0041206f
and dword [ebp - 0x14], 0
cmp dword [0x43024c], 0
mov dword [ebp - 0x18], eax
jne 0x41a9b8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41aa60
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4273e0
push ebx
call edi
test eax, eax
je 0x41aa60
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x43024c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x430250], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x430254], eax
call edi
push eax
call esi
mov dword [0x43025c], eax
test eax, eax
je 0x41a9b8
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x430258], eax
mov eax, dword [0x430258]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41aa11
cmp dword [0x43025c], ecx
je 0x41aa11
push eax
call esi
push dword [0x43025c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41aa11
test ebx, ebx
je 0x41aa11
call edi
test eax, eax
je 0x41aa08
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41aa08
test byte [ebp - 8], 1
jne 0x41aa11
or dword [ebp + 0x10], 0x200000
jmp 0x41aa44
mov eax, dword [0x430250]
cmp eax, dword [ebp - 0x18]
je 0x41aa44
push eax
call esi
test eax, eax
je 0x41aa44
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41aa44
mov eax, dword [0x430254]
cmp eax, dword [ebp - 0x18]
je 0x41aa44
push eax
call esi
test eax, eax
je 0x41aa44
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x43024c]
call esi
test eax, eax
je 0x41aa60
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41aa62
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b2c9
leave
ret
Function at 0x41d5d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [esi + 0x2c]
mov dword [ebp - 0xc], edi
jmp 0x41d5e3
mov edi, dword [ebp - 0xc]
mov ebx, dword [esi + 0x3c]
sub ebx, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub ebx, eax
lea edx, [edi + ecx - 0x106]
mov dword [ebp - 4], ebx
cmp eax, edx
jb 0x41d661
mov eax, dword [esi + 0x38]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call fcn.0040e650
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x44]
sub dword [esi + 0x70], edi
sub dword [esi + 0x6c], edi
add esp, 0xc
sub dword [esi + 0x5c], edi
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x41d631
sub eax, edi
jmp 0x41d633
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x41d622
mov ecx, dword [esi + 0x40]
mov edx, edi
lea ecx, [ecx + edi*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x41d652
sub eax, edi
jmp 0x41d654
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x41d643
add ebx, edi
mov dword [ebp - 4], ebx
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x41d78c
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [ebp - 4]
mov ebx, ecx
mov dword [ebp - 8], eax
cmp ebx, edx
jbe 0x41d687
mov ebx, edx
test ebx, ebx
je 0x41d6d7
mov edx, dword [edi + 0x1c]
sub ecx, ebx
mov dword [edi + 4], ecx
mov ecx, dword [edx + 0x18]
cmp ecx, 1
jne 0x41d6aa
mov eax, dword [edi]
mov ecx, dword [edi + 0x30]
push ebx
push eax
push ecx
call fcn.0041f110
jmp 0x41d6bc
cmp ecx, 2
jne 0x41d6c5
mov edx, dword [edi]
mov eax, dword [edi + 0x30]
push ebx
push edx
push eax
call fcn.0041f660
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 8]
add esp, 0xc
mov ecx, dword [edi]
push ebx
push ecx
push eax
call fcn.0040e650
add dword [edi], ebx
add esp, 0xc
add dword [edi + 8], ebx
add dword [esi + 0x74], ebx
mov ebx, dword [esi + 0x74]
cmp ebx, 3
jb 0x41d701
mov eax, dword [esi + 0x38]
mov edx, dword [esi + 0x6c]
mov ecx, dword [esi + 0x58]
add edx, eax
movzx eax, byte [edx]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp ebx, 0x106
jae 0x41d715
mov edx, dword [esi]
cmp dword [edx + 4], 0
jne 0x41d5e0
mov eax, dword [esi + 0x16c0]
mov ecx, dword [esi + 0x3c]
cmp eax, ecx
jae 0x41d78c
mov edi, dword [esi + 0x6c]
add edi, ebx
cmp eax, edi
jae 0x41d75b
sub ecx, edi
mov ebx, ecx
cmp ebx, 0x102
jbe 0x41d73c
mov ebx, 0x102
mov eax, dword [esi + 0x38]
push ebx
add eax, edi
push 0
push eax
call fcn.0040daf0
add esp, 0xc
add ebx, edi
pop edi
mov dword [esi + 0x16c0], ebx
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [edi + 0x102]
cmp eax, edx
jae 0x41d78c
sub edi, eax
add edi, 0x102
sub ecx, eax
cmp edi, ecx
jbe 0x41d775
mov edi, ecx
mov ecx, dword [esi + 0x38]
push edi
add ecx, eax
push 0
push ecx
call fcn.0040daf0
add esp, 0xc
add dword [esi + 0x16c0], edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41f67c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x24
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov eax, dword [edx + 0x78]
mov ebx, dword [edx + 0x8c]
cmp eax, ebx
mov eax, dword [edx + 0x34]
mov ebx, dword [edx + 0x7c]
jl 0x41f6a1
shr ebx, 2
dec ebx
shl ebx, 0x10
or ebx, eax
mov dword [esp], ebx
mov eax, dword [edx + 0x90]
mov ebx, dword [edx + 0x74]
cmp ebx, eax
jl 0x41f6b9
mov ebx, eax
mov dword [esp + 0x18], ebx
mov esi, dword [edx + 0x38]
mov dword [esp + 4], esi
mov ebp, dword [edx + 0x6c]
lea edi, [ebp + esi]
mov dword [esp + 0x20], edi
mov eax, edi
neg eax
and eax, 3
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x2c]
sub eax, 0x106
sub ebp, eax
jg 0x41f6e8
xor ebp, ebp
mov eax, dword [edx + 0x78]
mov dword [esp + 0x1c], eax
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [edi]
mov dword [esp + 0x10], ebx
movzx ebx, word [eax + edi - 1]
mov dword [esp + 0xc], ebx
mov edi, dword [edx + 0x40]
mov edx, dword [esp]
jmp 0x41f72a
and ecx, edx
movzx ecx, word [edi + ecx*2]
cmp ecx, ebp
jbe 0x41f7fe
sub edx, 0x10000
js 0x41f7fe
movzx eax, word [ecx + esi - 1]
cmp eax, ebx
jne 0x41f710
mov eax, dword [esp + 4]
movzx eax, word [ecx + eax]
cmp eax, dword [esp + 0x10]
jne 0x41f710
mov dword [esp], edx
mov esi, dword [esp + 4]
mov edi, dword [esp + 0x20]
add esi, ecx
mov eax, dword [esp + 0x14]
mov edx, 0xfffffef8
lea edi, [eax + edi + 0x108]
lea esi, [eax + esi + 0x108]
mov eax, dword [edx + esi]
xor eax, dword [edx + edi]
jne 0x41f781
mov eax, dword [edx + esi + 4]
xor eax, dword [edx + edi + 4]
jne 0x41f77e
add edx, 8
jne 0x41f765
jmp 0x41f7ef
add edx, 4
test eax, 0xffff
jne 0x41f78e
add edx, 2
shr eax, 0x10
sub al, 1
adc edx, 0
lea eax, [edx + edi]
mov edi, dword [esp + 0x20]
sub eax, edi
cmp eax, 0x102
jge 0x41f7ef
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
cmp eax, ebx
jg 0x41f7c2
mov esi, dword [esp + 8]
mov edi, dword [edx + 0x40]
mov ebx, dword [esp + 0xc]
mov edx, dword [esp]
jmp 0x41f710
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov dword [edx + 0x70], ecx
cmp eax, ebx
jge 0x41f7fe
mov esi, dword [esp + 4]
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [eax + edi - 1]
mov edi, dword [edx + 0x40]
mov dword [esp + 0xc], ebx
mov edx, dword [esp]
jmp 0x41f710
mov edx, dword [esp + 0x38]
mov dword [esp + 0x1c], 0x102
mov dword [edx + 0x70], ecx
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
mov eax, dword [edx + 0x74]
cmp ebx, eax
jg 0x41f80f
mov eax, ebx
add esp, 0x24
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4030d8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4af020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403170
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403150
xor eax, eax
push ebp
push 0x403149
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x40318c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403150
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4af020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4af020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403e7c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4b204c], 0
je 0x403edd
cmp word [0x4b2220], 0xd7b2
jne 0x403ea5
cmp dword [0x4b2228], 0
jbe 0x403ea5
mov eax, 0x4b221c
call dword [0x4b2238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4af06c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403f04
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4af030], 0
jne 0x403ef9
push 0
push 0x4af064
push 0x4af06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406118
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 0x40617e
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.00404268
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402c9c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406168
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406185
lea eax, [ebp - 0x10]
call fcn.00403ff8
ret

Function at 0x40b9b4
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 0x40b9ed
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004040e8
jmp 0x40b9f6
mov eax, ebx
mov edx, esi
call fcn.0040404c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40ba00
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 0x40ba21
mov al, byte [esp]
jmp 0x40ba23
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c0a8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bf20
mov eax, dword [0x4b10f8]
cmp byte [eax], 0
je 0x40c124
mov eax, dword [0x4b0e08]
call fcn.00402a60
call fcn.004028d0
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.00408be4
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 0x40c16c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c15a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4b0da0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4b2668]
call fcn.0040562c
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