joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b71e
Capabilities:
Accept command line arguments
Read file via mapping
Set environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
mov ecx, 0x41d738
call fcn.0040c34e
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov esi, eax
cmp esi, ebx
je 0x40b7a6
push esi
call fcn.00409886
cmp byte [0x417f91], bl
je 0x40b79a
push str.winrarsfxmappingfile.tmp
push ebx
push 4
call dword [sym.imp.KERNEL32.DLL_OpenFileMappingA]
mov edi, eax
cmp edi, ebx
je 0x40b791
push 0x10000
push ebx
push ebx
push 4
push edi
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov esi, eax
cmp esi, ebx
je 0x40b78a
push esi
push str.sfxcmd
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableA]
push esi
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x40b7a6
push esi
push str.sfxcmd
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableA]
mov edi, 0x400
push edi
mov esi, 0x417ad8
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
push esi
push str.sfxname
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableA]
call fcn.0040639c
test eax, eax
je 0x40b7dd
push edi
push 0x4172d8
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
jmp 0x40b7e5
xor eax, eax
mov word [0x4172d8], ax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov edi, eax
push 0x64
push edi
mov dword [0x412c78], edi
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x65
push dword [0x412c78]
mov dword [0x4172d4], eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
lea ecx, [ebp - 8]
mov dword [0x4172d0], eax
call fcn.0040f1a2
push esi
mov ecx, 0x412c88
call fcn.00408659
lea ecx, [ebp - 0x40]
call fcn.00405970
lea ecx, [ebp - 0x24]
call fcn.00405970
push 0x64
call fcn.0040914d
push 0x64
mov dword [ebp - 0x28], eax
call fcn.0040914d
push ebx
push 0x40afa4
mov dword [ebp - 0xc], eax
push ebx
lea eax, [ebp - 0x40]
mov dword [0x416ecc], eax
push str.STARTDLG
lea eax, [ebp - 0x24]
push edi
mov dword [0x416ec8], eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
lea ecx, [ebp - 0x24]
mov dword [0x417f80], ebx
mov dword [0x416ec8], ebx
mov dword [0x416ecc], ebx
call fcn.00405986
lea ecx, [ebp - 0x40]
call fcn.00405986
lea ecx, [ebp - 8]
call fcn.0040f21a
cmp byte [0x417f88], bl
je 0x40b8a6
call fcn.00409b2a
push 0x80
push ebx
push 0x417ee8
call fcn.00408786
cmp dword [0x418824], ebx
jbe 0x40b8c9
push dword [0x418818]
call fcn.00408702
push dword [0x4172d4]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
mov eax, dword [0x4172d0]
cmp eax, ebx
je 0x40b8e3
push eax
call esi
cmp dword [0x412c7c], ebx
jne 0x40b902
cmp dword [0x417f78], ebx
je 0x40b902
push 0xff
mov ecx, 0x412c7c
call fcn.00402c1c
mov eax, dword [0x418828]
mov dword [0x417f78], 2
cmp eax, ebx
je 0x40b91b
push eax
call fcn.00409aeb
call dword [sym.imp.ole32.dll_OleUninitialize]
push dword [0x412c7c]
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x401a22
Capabilities:
Hide graphical window

Disassembly:
mov ecx, 0xfffffffe
jmp fcn.0040161c
Function at 0x401ab0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401ac9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401b04
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401b00
lea ebx, [ebx]
cmp esi, eax
jae 0x401b04
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401af0
cmp esi, eax
jb 0x401b0a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x401da0
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value
Set current directory

Disassembly:
sub esp, 0x830
mov eax, dword [0x453d48]
xor eax, esp
mov dword [esp + 0x82c], eax
push ebp
push edi
lea eax, [esp + 0x2c]
push eax
push 0x20019
xor edi, edi
push edi
push str.SOFTWAREWizetMaplestory
push reloc.OLEAUT32.dll_SysReAllocString
xor ebp, ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401e01
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x38]
push edx
push edi
push edi
push str.ExecPath
push eax
mov dword [esp + 0x48], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ebp, [esp + 0x34]
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jge 0x401e29
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x82c]
xor ecx, esp
call fcn.0042997e
add esp, 0x830
ret
push ebx
push esi
lea eax, [esp + 0x10]
lea edx, [esp + 0x3c]
push eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], str.Select_Maplestory_folder
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], 0x401a70
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], edi
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderA]
mov esi, eax
cmp esi, edi
je 0x401f08
lea ecx, [esp + 0x3c]
push ecx
push esi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov ebx, eax
mov eax, dword [esp + 0x30]
mov edx, dword [eax]
push esi
push eax
mov eax, dword [edx + 0x14]
call eax
cmp ebx, edi
je 0x401eb7
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x401eb7
push str.Maplestory.exe
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x401f0c
push edi
push edi
push str.Invalid_Path__Maplestory.exe_not_found_
jmp 0x401ebe
push edi
push edi
push str.Invalid_path
call fcn.004147db
lea eax, [esp + 0x10]
lea edx, [esp + 0x3c]
push eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], str.Select_Maplestory_folder
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], 0x401a70
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], edi
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderA]
mov esi, eax
cmp esi, edi
jne 0x401e70
xor eax, eax
jmp 0x401f11
mov eax, 1
mov ecx, dword [esp + 0x83c]
pop esi
pop ebx
pop edi
pop ebp
xor ecx, esp
call fcn.0042997e
add esp, 0x830
ret
Function at 0x402d20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43de08
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebp
push esi
push edi
mov eax, dword [0x453d48]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, ecx
lea ecx, [esp + 0x10]
call fcn.0041a1c6
lea eax, [esp + 0x10]
push 0
push eax
mov dword [esp + 0x30], 0
call fcn.00409230
mov edi, eax
mov eax, dword [ebp + 0x20c]
lea esi, [ebp + 0x20c]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, edi
add esp, 8
or eax, ecx
jge 0x402d92
push edi
mov ecx, esi
call fcn.00401270
mov eax, dword [esi]
push edi
push eax
lea ecx, [esp + 0x18]
call fcn.00419eba
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x402db6
push ecx
push eax
call fcn.00429b8c
add esp, 8
test eax, eax
jl 0x402e0b
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x402e0b
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
mov byte [eax + ecx], 0
cmp dword [ebp + 0x208], 0
je 0x402de0
mov ecx, ebp
call fcn.00402960
mov dword [ebp + 0x208], 0
lea ecx, [esp + 0x10]
mov byte [ebp + 0x1f9], 1
mov dword [esp + 0x28], 0xffffffff
call fcn.0041a2a1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x1c
ret
push 0x80070057
call fcn.00401060
int3

Function at 0x4052c0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x43e1ba
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x453d48]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x453d48]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov eax, dword [str.________.___]
mov edx, dword [0x4425b0]
mov ebp, ecx
mov ecx, dword [0x4425ac]
mov dword [esp + 0x20], eax
mov al, byte [0x4425b4]
push 0
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
mov byte [esp + 0x30], al
call fcn.00429547
push eax
call fcn.0042a246
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 8
xor esi, esi
call fcn.0042a258
cdq
mov ecx, 0x1a
idiv ecx
inc esi
add dl, 0x61
cmp esi, 8
mov byte [esp + esi + 0x1f], dl
jl 0x405338
push 0
lea edx, [esp + 0x24]
push edx
call edi
test eax, eax
jne 0x4053b7
call ebx
cmp eax, 0xb7
je 0x405336
push 0x14
call fcn.0040bdea
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
xor eax, eax
mov dword [esp + 0x3c], eax
cmp esi, eax
je 0x40539c
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x442788
call fcn.00402e60
mov ecx, esi
call fcn.00404d00
push 0x44b444
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x1c], eax
call fcn.0042a1fa
lea eax, [esp + 0x20]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4053c0
sub eax, edx
push eax
lea eax, [esp + 0x24]
lea esi, [ebp + 0x20]
push eax
mov ecx, esi
call fcn.004025d0
mov ecx, dword [esi]
push ecx
push 0x442590
call fcn.00408cc0
add esp, 8
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0042997e
add esp, 0x2c
ret
Function at 0x4072c0
Capabilities:
Access peb ldr_data
Create directory
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x43e6ec
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov eax, dword [0x453d48]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov edi, ecx
xor ebp, ebp
mov dword [esp + 0x24], ebp
push 0xbb8
mov byte [edi + 0xc], 0
push esi
mov esi, ecx
call fcn.00405410
cmp byte [0x4551b1], 0
jne 0x407eb9
mov ecx, esi
call fcn.004052c0
cmp byte [0x4551b1], 0
jne 0x407eb9
mov ecx, esi
call fcn.00407910
cmp byte [0x4551b1], 0
jne 0x407eb9
mov ecx, esi
pop esi
jmp 0x4072c0
pop esi
ret
Function at 0x407e80
Capabilities:
Create directory
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x43e6ec
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov eax, dword [0x453d48]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov edi, ecx
xor ebp, ebp
mov dword [esp + 0x24], ebp
push 0xbb8
mov byte [edi + 0xc], 0
push esi
mov esi, ecx
call fcn.00405410
cmp byte [0x4551b1], 0
jne 0x407eb9
mov ecx, esi
call fcn.004052c0
cmp byte [0x4551b1], 0
jne 0x407eb9
mov ecx, esi
call fcn.00407910
cmp byte [0x4551b1], 0
jne 0x407eb9
mov ecx, esi
pop esi
jmp 0x4072c0
pop esi
ret

Function at 0x4084d0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jle 0x408503
mov edx, dword [esp + 8]
push edi
movzx edi, byte [edx]
mov ecx, eax
shr ecx, 0x18
xor ecx, edi
and ecx, 0xff
shl eax, 8
xor eax, dword [ecx*4 + 0x4513c0]
inc edx
sub esi, 1
jne 0x4084e2
pop edi
pop esi
ret
Function at 0x409050
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x43ea87
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
push edi
mov eax, dword [0x453d48]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
push 0
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x18], 0
call fcn.004042f0
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x48]
mov dword [esp + 0x3c], 0
test esi, 0x1000
je 0x409160
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [esp + 0x44]
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
lea edx, [esp + 0x20]
push edx
push esi
push edi
call eax
test eax, eax
jne 0x4091e9
push 0x14
call fcn.0040bdea
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
mov byte [esp + 0x3c], 1
test esi, esi
je 0x409143
mov ecx, dword [esp + 0x2c]
push ecx
push 1
push edi
lea ecx, [esp + 0x20]
call fcn.00402e60
push eax
lea edx, [esp + 0x24]
push 0x442710
push edx
mov byte [esp + 0x50], 2
mov dword [esp + 0x20], 1
call fcn.00403c60
add esp, 8
mov ecx, 3
mov dword [esp + 0x48], ecx
mov dword [esp + 0x18], ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x442700
push eax
push ecx
call fcn.004027c0
add esp, 0xc
mov ecx, esi
call fcn.00404dd0
jmp 0x409145
xor eax, eax
push 0x44b444
lea edx, [esp + 0x50]
push edx
mov dword [esp + 0x44], 5
mov dword [esp + 0x54], eax
call fcn.0042a1fa
mov ecx, dword [esp + 0x44]
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
lea edx, [esp + 0x20]
push edx
push esi
push edi
call eax
test eax, eax
jne 0x4091e9
push 0x14
call fcn.0040bdea
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
mov byte [esp + 0x3c], 6
test esi, esi
je 0x4091cc
mov ecx, dword [esp + 0x2c]
push ecx
push 1
push edi
lea ecx, [esp + 0x24]
call fcn.00402e60
push ecx
mov edx, esp
mov dword [esp + 0x20], esp
push 0x442674
push eax
push edx
mov byte [esp + 0x54], 7
mov dword [esp + 0x24], 4
call fcn.004027c0
add esp, 0xc
mov ecx, esi
call fcn.00404dd0
jmp 0x4091ce
xor eax, eax
mov dword [esp + 0x4c], eax
push 0x44b444
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x44], 8
call fcn.0042a1fa
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov dword [esp + 0x3c], 0xffffffff
mov dword [esp + 0x20], vtable.CFileException.0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409219
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x34
ret
Function at 0x409450
Capabilities:
Copy file
Delete file
Move file
Set file attributes

Disassembly:
cmp byte [esp + 0xc], 0
push ebp
mov ebp, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
je 0x40946d
push 0
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x409475
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x40947e
pop esi
mov al, 1
pop ebp
ret
push edi
xor edi, edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp byte [esp + 0x1c], 0
je 0x4094af
push 0
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x4094b7
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x4094fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push ebp
push 0x442b44
mov ebx, eax
call fcn.00408cc0
add edi, 0x1f4
add esp, 0xc
cmp edi, 0x7d0
jl 0x409482
push 0x442b34
call fcn.00408cc0
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebx
pop edi
pop esi
xor al, al
pop ebp
ret
pop ebx
pop edi
pop esi
mov al, 1
pop ebp
ret

Function at 0x409510
Capabilities:
Check if file exists
Delete file
Set file attributes

Disassembly:
push ebp
push edi
mov edi, dword [esp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x409599
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
cmp eax, 2
je 0x409599
push esi
xor esi, esi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x409592
call ebp
cmp eax, 2
je 0x409592
call ebp
push edi
push 0x442b64
mov ebx, eax
call fcn.00408cc0
add esi, 0x1f4
add esp, 8
cmp esi, 0x7d0
jl 0x409532
push 0x442b34
call fcn.00408cc0
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebx
pop esi
pop edi
xor al, al
pop ebp
ret
pop ebx
pop esi
pop edi
mov al, 1
pop ebp
ret
pop edi
mov al, 1
pop ebp
ret
Function at 0x4096d0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x43eb48
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x453d48]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
call fcn.00415084
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40970e
push 0x80004005
call fcn.00401060
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
lea ecx, [esp + 8]
push str..htm
push ecx
mov dword [esp + 0x20], 0
call fcn.00408e00
add esp, 8
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], 1
call fcn.00403be0
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov byte [esp + 0x18], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40976c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0xc]
cmp dword [esi - 0xc], 0
je 0x4097e9
call fcn.00415084
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x409790
push 0x80004005
call fcn.00401060
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 8], eax
push 1
lea ecx, [esp + 0x24]
push ecx
push esi
lea edx, [esp + 0x14]
push edx
mov byte [esp + 0x28], 2
call fcn.0041b12a
mov eax, dword [esp + 8]
push 5
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov byte [esp + 0x18], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4097e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40980d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
Function at 0x411b89
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x411bd0
call fcn.004194c6
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x411bd0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x411bec
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00411703
mov esi, eax
test edi, edi
je 0x411bea
test ebx, ebx
je 0x411bea
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4123e0
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x43ef4f
call fcn.0042adac
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x412405
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x41244b
lea ecx, [ebp - 0x10]
call fcn.004012c0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00411c1f
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401080
mov eax, esi
call fcn.0042ae84
ret 8
Function at 0x412cf8
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x453d48]
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 0x412d96
push 0x443dd4
push 4
push eax
call fcn.0042cc7b
push eax
call fcn.00411bf3
add esp, 0x10
push ebx
push edi
call fcn.0042c8dd
mov edi, dword [eax]
call fcn.0042c8dd
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.0042a536
add esp, 0x18
mov dword [ebp - 0x11c], eax
call fcn.0042c8dd
cmp dword [eax], ebx
je 0x412dad
call fcn.0042c8dd
push dword [eax]
call fcn.0040c63b
pop ecx
jmp 0x412db4
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x412d3e
jmp 0x412e3b
call fcn.0042c8dd
mov dword [eax], edi
cmp dword [ebp - 0x11c], 0xffffffff
je 0x412e37
cmp dword [ebp - 0x11c], esi
jae 0x412e37
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.0042a560
add esp, 0xc
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x412e26
push str.FindActCtxSectionStringA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x412e26
lea ecx, [ebp - 0x160]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x412e26
push ebx
push ebx
push esi
jmp 0x412e2f
push ebx
push ebx
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x412e39
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042997e
leave
ret

Function at 0x41678c
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 0x4167b0
cmp dword [edi + 0x54], 0
jne 0x4167b0
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.004194c6
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.0041674d
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 0x416cbc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x416d04
call fcn.004194c6
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x416d04
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x416d47
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x416d30
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x416d30
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x416d44
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x42997e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x453d48]
jne 0x429988
repz ret
jmp fcn.0043322c