joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e7b0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x10
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionSharedDLLs
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40e859
lea ecx, [esp + 0xc]
lea edx, [esp]
push ecx
mov ecx, dword [0x429680]
lea eax, [esp + 8]
push edx
mov edx, dword [esp + 0x10]
push eax
push 0
push ecx
push edx
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 4
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40e81c
inc dword [esp]
jmp 0x40e82c
mov dword [esp], 1
mov dword [esp + 4], 4
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 4]
lea ecx, [esp]
push eax
mov eax, dword [0x429680]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x10
ret

Function at 0x40e860
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [0x429648]
test eax, eax
jne 0x40e916
push esi
push str.wininet.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.InternetOpenA
push eax
mov dword [0x429648], eax
call esi
mov dword [0x429644], eax
mov eax, dword [0x429648]
push str.InternetCloseHandle
push eax
call esi
mov ecx, dword [0x429648]
push str.InternetOpenUrlA
push ecx
mov dword [0x429640], eax
call esi
mov edx, dword [0x429648]
push str.InternetQueryDataAvailable
push edx
mov dword [0x42963c], eax
call esi
mov dword [0x429638], eax
mov eax, dword [0x429648]
push str.InternetReadFile
push eax
call esi
mov ecx, dword [0x429644]
mov dword [0x429634], eax
test ecx, ecx
pop esi
je 0x40e908
mov ecx, dword [0x429640]
test ecx, ecx
je 0x40e908
mov ecx, dword [0x42963c]
test ecx, ecx
je 0x40e908
mov ecx, dword [0x429638]
test ecx, ecx
je 0x40e908
test eax, eax
jne 0x40e90d
call fcn.0040e950
mov eax, dword [0x429648]
test eax, eax
je 0x40e93b
mov eax, dword [0x429630]
test eax, eax
jne 0x40e940
push eax
push eax
push eax
push eax
push eax
push 7
call fcn.00403990
add esp, 8
push eax
call dword [0x429644]
mov dword [0x429630], eax
ret
mov eax, dword [0x429630]
ret
Function at 0x40e990
Capabilities:
Copy file
Write file on windows

Disassembly:
sub esp, 0x124
push ebx
push ebp
push esi
mov esi, dword [esp + 0x138]
push edi
push 7
xor ebp, ebp
push str.file:__
push esi
mov dword [esp + 0x30], ebp
call fcn.00419730
add esp, 0xc
test eax, eax
jne 0x40ea28
lea eax, [esi + 7]
lea edx, [esp + 0x30]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40e9c4
lea edi, [esp + 0x30]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x40e9f1
cmp byte [esp + eax + 0x30], 0x2f
jne 0x40e9ec
mov byte [esp + eax + 0x30], 0x5c
inc eax
cmp eax, ecx
jl 0x40e9e0
lea eax, [esp + 0x30]
push 0x424acc
push eax
call fcn.00419490
add esp, 8
test eax, eax
je 0x40ebbe
mov ecx, dword [esp + 0x138]
push 0
dec eax
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret
call fcn.0040e860
mov edi, eax
test edi, edi
je 0x40ebbe
push 0x1000
call fcn.004190e0
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x14], ebx
je 0x40ebbe
push 0
push 0
push 0
push 0
push esi
push edi
call dword [0x42963c]
mov esi, eax
test esi, esi
mov dword [esp + 0x18], esi
je 0x40ebb5
mov edx, dword [esp + 0x138]
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
je 0x40ebae
mov esi, dword [esp + 0x144]
mov ebx, dword [esp + 0x148]
xor edi, edi
mov ebp, esi
mov dword [esp + 0x10], edi
mov ecx, dword [esp + 0x18]
push 0
lea eax, [esp + 0x2c]
push 0
push eax
push ecx
call dword [0x429638]
test eax, eax
je 0x40eb7e
mov eax, dword [esp + 0x28]
test eax, eax
jbe 0x40eb7e
cmp eax, 0x1000
jbe 0x40eae7
mov eax, 0x1000
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x20]
push edx
push eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
call dword [0x429634]
cmp eax, 1
jne 0x40eb55
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x2c]
push 0
push edx
mov edx, dword [esp + 0x24]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40eb55
mov ecx, dword [esp + 0x20]
add edi, ecx
cmp ebx, esi
je 0x40eb5d
mov ecx, dword [esp + 0x140]
test ecx, ecx
jle 0x40eb5d
mov eax, ebx
xor edx, edx
sub eax, esi
imul eax, edi
div ecx
add eax, esi
cmp eax, ebp
je 0x40eb5d
push eax
mov ebp, eax
call fcn.00401ec0
add esp, 4
jmp 0x40eb5d
mov dword [esp + 0x10], 1
push 0
call fcn.00404f60
mov eax, dword [0x429a78]
add esp, 4
test eax, eax
jne 0x40eb97
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40eab3
jmp 0x40eb97
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40eb97
push ebx
mov dword [esp + 0x28], 1
call fcn.00401ec0
add esp, 4
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, dword [esp + 0x24]
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
push esi
call dword [0x429640]
push ebx
call fcn.00419243
add esp, 4
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x124
ret
Function at 0x40ebd0
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x429a10]
sub esp, 0x208
test eax, eax
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push edi
jne 0x40ecb3
push 0x429a10
push 0x104
call fcn.00402180
add esp, 8
test eax, eax
jne 0x40ec1b
pop edi
pop esi
pop ebp
mov dword [0x429afc], 0xc
or eax, 0xffffffff
pop ebx
add esp, 0x208
ret
mov ebp, dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ebx, 1
mov eax, dword [0x429a10]
push eax
push 0x104
call ebp
mov ecx, dword [0x429a10]
push ecx
call fcn.004020d0
mov edx, dword [0x429a10]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ebx
add ecx, edx
push str.ictmp_d
push ecx
call esi
mov edx, dword [0x429a10]
push edx
call fcn.004192d8
add esp, 0x14
test eax, eax
jne 0x40ec7a
inc ebx
cmp ebx, 0x3e7
jl 0x40ec26
jmp 0x40ec8c
mov eax, dword [0x429a10]
push eax
call fcn.004192ac
add esp, 4
test eax, eax
je 0x40ecb3
mov ecx, dword [0x429a10]
mov dword [0x429afc], 0x11
push ecx
call fcn.00409860
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
mov edx, dword [0x429a10]
push edx
call fcn.004020d0
mov ebx, dword [esp + 0x220]
mov ecx, dword [0x429a10]
lea edx, [esp + 0x14]
mov eax, dword [ebx + 0x1c]
push eax
push ecx
push str._s_d.bin
push edx
call esi
mov eax, dword [0x429a10]
push eax
call fcn.00402110
lea ecx, [esp + 0x28]
push 0
push ecx
call fcn.00401100
mov ebp, dword [esp + 0x244]
mov edi, eax
add esp, 0x20
cmp edi, 0xffffffff
jne 0x40edae
mov eax, dword [0x4299fc]
mov edx, dword [ebx + 0x1c]
push edx
lea edx, [esp + 0x118]
mov ecx, dword [eax + 0x70]
add ecx, eax
push ecx
push str._s_d.bin
push edx
call esi
mov eax, dword [esp + 0x230]
mov ecx, dword [ebx + 0x20]
push ebp
push eax
lea edx, [esp + 0x12c]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
call fcn.0040e990
add esp, 0x24
test eax, eax
je 0x40ed87
lea ecx, [esp + 0x10]
push 0
push ecx
call fcn.00401100
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
jne 0x40edae
lea edx, [esp + 0x10]
mov dword [0x429afc], 0x10
push edx
call fcn.00409860
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
lea eax, [esp + 0x114]
mov dword [0x429afc], 0x10
push eax
call fcn.00409860
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
push ebp
call fcn.00401ec0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x40edd0
Capabilities:
Set current directory

Disassembly:
mov eax, dword [0x429a10]
test eax, eax
je 0x40ee6e
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push eax
call ebx
test eax, eax
je 0x40ee60
push esi
push 1
push 0x118
call fcn.00419192
mov esi, eax
add esp, 8
test esi, esi
je 0x40ee49
push edi
push esi
push str..bin
call fcn.00419d91
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
je 0x40ee3f
test byte [esi], 0x10
jne 0x40ee28
lea eax, [esi + 0x14]
push eax
call fcn.00419510
add esp, 4
push esi
push edi
call fcn.00419e5b
add esp, 8
test eax, eax
je 0x40ee17
push edi
call fcn.00419f20
add esp, 4
push esi
call fcn.00419243
add esp, 4
pop edi
push 0x424aec
call ebx
mov ecx, dword [0x429a10]
push ecx
call fcn.00419d67
add esp, 4
pop esi
push 0x429a10
call fcn.004021c0
add esp, 4
pop ebx
ret

Function at 0x40eef0
Capabilities:
Copy file

Disassembly:
push ecx
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push 0x104
xor ebp, ebp
call fcn.00402180
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
mov edx, ebx
add esp, 8
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40ef15
push 0x5c
push ebx
call fcn.00418f90
add esp, 8
test eax, eax
je 0x40ef31
inc eax
jmp 0x40ef33
mov eax, ebx
mov edi, dword [esp + 0x20]
mov edx, eax
mov ecx, edi
sub edx, edi
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x40ef3d
mov esi, dword [esp + 0x18]
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x40ef82
mov dword [0x429afc], 0x3e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x429aec]
mov dword [0x429b00], eax
mov ecx, edi
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x40ef76
jmp 0x40efad
push 2
push esi
mov ebp, 1
call fcn.00418f3d
add esp, 8
test eax, eax
je 0x40efad
cmp dword [0x429b34], 0xd
jne 0x40efad
push 0x180
push esi
call fcn.00418dfc
add esp, 8
lea ecx, [esp + 0x10]
push ecx
call fcn.004021c0
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x40fcc0
Capabilities:
Delete registry value
Set registry value

Disassembly:
sub esp, 0x1c
call fcn.0040a210
test eax, eax
je 0x40fd4b
call fcn.0040efd0
test eax, eax
je 0x40fd43
push ebx
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
push ebp
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageA]
push esi
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
push edi
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push 0
push eax
call esi
test eax, eax
je 0x40fd36
push 0
push 0
lea ecx, [esp + 0x18]
push 0
push ecx
call edi
test eax, eax
je 0x40fd23
lea edx, [esp + 0x10]
push edx
call ebx
lea eax, [esp + 0x10]
push eax
call ebp
push 0
push 0
push 0
lea ecx, [esp + 0x1c]
push 0
push ecx
call esi
test eax, eax
jne 0x40fd04
call fcn.0040efd0
test eax, eax
jne 0x40fcf1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
jmp fcn.0040cf80
add esp, 0x1c
ret
Function at 0x411320
Capabilities:
Get common file path
Move file

Disassembly:
sub esp, 0x318
push esi
mov esi, dword [esp + 0x320]
test esi, esi
je 0x411340
push 0x180
push esi
call fcn.00418dfc
add esp, 8
mov eax, dword [0x429a84]
test eax, eax
je 0x41138b
test esi, esi
jne 0x41136c
mov eax, dword [esp + 0x324]
push 4
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
neg eax
sbb eax, eax
pop esi
neg eax
add esp, 0x318
ret
mov ecx, dword [esp + 0x324]
push 5
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
neg eax
sbb eax, eax
pop esi
neg eax
add esp, 0x318
ret
mov eax, dword [esp + 0x324]
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea edx, [esp + 0x11c]
push 0x104
push edx
push eax
call edi
test esi, esi
je 0x4113be
lea ecx, [esp + 0x220]
push 0x104
push ecx
push esi
call edi
lea edx, [esp + 0x18]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0x18]
push str.WININIT.INI
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
test esi, esi
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
je 0x411420
lea ecx, [esp + 0x18]
lea edx, [esp + 0x11c]
push ecx
lea eax, [esp + 0x224]
push edx
push eax
push str.Rename
call esi
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0
call esi
pop edi
pop ebp
mov eax, 1
pop esi
add esp, 0x318
ret
lea edx, [esp + 0x18]
lea eax, [esp + 0x11c]
push edx
push eax
push 0x424b0c
push str.Rename
call esi
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0
call esi
lea edx, [esp + 0x18]
push 2
push edx
call fcn.00401100
mov ebp, eax
add esp, 8
cmp ebp, 0xffffffff
je 0x411538
push ebx
push ebp
call fcn.00401280
mov ebx, eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x1c], ebx
lea ecx, [ebx + 0x200]
push ecx
call fcn.00402140
add esp, 0xc
test eax, eax
je 0x41152e
mov esi, dword [esp + 0x10]
push ebx
push esi
push ebp
call fcn.00401180
add esp, 0xc
test eax, eax
jne 0x411521
add ebx, 0xfffffffc
mov edx, esi
test ebx, ebx
jbe 0x411521
mov eax, 0xfffffffe
sub eax, esi
mov dword [esp + 0x18], eax
cmp byte [edx], 0x78
jne 0x4114f0
cmp byte [edx + 1], 0x79
jne 0x4114f0
cmp byte [edx + 2], 0x7a
jne 0x4114f0
cmp byte [edx + 3], 0x3d
jne 0x4114f0
lea edi, [esp + 0x120]
or ecx, 0xffffffff
xor eax, eax
lea esi, [edx + 4]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x120]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4114fb
mov eax, dword [esp + 0x18]
inc edx
lea ecx, [eax + edx + 2]
cmp ecx, ebx
jb 0x4114b4
jmp 0x411521
push 0
push ebp
mov byte [edx], 0x4e
mov byte [edx + 1], 0x55
mov byte [edx + 2], 0x4c
call fcn.00401220
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
push eax
push ebp
call fcn.004011c0
add esp, 0x14
lea ecx, [esp + 0x10]
push ecx
call fcn.004021c0
add esp, 4
push ebp
call fcn.00401380
add esp, 4
pop ebx
pop edi
pop ebp
mov eax, 1
pop esi
add esp, 0x318
ret
Function at 0x418dfc
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x418e27
test byte [esp + 8], 0x80
je 0x418e16
and al, 0xfe
jmp 0x418e18
or al, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x418e38
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041a3aa
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x418f5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041a3aa
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x418f7e
test byte [esp + 8], 2
je 0x418f7e
mov dword [0x429b34], 0xd
mov dword [0x429b38], 5
jmp 0x418f59
xor eax, eax
ret

Function at 0x41d9b9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x429190
cmp edx, dword [eax]
je 0x41d9db
add eax, 8
inc ecx
cmp eax, 0x429220
jl 0x41d9cc
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x429190]
jne 0x41db09
mov eax, dword [0x429b90]
cmp eax, 1
je 0x41dae3
test eax, eax
jne 0x41da0c
cmp dword [0x426c08], 1
je 0x41dae3
cmp edx, 0xfc
je 0x41db09
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41da43
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0041c610
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0041c590
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41da86
lea eax, [ebp - 0x1a4]
push eax
call fcn.0041c590
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4246a0
push edi
call fcn.00419560
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0041c610
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0041c620
lea eax, [ebp - 0xa0]
push 0x421bd4
push eax
call fcn.0041c620
push dword [esi + 0x429194]
lea eax, [ebp - 0xa0]
push eax
call fcn.0041c620
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041f315
add esp, 0x2c
pop edi
jmp 0x41db09
lea eax, [ebp + 8]
lea esi, [esi + 0x429194]
push 0
push eax
push dword [esi]
call fcn.0041c590
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x1001b611
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x1001b620
pop dword [ebp - 0x30]
mov eax, 0xeab34ad3
add eax, 0x254e6b4d
sub dword [ebp - 0x30], eax
push 0x40
push 0x1000
push 0x4391e
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x30]
call dword [eax]
mov ecx, 0xf6da0480
sub ecx, 0xf6d9aff6
xor esi, esi
add esi, eax
mov edi, 0x923c64f6
add edi, 0x7dc7590a
add edi, dword [ebp - 0x30]
mov edx, 0xe3e94c9b
sub dword [ebp - 0xc], edx
mov ebx, dword [edi]
sub dword [ebp - 0x1c], 0x9a0f0a9f
sub ebx, edx
add dword [ebp - 0x18], esi
mov dword [esi], ebx
xor dword [ebp - 0x1c], ecx
add esi, 0x6220b2d4
add esi, 0x9ddf4d30
add edi, 0xcc0e7008
add edi, 0x33f18ffc
loop 0x1001b676
add eax, 0xeaad8fa2
add eax, 0x1553b559
mov ebx, eax
add eax, 0x357602f4
sub eax, 0x357602ef
mov ecx, 0x10000000
add ecx, dword [ebp - 0x30]
call ebx
leave
ret

Function at 0x100289d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x100330b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10035b0c]
test dword [ebp + 8], eax
je 0x10028a7a
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x808]
push eax
call fcn.1001b611
xor eax, eax
add esp, 0xc
mov word [ebp - 8], ax
mov eax, dword [0x10035b08]
test eax, eax
je 0x10028a6d
lea ecx, [ebp - 0x808]
push ecx
push eax
call fcn.1001b611
mov eax, dword [0x100330ac]
pop ecx
pop ecx
test eax, eax
jle 0x10028a7a
push esi
mov esi, dword [0x10035b10]
push edi
mov edi, dword [0x10035b14]
cdq
push edx
push eax
push edi
push esi
call fcn.10029420
add esi, 1
mov dword [0x10035b10], esi
adc edi, 0
or eax, edx
mov dword [0x10035b14], edi
pop edi
pop esi
jne 0x10028a7a
push dword [0x10035b08]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
pop ecx
jmp 0x10028a7a
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10028d50
leave
ret
Function at 0x403820
Capabilities:
Query or enumerate registry value

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

Function at 0x4046a4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4af04c], 0
je 0x404705
cmp word [0x4af220], 0xd7b2
jne 0x4046cd
cmp dword [0x4af228], 0
jbe 0x4046cd
mov eax, 0x4af21c
call dword [0x4af238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4ad070
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 0x40472c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4ad030], 0
jne 0x404721
push 0
push 0x4ad068
push 0x4ad070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406b0c
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 0x406b72
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.00404a90
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403288
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406b5c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406b79
lea eax, [ebp - 0x10]
call fcn.00404820
ret

Function at 0x40d51c
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 0x40d555
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404910
jmp 0x40d55e
mov eax, ebx
mov edx, esi
call fcn.00404874
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40dc10
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40da88
mov eax, dword [0x4aec54]
cmp byte [eax], 0
je 0x40dc8c
mov eax, dword [0x4ae938]
call fcn.00402e38
call fcn.00402978
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.0040a738
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 0x40dcd4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40dcc2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4ae8bc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4af668]
call fcn.00406004
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