joyce8/EMBER2024-capa huggingface dataset:
Function at 0x489570
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x4d01d4]
xor eax, ebp
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 0
jne 0x48958e
jmp 0x489640
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x489636
mov dword [ebp - 0x240], 0x22c
lea eax, [ebp - 0x240]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_Process32FirstW
mov dword [ebp - 8], eax
jmp 0x4895d6
lea edx, [ebp - 0x240]
push edx
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.dll_Process32NextW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x489636
lea ecx, [ebp - 0x21c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00471b5e
add esp, 8
test eax, eax
je 0x4895f5
jmp 0x4895c3
mov eax, dword [ebp - 0x238]
push eax
push 0
push 0x411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0
je 0x489634
push 0
mov ecx, dword [ebp - 0x244]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [ebp - 0x244]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4895c3
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00470f4c
mov esp, ebp
pop ebp
ret

Function at 0x489760
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
je 0x48979f
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
cmp eax, 1
jne 0x489799
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov al, 1
jmp 0x4897a1
xor al, al
jmp 0x4897a1
mov al, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x4898c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
jne 0x4898e4
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [ebp - 4]
add eax, 4
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004751c1
add esp, 0x18
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 8], 0
jne 0x489934
xor al, al
jmp 0x489936
mov al, 1
mov esp, ebp
pop ebp
ret 0x14
Function at 0x489e90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48f218
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x4d01d4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4c], 0
push 0x800
call fcn.00470850
add esp, 4
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x38], 0x400
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x38]
jbe 0x489f50
cmp dword [ebp - 0x10], 0
je 0x489f0e
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x40]
push edx
call fcn.00471daf
add esp, 4
mov eax, dword [ebp - 0x34]
add eax, 1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00470850
add esp, 4
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x34]
add ecx, 1
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x30]
call fcn.004033d0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x34], 0
jbe 0x489f85
lea ecx, [ebp - 0x30]
push ecx
mov eax, dword [ebp - 0x10]
call fcn.00403460
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x48]
push eax
call fcn.00471daf
add esp, 4
jmp 0x489f93
lea ecx, [ebp - 0x30]
push ecx
mov eax, 0x4a02dc
call fcn.00403460
lea edx, [ebp - 0x30]
push edx
mov esi, dword [ebp + 8]
call fcn.00403430
mov eax, dword [ebp - 0x4c]
or eax, 1
mov dword [ebp - 0x4c], eax
mov dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x30]
call fcn.0042db60
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00470f4c
mov esp, ebp
pop ebp
ret
Function at 0x48a180
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48f275
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x4d01d4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4c], 0
push 0x800
call fcn.00470850
add esp, 4
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x38], 0x400
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x38]
jbe 0x48a240
cmp dword [ebp - 0x10], 0
je 0x48a1fe
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x40]
push edx
call fcn.00471daf
add esp, 4
mov eax, dword [ebp - 0x34]
add eax, 1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00470850
add esp, 4
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x34]
add ecx, 1
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x30]
call fcn.004033d0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x34], 0
jbe 0x48a275
lea ecx, [ebp - 0x30]
push ecx
mov eax, dword [ebp - 0x10]
call fcn.00403460
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x48]
push eax
call fcn.00471daf
add esp, 4
jmp 0x48a283
lea ecx, [ebp - 0x30]
push ecx
mov eax, 0x4a0258
call fcn.00403460
lea edx, [ebp - 0x30]
push edx
mov esi, dword [ebp + 8]
call fcn.00403430
mov eax, dword [ebp - 0x4c]
or eax, 1
mov dword [ebp - 0x4c], eax
mov dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x30]
call fcn.0042db60
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00470f4c
mov esp, ebp
pop ebp
ret
Function at 0x48a2d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48f2a2
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x4d01d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4c], 0
push 0x800
call fcn.00470850
add esp, 4
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], 0x400
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x34]
jbe 0x48a390
cmp dword [ebp - 0x38], 0
je 0x48a34e
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x40]
push edx
call fcn.00471daf
add esp, 4
mov eax, dword [ebp - 0x30]
add eax, 1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00470850
add esp, 4
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x2c]
call fcn.004033d0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x30], 0
jbe 0x48a3c5
lea ecx, [ebp - 0x2c]
push ecx
mov eax, dword [ebp - 0x38]
call fcn.00403460
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x48]
push eax
call fcn.00471daf
add esp, 4
jmp 0x48a3d3
lea ecx, [ebp - 0x2c]
push ecx
mov eax, 0x4a0254
call fcn.00403460
lea edx, [ebp - 0x2c]
push edx
mov esi, dword [ebp + 8]
call fcn.00403430
mov eax, dword [ebp - 0x4c]
or eax, 1
mov dword [ebp - 0x4c], eax
mov dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x2c]
call fcn.0042db60
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00470f4c
mov esp, ebp
pop ebp
ret
Function at 0x48a420
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48f2d5
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x4d01d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x220], 0
mov eax, dword [0x4e5774]
and eax, 1
jne 0x48a499
mov ecx, dword [0x4e5774]
or ecx, 1
mov dword [0x4e5774], ecx
mov dword [ebp - 4], 0
mov eax, 0x4a0250
mov ecx, 0x4e5758
call fcn.004033f0
push 0x49a7f0
call fcn.00471082
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, 0x4e5758
call fcn.00404220
test eax, eax
jne 0x48a4ed
xor edx, edx
mov word [ebp - 0x21c], dx
push 0x206
push 0
lea eax, [ebp - 0x21a]
push eax
call fcn.00473d50
add esp, 0xc
push 0
push 0x23
lea ecx, [ebp - 0x21c]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x48a4ed
push 0x4e5758
lea eax, [ebp - 0x21c]
call fcn.00403460
push 0x4e5758
mov esi, dword [ebp + 8]
call fcn.00403430
mov edx, dword [ebp - 0x220]
or edx, 1
mov dword [ebp - 0x220], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00470f4c
mov esp, ebp
pop ebp
ret
Function at 0x48a6b0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48f313
mov eax, dword fs:[0]
push eax
sub esp, 0x2bc
mov eax, dword [0x4d01d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x264]
call fcn.004033f0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x264]
push eax
mov edx, 0x4a031c
call fcn.00403490
mov dword [ebp - 0x248], 0
lea ecx, [ebp - 0x244]
push ecx
lea eax, [ebp - 0x264]
call fcn.004042d0
push eax
call fcn.00474da4
add esp, 8
mov dword [ebp - 0x268], eax
cmp dword [ebp - 0x268], 0xffffffff
jne 0x48a75d
mov dword [ebp - 0x288], 0
mov dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x264]
call fcn.0042db60
mov eax, dword [ebp - 0x288]
jmp 0x48a965
lea edx, [ebp - 0x244]
push edx
mov eax, dword [ebp - 0x268]
push eax
call fcn.00474ed4
add esp, 8
mov dword [ebp - 0x248], eax
cmp dword [ebp - 0x248], 0
jne 0x48a900
push 0x4a0328
lea ecx, [ebp - 0x220]
push ecx
call fcn.00475089
add esp, 8
test eax, eax
je 0x48a7b6
push 0x4a0330
lea edx, [ebp - 0x220]
push edx
call fcn.00475089
add esp, 8
test eax, eax
jne 0x48a7b8
jmp 0x48a75d
mov eax, dword [ebp - 0x244]
and eax, 0x10
je 0x48a839
lea ecx, [ebp - 0x264]
push ecx
mov eax, dword [ebp + 8]
call fcn.00403460
lea edx, [ebp - 0x264]
push edx
mov edx, 0x4a0334
call fcn.00403490
lea eax, [ebp - 0x264]
push eax
lea edx, [ebp - 0x220]
call fcn.00403490
lea eax, [ebp - 0x264]
call fcn.004042d0
push eax
call fcn.0048a6b0
add esp, 4
test eax, eax
jne 0x48a834
mov dword [ebp - 0x28c], 0
mov dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x264]
call fcn.0042db60
mov eax, dword [ebp - 0x28c]
jmp 0x48a965
jmp 0x48a8fb
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x284]
call fcn.004033f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x284]
push ecx
mov edx, 0x4a0338
call fcn.00403490
lea edx, [ebp - 0x284]
push edx
lea edx, [ebp - 0x220]
call fcn.00403490
mov eax, dword [ebp - 0x244]
and eax, 1
je 0x48a8a1
mov ecx, dword [ebp - 0x244]
and ecx, 0xfffffffe
mov dword [ebp - 0x244], ecx
mov edx, dword [ebp - 0x244]
push edx
lea eax, [ebp - 0x284]
call fcn.004042d0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x284]
call fcn.004042d0
push eax
call fcn.00475033
add esp, 4
test eax, eax
je 0x48a8ec
mov dword [ebp - 0x290], 0
mov byte [ebp - 4], 0
lea esi, [ebp - 0x284]
call fcn.0042db60
mov dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x264]
call fcn.0042db60
mov eax, dword [ebp - 0x290]
jmp 0x48a965
mov byte [ebp - 4], 0
lea esi, [ebp - 0x284]
call fcn.0042db60
jmp 0x48a75d
mov eax, dword [ebp - 0x268]
push eax
call fcn.00475063
add esp, 4
mov ecx, dword [ebp + 8]
push ecx
call fcn.00475003
add esp, 4
test eax, eax
je 0x48a943
mov dword [ebp - 0x294], 0
mov dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x264]
call fcn.0042db60
mov eax, dword [ebp - 0x294]
jmp 0x48a965
mov dword [ebp - 0x298], 1
mov dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x264]
call fcn.0042db60
mov eax, dword [ebp - 0x298]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00470f4c
mov esp, ebp
pop ebp
ret
Function at 0x48c160
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x24]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.00472906
add esp, 0x10
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x24]
push edx
call fcn.004745c2
add esp, 4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x48c450
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4d01d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x28], ecx
mov byte [ebp - 0x24], 0
xor eax, eax
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
mov ecx, dword [ebp - 0x28]
add ecx, 4
call fcn.00404690
push eax
push 0x20
lea ecx, [ebp - 0x24]
push ecx
push 0x4a069c
mov ecx, dword [ebp - 0x28]
add ecx, 0x20
call fcn.00404690
push eax
push str.filter
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [ebp - 0x24]
push edx
call fcn.00474634
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00470f4c
mov esp, ebp
pop ebp
ret

Function at 0x48da60
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4d01d4]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x228], ecx
mov eax, dword [ebp - 0x228]
call fcn.004042d0
push eax
push pe_nt_image_headers32
lea eax, [ebp - 0x208]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jbe 0x48dabb
mov ecx, dword [ebp + 0x14]
push ecx
lea eax, [ebp - 0x208]
call fcn.00403460
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00470f4c
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4033fc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00405320
test esi, esi
jne 0x403432
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00405410
jmp 0x403450
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004032a0
mov edi, eax
test esi, esi
je 0x403450
cmp dword [ebx], 0
je 0x403450
dec esi
jmp 0x403439
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403484
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x557008], 0x8088405
inc edx
mov dword [ebx + 0x557008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4040d4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x557024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40416c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40414c
xor eax, eax
push ebp
push 0x404145
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 0x404188
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 0x40414c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x557024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x557024], ax
mov esp, ebp
pop ebp
ret

Function at 0x4050cc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x56804c], 0
je 0x40512d
cmp word [0x568220], 0xd7b2
jne 0x4050f5
cmp dword [0x568228], 0
jbe 0x4050f5
mov eax, 0x56821c
call dword [0x568238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x405154
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x557034], 0
jne 0x405149
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4052a4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x55703c], 0
je 0x4052ca
mov edx, esi
mov eax, ebx
call dword [0x55703c]
jmp 0x4052d9
mov eax, 8
call fcn.00402fa4
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x56804d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40526c
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x407024
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x407254
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4070a7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x407254
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4070a7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x407270
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x407130
xor eax, eax
push ebp
push 0x407129
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406e60
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40710e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x407290
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40710e
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407130
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x40724a
cmp byte [ebp - 0xd], 0
jne 0x407177
cmp byte [ebp - 0x12], 0
je 0x40724a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x407190
dec ebx
cmp byte [ebx], 0x2e
je 0x40719f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40718f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40724a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4071dc
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40724a
cmp byte [ebp - 0xd], 0
je 0x40724a
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40724a
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409138
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004057a0
xor eax, eax
push ebp
push 0x4091ef
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x30]
call fcn.00406a44
mov esi, eax
cmp dword [ebp - 4], 0
jne 0x409180
test esi, esi
jle 0x409180
lea eax, [ebp - 4]
lea edx, [esi + esi*2]
mov ecx, dword [ebx + 0x30]
mov edx, dword [ecx + edx*8 - 8]
call fcn.004053b8
lea eax, [esi + 1]
push eax
lea eax, [ebx + 0x30]
mov ecx, 1
mov edx, dword [0x408e38]
call fcn.00406c00
add esp, 4
lea edi, [esi + esi*2]
mov eax, dword [ebx + 0x30]
mov edx, dword [ebx + 0x38]
mov dword [eax + edi*8], edx
mov edx, dword [ebx + 0x3c]
mov dword [eax + edi*8 + 4], edx
mov eax, dword [ebx + 0x30]
mov edx, dword [ebp + 8]
mov dword [eax + edi*8 + 8], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + edi*8 + 0xc], edx
mov eax, dword [ebx + 0x30]
lea eax, [eax + edi*8 + 0x10]
mov edx, dword [ebp - 4]
call fcn.00405374
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
add dword [ebx + 0x38], eax
adc dword [ebx + 0x3c], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4091f6
lea eax, [ebp - 4]
call fcn.00405320
ret