joyce8/EMBER2024-capa huggingface dataset:
Function at 0xac0cd0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x587000]
push edi
or ebp, 0xffffffff
jmp 0xac0cf2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xac0cf9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xac0ce8
mov eax, 1
add ebx, ebx
jne 0xac0d0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xac0d1c
jne 0xac0d3b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xac0d3b
dec eax
add ebx, ebx
jne 0xac0d28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xac0d00
add ebx, ebx
jne 0xac0d37
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xac0d8d
xor ecx, ecx
sub eax, 3
jb 0xac0d53
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xac0dc2
sar eax, 1
mov ebp, eax
jmp 0xac0d5e
add ebx, ebx
jne 0xac0d5e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xac0d2c
inc ecx
add ebx, ebx
jne 0xac0d6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xac0d2c
add ebx, ebx
jne 0xac0d79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xac0d6e
jne 0xac0d8a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xac0d6e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xac0dac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xac0d9e
jmp 0xac0cee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xac0dac
add edi, ecx
jmp 0xac0cee
pop esi
mov edi, esi
mov ecx, 0x68743a
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0xac0de7
cmp byte [edi], 0x23
jne 0xac0dcc
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0xac0dca
lea edi, [esi + 0x6be000]
mov eax, dword [edi]
or eax, eax
je 0xac0e38
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x6c0bd0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x6c0c0c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xac0ded
mov ecx, edi
jns 0xac0e1c
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x6c0c10]
or eax, eax
je 0xac0e32
mov dword [ebx], eax
add ebx, 4
jmp 0xac0e0a
call dword [esi + 0x6c0c20]
mov ebp, dword [esi + 0x6c0c14]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1df]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xac0e6c
sub esp, 0xffffff80
jmp 0x4115c8
Function at 0x401933
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
mov eax, 0x42683f
call fcn.004256c0
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x14]
mov byte [esi], bl
mov byte [esi + 1], bl
mov byte [esi + 2], bl
mov byte [esi + 3], bl
mov byte [esi + 4], bl
mov byte [esi + 5], bl
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
call fcn.004032ae
lea ecx, [esi + 0x20]
mov dword [ebp - 4], ebx
call fcn.0040198c
lea ecx, [esi + 0x30]
call fcn.004032ae
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x405386
Capabilities:
Set file attributes

Disassembly:
push edx
push ecx
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
test eax, eax
setne al
ret

Function at 0x405512
Capabilities:
Create directory

Disassembly:
mov eax, 0x426bd0
call fcn.004256c0
sub esp, 0x38
push ebx
push esi
xor ebx, ebx
mov esi, ecx
push ebx
push esi
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
je 0x405535
mov al, 1
jmp 0x40557b
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0xb7
je 0x405546
xor al, al
jmp 0x40557b
lea ecx, [ebp - 0x44]
call fcn.0040573f
lea ecx, [ebp - 0x1c]
call fcn.004032ae
push ebx
push esi
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], ebx
call fcn.0040598d
test al, al
je 0x405570
mov ebx, dword [ebp - 0x24]
shr ebx, 4
and bl, 1
push dword [ebp - 0x1c]
call fcn.00403a73
pop ecx
mov al, bl
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

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

Disassembly:
push ecx
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40598c
or eax, eax
ret

Function at 0x406d48
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x406d57
pop dword [ebp - 0x48]
mov eax, 0x406d57
sub dword [ebp - 0x48], eax
push 0x40
push 0x1000
push 0x3929e
push 0
mov eax, 0xfc0254a4
add eax, 0x4403b88
add eax, dword [ebp - 0x48]
call dword [eax]
mov ecx, 0x7f76b19
sub ecx, 0x7f72284
xor edx, edx
add edx, eax
mov ebx, 0x2bb613f5
add ebx, 0xd48d5a0b
add ebx, dword [ebp - 0x48]
mov edi, 0x74902eb6
add edi, 0xbfa08e2c
xor dword [ebp - 0x24], ebx
mov esi, dword [ebx]
xor dword [ebp - 0x20], 0xa42acf3f
add esi, edi
sub dword [ebp - 0x34], 0xbcd5475b
mov dword [edx], esi
sub dword [ebp - 0x24], esi
add edx, 0xb3e3c080
add edx, 0x4c1c3f84
add ebx, 4
loop 0x406db3
add eax, 0x11527
mov ebx, eax
add eax, 0x77a64fc7
add eax, 0x8859b03e
mov ecx, 0x98fec15
sub ecx, 0x94fec15
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x425a8c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42bb98
push 0x425a86
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x43466c], 0xffffffff
or dword [0x434670], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x432650]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x43264c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x434668], eax
call fcn.00425bcf
cmp dword [0x430240], 0
jne 0x425b0f
push 0x425bcc
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.00425bba
push 0x430064
push 0x430060
call sub.msvcrt.dll__initterm
mov eax, dword [0x432648]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x432644]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
push 0x43005c
push section..data
call sub.msvcrt.dll__initterm
call dword [sym.imp.msvcrt.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.00411c13
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x100034f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x28
mov dword [ebp - 0x14], 0x64
mov esi, dword [ebp + 8]
test byte [0x1000a06c], 8
jne 0x10003638
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
cmp esi, 1
je 0x10003548
mov ebx, 0x80004001
cmp esi, 2
je 0x10003536
mov ebx, 0x80070057
mov edi, str.Start_Page
test esi, esi
je 0x1000354d
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 8
mov edi, str.Search_Page
lea eax, [ebp - 0x10]
mov dword [esp + 4], str.SoftwareMicrosoftInternet_ExplorerMain
mov dword [esp + 8], eax
mov dword [esp], 0x80000001
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x100035a0
test byte [0x1000a06c], 4
jne 0x10003670
movzx eax, bx
or eax, 0x80070000
test ebx, ebx
cmovg ebx, eax
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 8
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x18]
sub esp, 4
mov esi, eax
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x14], ecx
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [ebp - 0x1c], eax
call eax
mov ebx, eax
mov eax, dword [ebp - 0x14]
sub esp, 0x18
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.ole32.dll_CoTaskMemRealloc]
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x14]
sub esp, 8
cmp ebx, 0xea
mov esi, eax
je 0x100036c0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
test ebx, ebx
jne 0x100036a0
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [eax], esi
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.__lu__p__n
mov dword [esp + 0x14], eax
mov dword [esp + 8], str.HlinkGetSpecialReference
mov dword [esp + 4], 0x1000a06c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x10003510
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Could_not_open_key:__lu_n
mov dword [esp + 8], str.HlinkGetSpecialReference
mov dword [esp + 4], 0x1000a06c
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_2
jmp 0x1000357f
test byte [0x1000a06c], 4
jne 0x100036f0
mov dword [esp], esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
sub esp, 4
jmp 0x1000357f
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x14], ecx
mov dword [esp], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], edi
call eax
sub esp, 0x18
mov ebx, eax
jmp 0x1000360b
mov eax, edi
call sym._wine_dbgstr_wn.constprop.0_2
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Could_not_query_value__s:__lu_n
mov dword [esp + 8], str.HlinkGetSpecialReference
mov dword [esp + 4], 0x1000a06c
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_2
jmp 0x100036a9
Function at 0x100079e0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x214
mov eax, dword [0x1000a168]
test eax, eax
je 0x10007a98
mov dword [esp], ebx
call eax
mov dword [ebx + 8], eax
sub esp, 4
test eax, eax
jns 0x10007a20
mov eax, dword [ebx]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [ebp - 0x214]
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.MODULE
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], str.SystemRoot
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.SystemRoot
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
jmp 0x10007a0c
mov dword [esp], str.atl100.dll
call dword [sym.imp.kernel32.dll_LoadLibraryW]
sub esp, 4
test eax, eax
je 0x10007acd
mov dword [esp + 4], str.AtlCreateRegistrar
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x1000a168], eax
sub esp, 8
test eax, eax
jne 0x100079fd
mov dword [ebx + 8], 0x80004002
xor eax, eax
jmp 0x10007a0e
Function at 0x10008340
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x10008398
cmp byte [esi + ebx - 1], 0xa
je 0x1000836c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x1000a17c], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x100085a0
Capabilities:
Access peb ldr_data
Extract resource via kernel32 functions
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x28
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindResourceW]
sub esp, 0xc
mov edi, eax
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LoadResource]
mov ebx, eax
mov eax, dword [ebp + 8]
sub esp, 8
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SizeofResource]
mov dword [ebp - 0x10], eax
sub esp, 8
test ebx, ebx
je 0x10008730
mov edi, dword [esi]
test edi, edi
je 0x10008718
mov edx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], ebx
mov dword [esp + 0x14], 0
mov dword [ebp - 0x1c], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call edx
lea ecx, [eax + 1]
sub esp, 0x18
lea eax, [ecx + ecx]
mov dword [ebp - 0x18], ecx
mov ecx, eax
mov dword [esp + 4], 0
mov dword [esp + 8], ecx
mov dword [ebp - 0x14], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
sub esp, 0xc
test eax, eax
mov edi, eax
je 0x1000873c
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [esi + 4]
xor edx, edx
sub esp, 0x18
mov word [edi + eax - 2], dx
mov eax, dword [esi]
test ecx, ecx
mov edx, dword [eax]
mov dword [esp + 4], edi
mov dword [esp], eax
jne 0x10008708
call dword [edx + 0x28]
mov dword [esi + 8], eax
sub esp, 8
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esi + 8]
sub esp, 0xc
lea esp, [ebp - 0xc]
not eax
pop ebx
pop esi
shr eax, 0x1f
pop edi
pop ebp
ret 0x10
call dword [edx + 0x24]
mov dword [esi + 8], eax
sub esp, 8
jmp 0x100086ce
mov eax, dword [ebp + 8]
mov edx, esi
call sym._create_registrar
test eax, eax
jne 0x10008608
lea esi, [esi]
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov dword [esi + 8], 0x8007000e
xor eax, eax
jmp 0x10008732
Function at 0x4026d0
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push esi
push edi
mov edi, eax
mov esi, ebx
mov dword [0x40a0b8], eax
mov dword [0x40935c], edx
call fcn.00403d00
xor eax, eax
mov dword [0x40a6dc], eax
call dword [sym.imp.KERNEL32.DLL_GetVersion]
mov edx, eax
mov byte [0x4093b1], al
shr eax, 0x10
mov word [0x4093b3], ax
xor eax, eax
mov ax, word [0x4093b3]
and edx, 0xffff
mov dword [0x4093b5], eax
xor eax, eax
sar edx, 8
mov al, byte [0x4093b1]
and edx, 0xff
mov dword [0x4093b9], eax
xor eax, eax
mov al, dl
mov byte [0x4093b2], dl
mov dword [0x4093bd], eax
mov eax, dword [0x4093b9]
mov edx, dword [0x4093bd]
shl eax, 8
or eax, edx
mov dword [0x4093c1], eax
cmp byte [0x4093b1], 4
jae 0x4027f7
mov eax, 0x402668
push eax
xor edx, edx
push 0x402695
mov dword [0x4093ad], edx
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov edx, eax
test eax, eax
je 0x40278a
call edx
mov dword [0x4093ad], eax
push 0x104
push 0x40a0bc
push 0
mov ebx, 0x208
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
mov edx, 0x40a1c0
xor eax, eax
mov dword [0x40937c], 0x40a0bc
call fcn.00404740
mov dword [0x409388], 0x40a1c0
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
call fcn.004047e0
mov edx, eax
mov bl, byte [eax]
mov dword [0x40a0b0], eax
cmp bl, 0x22
je 0x402801
xor edx, edx
mov dl, byte [eax]
test byte [edx + 0x404821], 2
je 0x402819
xor edx, edx
mov dl, byte [eax]
test byte [edx + 0x404821], 2
je 0x402820
inc eax
jmp 0x4027e7
mov eax, 0x40267e
jmp 0x402762
inc eax
cmp bl, byte [eax]
je 0x402811
cmp byte [eax], 0
je 0x402811
inc eax
cmp byte [eax], 0x22
jne 0x402806
cmp byte [eax], 0
je 0x4027e7
inc eax
jmp 0x4027e7
test dl, dl
je 0x4027e7
inc eax
jmp 0x4027da
mov dword [0x409378], eax
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
test eax, eax
je 0x402896
call fcn.00404921
mov edx, eax
mov bx, word [eax]
mov dword [0x40a0b4], eax
cmp bx, 0x22
je 0x402869
xor eax, eax
mov ax, word [edx]
call fcn.00404948
test eax, eax
je 0x40288b
xor eax, eax
mov ax, word [edx]
call fcn.00404948
test eax, eax
je 0x40289b
add edx, 2
jmp 0x402856
lea edx, [eax + 2]
cmp bx, word [edx]
je 0x402880
cmp word [edx], 0
je 0x402880
add edx, 2
cmp word [edx], 0x22
jne 0x402871
cmp word [edx], 0
je 0x402856
add edx, 2
jmp 0x402856
cmp word [edx], 0
je 0x402856
add edx, 2
jmp 0x402848
mov edx, 0x4026a2
mov dword [0x409384], edx
test edi, edi
jne 0x4028ae
mov eax, 1
pop edi
pop esi
pop ecx
ret
push 0x104
push 0x40a3c8
push esi
mov ebx, 0x208
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
mov edx, 0x40a4cc
mov eax, esi
mov dword [0x409380], 0x40a3c8
call fcn.00404740
mov dword [0x40938c], 0x40a4cc
mov eax, 1
pop edi
pop esi
pop ecx
ret

Function at 0x404220
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push edx
push 0x40
push 0x1000
mov edx, dword [eax]
push edx
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
pop edx
pop ecx
ret
Function at 0x404b30
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
push edi
push ebp
sub esp, 8
mov esi, eax
mov ebp, edx
mov edi, ebx
test eax, eax
jl 0x404bc4
cmp eax, dword [0x4093ec]
jae 0x404bc4
call fcn.00403c30
mov edx, eax
mov dword [esp + 4], eax
mov eax, esi
xor ebx, ebx
call fcn.00404f70
test al, 0x80
je 0x404b88
mov eax, esi
call dword [0x40931c]
push 2
push 0
push 0
push edx
mov ebx, 1
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
cmp eax, 0xffffffff
je 0x404bd8
push 0
lea eax, [esp + 4]
push eax
push edi
push ebp
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x404be2
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
cmp ebx, 1
jne 0x404bb5
mov eax, esi
call dword [0x409320]
mov eax, edx
call fcn.00405ff0
add esp, 8
pop ebp
pop edi
pop esi
pop ecx
ret
call dword [0x409360]
mov dword [eax + 4], 4
mov eax, 0xffffffff
jmp 0x404bbc
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
jmp 0x404bad
cmp edi, dword [esp]
je 0x404bf4
call dword [0x409360]
mov dword [eax + 4], 0xc
cmp ebx, 1
jne 0x404c01
mov eax, esi
call dword [0x409320]
mov eax, dword [esp]
add esp, 8
pop ebp
pop edi
pop esi
pop ecx
ret

Function at 0x405ef0
Capabilities:
Terminate process

Disassembly:
push edx
push ebp
mov ebp, esp
mov eax, dword [0x409398]
add eax, 3
and al, 0xfc
mov edx, dword [0x409398]
sub esp, eax
mov eax, esp
add eax, edx
mov dword [0x40939c], eax
call fcn.00406790
mov edx, dword [0x40a804]
mov eax, dword [0x40a800]
call fcn.00401a98
jmp 0x406792
mov ecx, eax
call dword [0x409564]
cmp dword [0x40a0b8], 0
je 0x4067cf
cmp dword [0x409358], 0
je 0x4067bc
mov edx, 0xff
mov eax, 0x10
call dword [0x409358]
call dword [0x409564]
call dword [0x409568]
mov eax, ecx
jmp fcn.004029d0
mov edx, 0xff
mov eax, 0x10
call fcn.00404a40
jmp 0x4067bc
Function at 0x405055
Capabilities:
Reference sql statements

Disassembly:
push 0x18
mov eax, 0x4362af
call fcn.0041f6af
xor edi, edi
lea ecx, [ebp - 0x18]
push str.SELECT_Value_FROM_Property_WHERE_Property.Property
mov dword [ebp - 0x24], edi
call fcn.0040188e
mov esi, 0x439e28
mov dword [ebp - 4], edi
push esi
lea ecx, [ebp - 0x18]
call fcn.00403cdb
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x18]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.00403d04
push esi
lea ecx, [ebp - 0x18]
call fcn.00403cdb
mov dword [ebp - 0x10], edi
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 2
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x14], edi
push dword [ebp + 0xc]
call fcn.00408fca
test eax, eax
je 0x4050f8
call fcn.00409b0d
mov ecx, dword [ebp + 8]
push eax
call fcn.00401210
cmp dword [ebp - 0x10], 0
je 0x4050d7
push dword [ebp - 0x10]
call fcn.00408fb2
cmp dword [ebp - 0x14], 0
je 0x4050e5
push dword [ebp - 0x14]
call fcn.00408fb2
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00401797
mov eax, dword [ebp + 8]
jmp 0x4051c8
push edi
push dword [ebp - 0x14]
call fcn.00408fd0
test eax, eax
jne 0x4050bb
cmp dword [ebp - 0x10], eax
je 0x405112
push dword [ebp - 0x10]
call fcn.00408fb2
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], edi
push eax
push dword [ebp - 0x14]
call fcn.00408fd6
test eax, eax
jne 0x4050bb
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], edi
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], edi
push eax
push 1
push dword [ebp - 0x10]
call fcn.00408fe2
cmp dword [ebp - 0x1c], 0
je 0x4050bb
call fcn.00409b0d
push eax
lea ecx, [ebp + 0x10]
call fcn.00401210
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp + 0x10]
inc eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x1c], eax
inc eax
push eax
call fcn.0040171f
lea ecx, [ebp - 0x1c]
push ecx
push eax
push 1
push dword [ebp - 0x10]
call fcn.00408fe2
push 0xffffffffffffffff
lea ecx, [ebp + 0x10]
call fcn.004017b3
mov esi, dword [ebp + 0x10]
add esi, 0xfffffff0
push esi
call fcn.004012f5
mov edi, dword [ebp + 8]
add eax, 0x10
pop ecx
mov ecx, esi
mov dword [edi], eax
call fcn.00401797
cmp dword [ebp - 0x10], 0
je 0x4051ad
push dword [ebp - 0x10]
call fcn.00408fb2
cmp dword [ebp - 0x14], 0
je 0x4051bb
push dword [ebp - 0x14]
call fcn.00408fb2
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00401797
mov eax, edi
call fcn.0041f67d
ret 0xc