joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406bf9
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
push edi
mov al, byte [ebp]
mov dword [esp + 0x14], esi
test al, al
je 0x406d50
mov edi, 0x400
mov ecx, esi
sub ecx, dword [esp + 0x14]
cmp ecx, edi
jge 0x406d50
movzx ebx, al
inc ebp
cmp ebx, 0xdd
jge 0x406c3b
mov byte [esi], bl
inc esi
jmp 0x406d45
cmp ebx, 0xff
jne 0x406c4f
mov al, byte [ebp]
mov byte [esi], al
inc esi
inc ebp
jmp 0x406d45
lea eax, [ebx - 0xdd]
cmp eax, 0x21
ja case.default.0x406c65
movzx eax, byte [eax + 0x406d78]
jmp dword [eax*4 + 0x406d58]
push dword [0x421ca4]
push 0x4094b0
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp case.default.0x406c65
lea eax, [ebx - 0xde]
shl eax, 0xa
add eax, 0x41ac60
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp case.default.0x406c65
push esi
push str.ProgramFilesDir
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.00406a8a
add esp, 0x10
cmp byte [esi], 0
jne 0x406d1d
push str.C:Program_Files
jmp 0x406c95
push esi
push dword [ebx*4 + 0x408fd0]
call fcn.00406d9a
pop ecx
pop ecx
jmp case.default.0x406c65
push esi
push str.AppData
call fcn.00406d9a
pop ecx
pop ecx
push str.MicrosoftInternet_ExplorerQuick_Launch
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je case.0x406c65.252
test al, 0x10
jne case.default.0x406c65
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp case.default.0x406c65
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp case.default.0x406c65
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp byte [esi], 0
je 0x406d2c
push esi
call dword [sym.imp.USER32.dll_CharNextA]
cmp byte [eax], 0
je 0x406d2c
inc esi
jmp case.default.0x406c65
cmp ebx, 0xf2
jle 0x406d3c
cmp byte [esi], 0x5c
jne 0x406d3c
and byte [esi], 0
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
mov al, byte [ebp]
test al, al
jne 0x406c19
and byte [esi], 0
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x406d9a
Capabilities:
Get common file path
Persist via run registry key

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push esi
push dword [esp + 0xc]
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call fcn.00406a8a
add esp, 0x10
cmp byte [esi], 0
jne 0x406dc7
push esi
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
pop esi
ret
Function at 0x406dc9
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
push ebx
push esi
push 1
xor esi, esi
pop ebx
push esi
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ole32.dll_OleInitialize]
cmp eax, ebx
je 0x406df2
cmp eax, esi
je 0x406df2
mov eax, ebx
jmp 0x406edc
lea eax, [ebp - 4]
push eax
push 0x407378
push ebx
push esi
push 0x407368
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x406ed3
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push 0x407388
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jl 0x406eca
mov eax, dword [ebp - 4]
push edi
push dword [ebp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
push dword [ebp + 0x20]
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
cmp dword [ebp + 0x24], esi
je 0x406e55
mov eax, dword [ebp - 4]
push dword [ebp + 0x24]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x3c]
cmp dword [ebp + 0x28], esi
je 0x406e66
mov eax, dword [ebp - 4]
push dword [ebp + 0x28]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x34]
cmp dword [ebp + 0x10], esi
je 0x406e7a
push dword [ebp + 0x14]
mov eax, dword [ebp - 4]
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
cmp dword [ebp + 0x1c], esi
je 0x406e8b
mov eax, dword [ebp - 4]
push dword [ebp + 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
cmp edi, esi
pop edi
jl 0x406ec1
lea eax, [ebp - 0x80c]
push 0x400
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x80c]
push ebx
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x406ec1
mov dword [ebp - 0xc], esi
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_OleUninitialize]
mov eax, dword [ebp - 0xc]
pop esi
pop ebx
leave
ret
Function at 0x402a20
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x429a8c]
xor eax, ebp
mov dword [ebp - 0x104], eax
push 4
push 0x1000
push 0x40
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
lea edx, [ebp - 4]
push edx
push 0x40
lea eax, [ebp - 0x148]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x10c]
mov dword [ebp - 8], eax
push 4
push 0x1000
push pe_nt_image_headers32
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
lea eax, [ebp - 4]
push eax
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0xd8]
mov ecx, dword [ebp - 0x104]
xor ecx, ebp
call fcn.0040e418
mov esp, ebp
pop ebp
ret

Function at 0x402ad0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x429a8c]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00402950
add esp, 0xc
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00402a20
add esp, 8
mov dword [ebp - 0x50], eax
mov edx, 0xfeeb
mov word [ebp - 0x4c], dx
push 4
push 0x1000
push 2
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
lea edx, [ebp - 8]
push edx
push 2
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0x50]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea eax, [ebp - 8]
push eax
push 2
lea ecx, [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 0x50]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
movzx ecx, word [ebp - 4]
and ecx, 0xff
mov byte [ebp - 0x46], cl
movzx edx, word [ebp - 4]
sar edx, 8
mov byte [ebp - 0x45], dl
movzx eax, byte [ebp - 0x45]
push eax
movzx ecx, byte [ebp - 0x46]
push ecx
mov edx, dword [ebp - 0x50]
push edx
push str.entrypoint_address__08X_data__02X__02X
push 0x32
lea eax, [ebp - 0x40]
push eax
call fcn.0040e7dd
add esp, 0x18
lea ecx, [ebp - 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov al, 1
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0040e418
mov esp, ebp
pop ebp
ret
Function at 0x402bb0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0x14]
mov eax, dword [ebp + 8]
lea ecx, [eax + edx + 0x18]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
cmp eax, dword [edx + 0x14]
jae 0x402be0
mov eax, dword [ebp + 0xc]
jmp 0x402caa
xor ecx, ecx
mov word [ebp - 0xc], cx
jmp 0x402bf4
mov dx, word [ebp - 0xc]
add dx, 1
mov word [ebp - 0xc], dx
movzx eax, word [ebp - 0xc]
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 6]
cmp eax, edx
jge 0x402ca8
movzx eax, word [ebp - 0xc]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + eax + 0x10], 0
je 0x402c2b
movzx edx, word [ebp - 0xc]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + edx + 0x10]
mov dword [ebp - 8], ecx
jmp 0x402c3c
movzx edx, word [ebp - 0xc]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + edx + 8]
mov dword [ebp - 8], ecx
movzx edx, word [ebp - 0xc]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [eax + edx + 0xc]
jb 0x402ca3
movzx edx, word [ebp - 0xc]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + edx + 0xc]
add ecx, dword [ebp - 8]
cmp dword [ebp + 0xc], ecx
jae 0x402ca3
movzx edx, word [ebp - 0xc]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x10]
cmp dword [eax + edx + 0x14], 0
je 0x402c9e
movzx ecx, word [ebp - 0xc]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
sub eax, dword [edx + ecx + 0xc]
mov dword [ebp - 4], eax
movzx ecx, word [ebp - 0xc]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
add eax, dword [edx + ecx + 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x402caa
jmp 0x402be8
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x403bc0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0
push 4
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x403c0a
push 0
push 0
push 0
push 6
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x403c0a
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x403c20
Capabilities:
Create process on windows
Print debug messages
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x429a8c]
xor eax, ebp
mov dword [ebp - 0x5c], eax
push esi
push edi
push 0x44
push 0
lea eax, [ebp - 0x58]
push eax
call fcn.00411870
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x58], 0x44
mov edx, dword [ebp + 0x24]
mov dword [edx + 8], 0
mov eax, dword [ebp + 0x24]
mov dword [eax + 0xc], 0
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x58]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0
push 0x4000414
push 0
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x403da8
movzx eax, byte [ebp + 0x20]
test eax, eax
je 0x403cb9
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.00402ad0
add esp, 0xc
mov ecx, dword [ebp - 8]
push ecx
push 0x425560
lea edx, [ebp - 0x98]
push edx
call fcn.0040e760
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp + 0x24]
mov edx, dword [ebp - 8]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp - 4]
mov dword [eax + 0xc], ecx
push 0x320
lea edx, [ebp - 0x98]
push edx
call fcn.00403bc0
add esp, 8
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x9c], edx
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp - 0xa0]
mov dword [eax], ecx
mov edx, dword [ebp - 0x9c]
mov dword [eax + 4], edx
mov eax, dword [ebp + 0x24]
cmp dword [eax], 0
je 0x403d55
mov ecx, dword [ebp + 0x24]
mov dword [ecx + 0x10], 1
mov edx, dword [ebp + 0x24]
mov eax, dword [ebp + 0x24]
mov ecx, dword [eax + 0xc]
mov dword [edx + 0x1c], ecx
mov esi, dword [ebp + 0x24]
add esi, 0x10
mov edx, dword [ebp + 0x24]
mov edi, dword [edx + 4]
mov ecx, 0xc8
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0x24]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.00403230
add esp, 0x10
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x24]
mov edx, dword [ebp - 8]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp - 4]
mov dword [eax + 0xc], ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x5c]
xor ecx, ebp
call fcn.0040e418
mov esp, ebp
pop ebp
ret
Function at 0x403dc0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push eax
push 0
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x403df2
push 0
push 0
push 0
push 6
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x404020
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 0x484], 0
je 0x40403d
mov ecx, dword [ebp - 8]
call fcn.00403f90
push 0x42542c
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040ec6a
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40415d
mov edx, dword [ebp + 8]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 8]
add eax, 4
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0xc]
mov al, byte [edx]
mov byte [ebp - 0x15], al
mov ecx, dword [ebp - 0x10]
mov dl, byte [ebp - 0x15]
mov byte [ecx], dl
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
cmp byte [ebp - 0x15], 0
jne 0x404070
push 2
push 0
mov edx, dword [ebp - 4]
push edx
call fcn.0040ed0b
add esp, 0xc
mov eax, dword [ebp - 4]
push eax
call fcn.0040ef2d
add esp, 4
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x49c], eax
push 0
push 0
mov edx, dword [ebp - 4]
push edx
call fcn.0040ed0b
add esp, 0xc
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x49c]
push ecx
call fcn.0040efea
add esp, 4
mov edx, dword [ebp - 8]
mov dword [edx + 0x484], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x484], 0
jne 0x404111
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x49c], 0
mov edx, dword [ebp - 4]
push edx
call fcn.0040f12b
add esp, 4
xor eax, eax
jmp 0x40415f
mov eax, dword [ebp - 4]
push eax
push 1
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x49c]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x484]
push ecx
call fcn.0040f447
add esp, 0x10
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x49c]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x484]
mov byte [eax + edx - 1], 0
mov eax, dword [ebp - 4]
push eax
call fcn.0040f12b
add esp, 4
mov eax, 1
jmp 0x40415f
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x40e418
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x429a8c]
jne 0x40e422
repz ret
jmp fcn.0041249b
Function at 0x41ce5b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00414b2a
and dword [ebp - 4], 0
cmp dword [0x42d690], 0
mov ebx, eax
jne 0x41cf0c
push 0x424984
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41cfbd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x424978
push edi
call esi
test eax, eax
je 0x41cfbd
push eax
call fcn.00414ab8
mov dword [esp], 0x424968
push edi
mov dword [0x42d690], eax
call esi
push eax
call fcn.00414ab8
mov dword [esp], 0x424954
push edi
mov dword [0x42d694], eax
call esi
push eax
call fcn.00414ab8
mov dword [esp], 0x424938
push edi
mov dword [0x42d698], eax
call esi
push eax
call fcn.00414ab8
pop ecx
mov dword [0x42d6a0], eax
test eax, eax
je 0x41cf0c
push 0x424920
push edi
call esi
push eax
call fcn.00414ab8
pop ecx
mov dword [0x42d69c], eax
mov eax, dword [0x42d69c]
cmp eax, ebx
je 0x41cf64
cmp dword [0x42d6a0], ebx
je 0x41cf64
push eax
call fcn.00414b33
push dword [0x42d6a0]
mov esi, eax
call fcn.00414b33
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41cf64
test edi, edi
je 0x41cf64
call esi
test eax, eax
je 0x41cf5b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41cf5b
test byte [ebp - 0xc], 1
jne 0x41cf64
or dword [ebp + 0x10], 0x200000
jmp 0x41cf9d
mov eax, dword [0x42d694]
cmp eax, ebx
je 0x41cf9d
push eax
call fcn.00414b33
pop ecx
test eax, eax
je 0x41cf9d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41cf9d
mov eax, dword [0x42d698]
cmp eax, ebx
je 0x41cf9d
push eax
call fcn.00414b33
pop ecx
test eax, eax
je 0x41cf9d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42d690]
call fcn.00414b33
pop ecx
test eax, eax
je 0x41cfbd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41cfbf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403220
Capabilities:
Query or enumerate registry value

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

Function at 0x404064
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4ac04c], 0
je 0x4040c5
cmp word [0x4ac220], 0xd7b2
jne 0x40408d
cmp dword [0x4ac228], 0
jbe 0x40408d
mov eax, 0x4ac21c
call dword [0x4ac238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4a906c
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 0x4040ec
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4a9030], 0
jne 0x4040e1
push 0
push 0x4a9064
push 0x4a906c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404218
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004027c8
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4ac04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4041e0
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4064f4
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 0x40655a
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.004044d4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402dd8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406544
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406561
lea eax, [ebp - 0x10]
call fcn.00404264
ret

Function at 0x40900c
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404724
push eax
call sub.kernel32.dll_GetFileAttributesA
pop ebx
ret

Function at 0x409020
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00404724
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x409042
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40bbdc
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 0x40bc15
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404354
jmp 0x40bc1e
mov eax, ebx
mov edx, esi
call fcn.004042b8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c2d0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c148
mov eax, dword [0x4ab718]
cmp byte [eax], 0
je 0x40c34c
mov eax, dword [0x4ab32c]
call fcn.00402c08
call fcn.00402930
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.0040922c
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 0x40c394
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c382
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4ab28c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4ac668]
call fcn.004059ec
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