joyce8/EMBER2024-capa huggingface dataset:
Function at 0x448d40
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4859d3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00478d74
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0047e40a
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0047fa20
test eax, eax
je 0x448e5c
mov ecx, dword [esp + 0x3c]
call fcn.0047e437
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x448e20
push edi
mov ecx, esi
call fcn.0047ba9b
mov ecx, esi
call fcn.00449000
cmp dword [esp + 0x38], 1
jne 0x448e55
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0047bbd6
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x44b050
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x44b083
push esi
call fcn.004593f0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44b07c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x44b109
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x44b0f2
mov eax, dword [esi + 8]
test eax, eax
je 0x44b0a7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44b0ee
cmp eax, 2
je 0x44b0f2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44b09a
cmp eax, 3
je 0x44b0cd
cmp eax, 1
jne 0x44b09a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44b09a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44b09a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0044b130
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x44b118
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0044b130
add esp, 4
pop esi
ret

Function at 0x44b9a0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x44b9c1
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x44b9c1
mov eax, dword [eax + 0x44]
test eax, eax
je 0x44b9c1
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x479b6a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x479ba2
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00477c1e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00477bf6
jmp 0x479bae
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x47b258
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x47b29a
call fcn.00480e0c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x47b29a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x47b291
xor eax, eax
jmp 0x47b2a2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047b2a8
pop edi
pop esi
pop ebx
ret 4
Function at 0x48133c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x48136a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x481388
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004812a2
jmp 0x481388
mov eax, dword [esi + 0x14]
test eax, eax
je 0x481388
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004812a2
test edi, edi
mov eax, edi
jne 0x481372
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x1001221
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x10010b8
call fcn.0100140c
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x100125e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100125e
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1001276
cmp eax, 0x20b
je 0x1001263
mov dword [ebp - 0x1c], ebx
jmp 0x100128a
cmp dword [ecx + 0x84], 0xe
jbe 0x100125e
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x1001284
cmp dword [ecx + 0x74], 0xe
jbe 0x100125e
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1002014], 0xffffffff
or dword [0x1002018], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1002010]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100200c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x100201c], eax
call fcn.01001406
cmp dword [section..data], ebx
jne 0x10012e5
push fcn.01001406
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.010013f4
push 0x1001080
push 0x100107c
call sub.msvcrt.dll__initterm
mov eax, dword [0x1002008]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x1002004]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x1001078
push 0x1001074
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x34], esi
cmp byte [esi], 0x22
jne 0x100137b
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x100134f
cmp al, 0x22
jne 0x1001341
cmp byte [esi], 0x22
jne 0x1001358
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x1001362
cmp al, 0x20
jbe 0x1001354
mov dword [ebp - 0x4c], ebx
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x4c], 1
je 0x1001386
movzx eax, word [ebp - 0x48]
jmp 0x1001389
cmp byte [esi], 0x20
jbe 0x1001358
inc esi
mov dword [ebp - 0x34], esi
jmp 0x100137b
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x10013a6
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x10013db
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01001445
ret

Function at 0x7a6dd8
Capabilities:
Encode data using xor

Disassembly:
jmp 0x7a6de2
pushal
call 0x7a6de8
pop ebp
sub ebp, 0x10
sub ebp, 0x3a6dd8
jmp 0x7a6dfe
mov eax, 0x3a6dd8
add eax, ebp
add eax, 0x4c
mov ecx, 0x605
mov edx, 0xc7f6f40e
xor byte [eax], dl
inc eax
dec ecx
jne 0x7a6e15
jmp 0x7a6e28
test ebx, eax
test dword [edi + 0xe0e0e32], eax
invalid
Function at 0x6a910058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.6a9101a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x6a91007e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x6a91006a
add dl, dl
jne 0x6a910089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x6a9100dc
xor eax, eax
add dl, dl
jne 0x6a910096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x6a91017d
add dl, dl
jne 0x6a9100a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x6a9100b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x6a9100bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x6a9100c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x6a9100d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x6a910075
mov eax, 1
add dl, dl
jne 0x6a9100ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x6a9100f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x6a9100e1
sub eax, ebx
mov ebx, 1
jne 0x6a910128
mov ecx, 1
add dl, dl
jne 0x6a91010e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x6a910119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x6a910105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x6a910075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x6a91013f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x6a91014a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x6a910136
cmp eax, 0x7d00
jae 0x6a91016d
cmp eax, 0x500
jb 0x6a910168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x6a910075
cmp eax, 0x7f
ja 0x6a910170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x6a910075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x6a91019e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x6a910075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
test ebp, ebp
jge 0x40100d
mov eax, ebp
pop ebp
ret
jle 0x40103e
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
sub esi, ecx
mov edi, ebp
lea ebx, [ebx]
imul edx, edx, 0x343fd
add edx, 0x269ec3
mov ebx, edx
shr ebx, 0x10
xor bl, byte [esi + ecx]
inc ecx
dec edi
mov byte [ecx - 1], bl
jne 0x401020
pop edi
pop esi
pop ebx
test eax, eax
je 0x401044
mov dword [eax], ebp
xor eax, eax
pop ebp
ret

Function at 0x401050
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4010e1
push str.DbgUiRemoteBreakin
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4010e1
lea eax, [0x4010be]
lea ecx, [0x4010c6]
sub ecx, eax
mov dword [ebp - 0xc], ecx
lea ecx, [ebp - 8]
push ecx
push 0x40
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x4010e1
mov edi, dword [ebp - 0x10]
lea esi, [0x4010be]
mov ecx, dword [ebp - 0xc]
rep movsb byte es:[edi], byte [esi]
jmp 0x4010dd
mov al, 1
jmp 0x4010e3
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4027d0
Capabilities:
Access peb ldr_data
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x40a700
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [0x40d0f0]
push ebx
mov dword [esp + 0x20], eax
push edi
push str.update.dll
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x10]
xor ebx, ebx
push ecx
mov dword [esp + 0x3c], ebx
call fcn.00402720
add esp, 0xc
mov eax, dword [esp + 0x20]
mov edi, 0x10
cmp eax, edi
mov eax, dword [esp + 0xc]
mov byte [esp + 0x30], 1
jae 0x40282a
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
jne 0x40283b
push ebx
call fcn.004046e7
push str.CreateDebManager
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
jne 0x402885
cmp dword [esp + 0x20], edi
jb 0x40285e
mov edx, dword [esp + 0xc]
push edx
call fcn.0040406d
add esp, 4
cmp dword [esp + 0x50], edi
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], ebx
mov byte [esp + 0xc], bl
jb 0x402881
mov eax, dword [esp + 0x3c]
push eax
call fcn.0040406d
add esp, 4
xor eax, eax
jmp 0x4028c3
push esi
call eax
mov esi, eax
cmp dword [esp + 0x24], edi
jb 0x40289d
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0040406d
add esp, 4
cmp dword [esp + 0x54], edi
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], ebx
mov byte [esp + 0x10], bl
jb 0x4028c0
mov edx, dword [esp + 0x40]
push edx
call fcn.0040406d
add esp, 4
mov eax, esi
pop esi
mov ecx, dword [esp + 0x28]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x20]
pop ebx
call fcn.004040a3
add esp, 0x2c
ret

Function at 0x4028e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40a71b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
mov eax, dword [0x40d0f0]
push ebx
xor ebx, ebx
mov dword [esp + 0x12c], eax
push esi
mov dword [esp + 0xc], ebx
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
push 0x104
lea eax, [esp + 0x30]
push eax
push ebx
mov dword [esp + 0x148], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x2c]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402940
sub eax, edx
push eax
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x18]
call fcn.00401d80
push 1
push 0xffffffffffffffff
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14], 0x5c
call fcn.00401210
cmp eax, 0xffffffff
mov esi, dword [esp + 0x144]
je 0x402995
push eax
push ebx
push esi
lea ecx, [esp + 0x1c]
call fcn.004026e0
cmp dword [esp + 0x28], 0x10
jb 0x4029c5
mov eax, dword [esp + 0x14]
push eax
jmp 0x4029bd
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x18]
push ecx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.004019b0
cmp dword [esp + 0x28], 0x10
jb 0x4029c5
mov edx, dword [esp + 0x14]
push edx
call fcn.0040406d
add esp, 4
mov ecx, dword [esp + 0x134]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x12c]
pop ebx
call fcn.004040a3
add esp, 0x138
ret
Function at 0x4031f0
Capabilities:
Access peb ldr_data
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40a7bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x83c
mov eax, dword [0x40d0f0]
push esi
push edi
mov dword [esp + 0x83c], eax
xor esi, esi
xor eax, eax
mov word [esp + 0x30], si
mov ecx, 0x200
lea edi, [esp + 0x32]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 0xc]
push eax
push 0x20019
push esi
push str.SOFTWAREApple_Inc.Apple_Application_Support
push 0x80000002
mov dword [esp + 0x20], esi
call edi
test eax, eax
je 0x403277
lea ecx, [esp + 0xc]
push ecx
push 0x20019
push esi
push str.SOFTWAREApple_Inc.Apple_Application_Support
push 0x80000001
call edi
test eax, eax
jne 0x40333e
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x34]
push eax
push esi
push esi
push str.InstallDir
push ecx
mov dword [esp + 0x28], 0x802
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4032af
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40333e
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], esi
mov word [esp + 0x1c], si
call fcn.00403c5d
add esp, 4
push eax
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x1c]
call fcn.004021d0
push str.SQLite3.dll
mov dword [esp + 0x850], esi
call fcn.00403c5d
add esp, 4
push eax
push str.SQLite3.dll
lea ecx, [esp + 0x1c]
call fcn.004020b0
mov eax, dword [esp + 0x2c]
mov esi, 8
cmp eax, esi
mov eax, dword [esp + 0x18]
jae 0x40331f
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x40e560], eax
cmp dword [esp + 0x2c], esi
jb 0x40333e
mov eax, dword [esp + 0x18]
push eax
call fcn.0040406d
add esp, 4
mov ecx, dword [esp + 0x844]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x83c]
call fcn.004040a3
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4036a0
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40a6d8
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4036c5
sub ecx, esi
push ecx
push eax
mov ecx, 0x40d040
call fcn.00401d80
mov eax, dword [0x40d058]
mov esi, 0x10
cmp eax, esi
mov eax, dword [0x40d044]
jae 0x4036f2
mov eax, 0x40d044
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIA]
push str._crypt
push eax
call edi
test eax, eax
je 0x40375d
lea eax, [esp + 8]
push 0x40d040
push eax
call fcn.004029f0
add esp, 8
push 0xffffffffffffffff
push 0
push eax
mov ecx, 0x40d040
mov dword [esp + 0x38], 0
call fcn.004019b0
cmp dword [esp + 0x20], esi
mov dword [esp + 0x2c], 0xffffffff
jb 0x403748
mov ecx, dword [esp + 0xc]
push ecx
call fcn.0040406d
add esp, 4
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], 0
mov byte [esp + 0xc], 0
cmp dword [0x40d058], esi
mov eax, dword [0x40d044]
jae 0x40376f
mov eax, 0x40d044
push str._newmodel
push eax
mov dword [0x40d7c0], eax
call edi
test eax, eax
pop edi
pop esi
je 0x4037b7
mov edx, dword [esp + 0x38]
mov eax, dword [0x40d7c0]
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x30]
push eax
push ecx
push edx
mov dword [0x40d95c], 1
call fcn.00403360
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 0x10
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x28
ret 0x10

Function at 0x404626
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x40e5c8], esi
push edi
jne 0x404646
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x40e5c4], esi
mov byte [0x40e5c0], al
jne 0x4046ac
mov ecx, dword [0x40fc6c]
test ecx, ecx
je 0x40468d
mov eax, dword [0x40fc68]
sub eax, 4
cmp eax, ecx
jmp 0x404686
mov eax, dword [eax]
test eax, eax
je 0x404678
call eax
mov eax, dword [0x40fc68]
sub eax, 4
cmp eax, dword [0x40fc6c]
mov dword [0x40fc68], eax
jae 0x404670
mov eax, 0x40d028
mov esi, 0x40d030
cmp eax, esi
mov edi, eax
jae 0x4046ac
mov eax, dword [edi]
test eax, eax
je 0x4046a5
call eax
add edi, 4
cmp edi, esi
jb 0x40469d
mov eax, 0x40d034
mov esi, 0x40d03c
cmp eax, esi
mov edi, eax
jae 0x4046cb
mov eax, dword [edi]
test eax, eax
je 0x4046c4
call eax
add edi, 4
cmp edi, esi
jb 0x4046bc
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x4046e5
push dword [ebp + 8]
mov dword [0x40e5c8], 1
call fcn.0040458c
pop ebp
ret
Function at 0x4049bd
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x40b368
call fcn.00405320
mov edi, 0x94
mov eax, edi
call fcn.004079f0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x40e588], ecx
mov eax, dword [esi + 4]
mov dword [0x40e594], eax
mov edx, dword [esi + 8]
mov dword [0x40e598], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x40e58c], esi
cmp ecx, 2
je 0x404a1d
or esi, 0x8000
mov dword [0x40e58c], esi
shl eax, 8
add eax, edx
mov dword [0x40e590], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x404a58
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x404a58
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x404a70
cmp eax, 0x20b
je 0x404a5d
mov dword [ebp - 0x1c], esi
jmp 0x404a84
cmp dword [ecx + 0x84], 0xe
jbe 0x404a58
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x404a7e
cmp dword [ecx + 0x74], 0xe
jbe 0x404a58
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.0040799b
pop ecx
test eax, eax
jne 0x404ab0
cmp dword [0x40e5d4], 1
jne 0x404a9d
call fcn.00407114
push 0x1c
call fcn.00406f9d
push 0xff
call fcn.0040458c
pop ecx
pop ecx
call fcn.00405dfa
mov dword [ebp - 4], esi
call fcn.004077d6
test eax, eax
jge 0x404ac9
push 0x1b
call fcn.00404998
pop ecx
call fcn.00407737
mov dword [0x40fc60], eax
call fcn.004075cd
mov dword [0x40e5d0], eax
call fcn.00407537
test eax, eax
jge 0x404aee
push 8
call fcn.00404998
pop ecx
call fcn.00407304
test eax, eax
jge 0x404aff
push 9
call fcn.00404998
pop ecx
push 1
call fcn.004045bc
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x404b15
push eax
call fcn.00404998
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call fcn.004072be
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x404b36
movzx eax, word [ebp - 0x40]
jmp 0x404b39
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004036a0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x404b57
push edi
call fcn.004046e7
call fcn.00404709
jmp 0x404b89
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040535b
ret
Function at 0x406f9d
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x40d0f0]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x40d158]
je 0x406fd2
inc eax
cmp eax, 0x13
jb 0x406fc3
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x40d158]
jne 0x4070f8
mov eax, dword [0x40e5d4]
cmp eax, 1
je 0x4070d0
cmp eax, edx
jne 0x407002
cmp dword [0x40d114], 1
je 0x4070d0
cmp ecx, 0xfc
je 0x4070f8
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407038
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004085e0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00404c40
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40706c
mov eax, edi
push eax
call fcn.00404c40
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x40b3d4
push edi
call fcn.00404840
add esp, 0x10
push edi
call fcn.00404c40
push dword [esi + 0x40d15c]
mov ebx, eax
call fcn.00404c40
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004079f0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004085e0
push edi
push ebx
call fcn.004085f0
push 0x40b3d0
push ebx
call fcn.004085f0
push dword [esi + 0x40d15c]
push ebx
call fcn.004085f0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004086d8
add esp, 0x2c
jmp 0x4070f8
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x40d15c]
push dword [esi]
call fcn.00404c40
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.004040a3
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret