joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000a11b
Capabilities:
Create thread

Disassembly:
mov eax, 0x10042b88
call fcn.10035ae0
sub esp, 0x20
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
xor edi, edi
or ah, 0x18
push edi
push edi
push edi
push eax
lea eax, [ebp - 0x1c]
push edi
push eax
mov esi, ecx
push dword [ebp + 8]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], 0x64
mov dword [ebp - 0x10], 0x16
call fcn.10014bb8
mov ecx, esi
call fcn.10013b5a
push 0xfffffffffffffff0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov ecx, eax
or ch, 0x10
cmp eax, ecx
je 0x1000a181
push ecx
push 0xfffffffffffffff0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov ecx, esi
call fcn.10008cf8
mov al, byte [ebp + 0xb]
push edi
lea ecx, [ebp - 0x2c]
mov dword [ebp + 0xc], edi
mov byte [ebp - 0x2c], al
call fcn.100149cc
mov ebx, str.ToolbarIsFailed
push ebx
call fcn.10035bc0
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x2c]
call fcn.10015611
lea eax, [ebp + 0xc]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.10002b8f
mov ebx, eax
pop ecx
neg ebx
pop ecx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x2c]
inc bl
call fcn.100149cc
test bl, bl
je 0x1000a205
push edi
push 0x64
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
push esi
push edi
push 0x100075c5
call fcn.100367a8
mov ecx, dword [esi + 0xb4]
add esp, 0xc
mov dword [ecx + 0x2b8], eax
push dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_GetParent]
call edi
push eax
call edi
push eax
lea ecx, [esi + 0xc0]
call fcn.100135ed
mov ebx, dword [esi + 4]
push ebx
call edi
test eax, eax
je 0x1000a22e
mov ebx, eax
push eax
jmp 0x1000a223
test ebx, ebx
je 0x1000a248
mov esi, dword [esi + 0xb4]
test esi, esi
je 0x1000a248
push esi
push 0
push ebx
call fcn.10001819
add esp, 0xc
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x1000aeb3
Capabilities:
Capture webcam image

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov ecx, dword [ebx + 0xc]
push edi
mov eax, dword [esi + 0x54]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
add eax, 4
push ecx
push 0x419
push dword [eax]
call edi
lea ecx, [ebp - 0x10]
push ecx
push eax
mov eax, dword [esi + 0x54]
push 0x41d
push dword [eax + 4]
call edi
lea eax, [ebp - 0x10]
push 2
push eax
mov eax, dword [esi + 0x54]
push 0
push dword [eax + 4]
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov ecx, dword [esi + 0x54]
mov eax, dword [ebx + 0xc]
push dword [ebp - 4]
mov edx, esi
mov ecx, dword [ecx + 0x18c]
add esi, 4
push dword [ebp - 0x10]
mov ecx, dword [ecx + 0x140]
neg edx
mov ecx, dword [ecx + eax*4 - 0x1000]
sbb edx, edx
mov eax, dword [ecx]
and edx, esi
push dword [edx]
call dword [eax + 0x20]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 4

Function at 0x1000cc16
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x10042f54
call fcn.10035ae0
sub esp, 0x3c
push esi
push edi
mov edi, ecx
push 0xffffffffffffffff
push str.about:blank
mov dword [ebp - 0x1c], edi
call fcn.1000b92e
pop ecx
mov dword [ebp - 0x10], eax
pop ecx
xor esi, esi
mov dword [ebp - 4], esi
mov word [ebp - 0x2c], si
mov dword [0x10059f5c], esi
mov eax, dword [edi + 0x288]
cmp eax, esi
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], esi
jne 0x1000cc73
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push dword [ebp - 0x10]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x1000cd07
lea edx, [ebp - 0x2c]
push ebx
push edx
lea edx, [ebp - 0x2c]
push edx
lea edx, [ebp - 0x2c]
mov ecx, dword [eax]
push edx
lea edx, [ebp - 0x2c]
push edx
push dword [ebp - 0x10]
push eax
call dword [ecx + 0x2c]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
call ebx
cmp edi, esi
mov dword [ebp - 0x18], eax
jl 0x1000ccf3
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
cmp dword [ebp - 0x14], 4
je 0x1000ccf3
call ebx
sub eax, dword [ebp - 0x18]
cmp eax, 0x2710
ja 0x1000ccf3
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push esi
push esi
lea eax, [ebp - 0x48]
push esi
push eax
call edi
test eax, eax
je 0x1000ccd9
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x1000ccbe
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x14]
push edx
mov eax, dword [eax + 0x288]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xe0]
test eax, eax
jge 0x1000cca4
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push dword [ebp - 0x10]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x1000fcdc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
push 1
mov ecx, dword [edi + 0xb4]
call fcn.1002f803
mov ebx, dword [ebp + 0x14]
and dword [ebx], 0
cmp dword [edi + 0x18c], 0
je 0x1000fde5
cmp dword [ebp + 0xc], 9
jne 0x1000fde5
call dword [sym.imp.USER32.dll_GetFocus]
push edi
lea ecx, [ebp - 0xc]
mov esi, eax
call fcn.1000854c
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 4]
jge 0x1000fd92
test eax, eax
jl 0x1000fd92
mov eax, dword [ebp - 8]
push esi
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
test al, al
jne 0x1000fd46
inc dword [ebp - 0xc]
add dword [ebp - 8], 4
jmp 0x1000fd22
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 0x80
je 0x1000fd5b
dec dword [ebp - 0xc]
sub dword [ebp - 8], 4
jmp 0x1000fd62
inc dword [ebp - 0xc]
add dword [ebp - 8], 4
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 4]
jge 0x1000fd7a
test eax, eax
jl 0x1000fd7a
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x30]
jmp 0x1000fd8a
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov dword [ebx], 1
jmp 0x1000fde5
push esi
mov esi, dword [sym.imp.USER32.dll_GetParent]
call esi
push eax
call esi
mov ebx, eax
push ebx
call esi
push dword [edi + 4]
mov dword [ebp + 0xc], eax
call esi
cmp eax, dword [ebp + 0xc]
jne 0x1000fde5
cmp ebx, dword [edi + 4]
je 0x1000fde5
mov edi, dword [edi + 0x18c]
mov eax, dword [edi + 0x160]
test eax, eax
je 0x1000fddc
mov ecx, dword [edi + 0x164]
sub ecx, eax
test ecx, 0xfffffffc
je 0x1000fddc
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x34]
mov eax, dword [ebp + 0x14]
mov dword [eax], 1
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10
Function at 0x10012288
Capabilities:
Delete directory
Delete file

Disassembly:
mov eax, 0x1004367b
call fcn.10035ae0
sub esp, 0x25c
push ebx
push esi
xor ebx, ebx
mov byte [ebp - 0x24], 0x5c
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
push 0x100551b4
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.10001065
lea eax, [ebp - 0x14]
lea ecx, [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 2
call fcn.10003fde
mov ecx, dword [eax]
mov byte [ebp - 4], 3
cmp ecx, ebx
je 0x100122df
call fcn.10002120
jmp 0x100122e1
xor eax, eax
push eax
lea ecx, [ebp - 0x268]
call fcn.10012587
mov ecx, dword [ebp - 0x10]
mov esi, eax
cmp ecx, ebx
je 0x100122fe
call fcn.1000110f
mov dword [ebp - 0x10], ebx
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 1
cmp ecx, ebx
je 0x1001230e
call fcn.1000110f
cmp esi, ebx
je 0x100123c3
lea ecx, [ebp - 0x268]
call fcn.10012628
lea ecx, [ebp - 0x268]
mov esi, eax
call fcn.10012552
test eax, eax
jne 0x1001230e
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x268]
push eax
call fcn.10012407
push dword [eax]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.10001065
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.10001a89
push 0x10
lea ecx, [ebp - 0x268]
call fcn.10012536
test eax, eax
je 0x10012390
push ecx
mov ecx, dword [ebp - 0x10]
mov eax, esp
mov dword [ebp - 0x18], esp
mov dword [eax], ecx
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x10012388
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
call fcn.10012288
pop ecx
jmp 0x100123a7
mov ecx, dword [ebp - 0x10]
cmp ecx, ebx
je 0x1001239e
call fcn.10002120
jmp 0x100123a0
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 1
cmp ecx, ebx
je 0x1001230e
call fcn.1000110f
mov dword [ebp - 0x10], ebx
jmp 0x1001230e
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], bl
call fcn.10012652
mov ecx, dword [ebp + 8]
cmp ecx, ebx
je 0x100123df
call fcn.10002120
jmp 0x100123e1
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [ebp + 8]
cmp ecx, ebx
je 0x100123f4
call fcn.1000110f
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x10012e7d
Capabilities:
Delete registry value

Disassembly:
mov eax, 0x10043790
call fcn.10035ae0
sub esp, 0x14
push ebx
push esi
push edi
xor esi, esi
push str.SoftwareMicrosoftInternet_ExplorerToolbarWebBrowser_
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], esi
call fcn.10001065
push str.ITBarLayout
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.10001065
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 3
cmp ecx, esi
je 0x10012ec7
call fcn.10002120
jmp 0x10012ec9
xor eax, eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x18], esi
push ecx
lea ecx, [ebp - 0x18]
push ecx
push esi
push 0xf003f
push esi
push esi
push esi
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x10012ef3
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
mov ecx, dword [ebp - 0x10]
cmp ecx, esi
je 0x10012f01
call fcn.10002120
jmp 0x10012f03
xor eax, eax
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, esi
je 0x10012f1a
push ebx
call edi
xor ebx, ebx
push esi
push str.Reset_Toolbar
push str.You_have_reset_Internet_Explorers_toolbar_layout._nPlease_close_and_restart_Internet_Explorer_to_see_the_change.
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp ebx, esi
je 0x10012f33
push ebx
call edi
mov ecx, dword [ebp - 0x10]
cmp ecx, esi
je 0x10012f42
call fcn.1000110f
mov dword [ebp - 0x10], esi
mov ecx, dword [ebp - 0x14]
cmp ecx, esi
je 0x10012f51
call fcn.1000110f
mov dword [ebp - 0x14], esi
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp + 8]
call fcn.100149cc
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x100256ec
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push edi
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftInternet_ExplorerMain
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp - 4]
test edi, edi
jne 0x1002571c
mov edi, 0x10047534
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push edi
push 1
push 0
push str.Start_Page
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test esi, esi
je 0x10025741
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
lea ecx, [ebp + 8]
call fcn.100149cc
pop edi
pop esi
leave
ret 0x10

Function at 0x1002a3c5
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, ecx
push 0x40
push 0
lea eax, [esi + 4]
mov dword [esi], 0x100484dc
push eax
call fcn.10036fb0
and dword [esi + 0x48], 0
and dword [esi + 0x44], 0
add esp, 0xc
mov dword [esi + 0x4c], 0x67452301
mov dword [esi + 0x50], 0xefcdab89
mov dword [esi + 0x54], 0x98badcfe
mov dword [esi + 0x58], 0x10325476
mov eax, esi
pop esi
ret

Function at 0x1002b195
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ebx
jne 0x1002b1af
xor esi, esi
jmp 0x1002b1dd
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.10036e70
mov esi, esp
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp + 8]
mov byte [esi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 2
push ebx
push esi
call fcn.1002b2ba
mov edi, eax
cmp edi, ebx
mov dword [ebp - 4], edi
jne 0x1002b219
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1002b204
call esi
mov esi, eax
jmp 0x1002b2ae
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1002b2ae
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
jne 0x1002b24a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x1002b25d
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1002b2a5
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
cmp edi, ebx
mov dword [ebp + 8], edi
jne 0x1002b261
jmp 0x1002b22c
call esi
jmp 0x1002b2a3
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov eax, dword [ebp + 8]
cmp byte [esi + eax], bl
je 0x1002b297
lea eax, [esi + 1]
add eax, 3
and al, 0xfc
call fcn.10036e70
lea eax, [esi + 1]
mov edi, esp
push eax
push dword [ebp + 8]
push edi
call fcn.10036030
add esp, 0xc
mov byte [edi + esi], bl
push dword [ebp + 0x14]
lea ecx, [ebp - 0xc]
push edi
call fcn.1002b3cb
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea esp, [ebp - 0x18]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x1002bd87
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.10036e70
push ebx
push esi
lea eax, [ebp - 0x2014]
push edi
mov esi, ecx
push eax
mov dword [ebp - 0x14], esi
call fcn.1002b524
xor edi, edi
cmp eax, edi
jl 0x1002bf3f
lea eax, [ebp - 0xa]
push eax
lea eax, [ebp - 0x2014]
push eax
call fcn.1002bf4c
pop ecx
test eax, eax
pop ecx
jne 0x1002bdd2
mov eax, 0x80020009
jmp 0x1002bf3f
mov ecx, esi
call fcn.1002b4fc
lea eax, [ebp - 0x1014]
mov ecx, esi
push eax
call fcn.1002b524
cmp eax, edi
jl 0x1002bf3f
movzx eax, word [ebp - 0xa]
sub eax, 8
je 0x1002bf07
sub eax, 9
je 0x1002be6c
dec eax
dec eax
jne 0x1002bf2e
lea eax, [ebp - 0x1014]
test eax, eax
jne 0x1002be17
xor ebx, ebx
jmp 0x1002be4c
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.10036e70
mov ebx, esp
push esi
push ebx
lea eax, [ebp - 0x1014]
push 0xffffffffffffffff
push eax
push edi
push edi
mov word [ebx], di
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push ebx
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x10]
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
jmp 0x1002bf1f
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test al, 1
mov dword [ebp - 8], eax
jne 0x1002bea8
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.10036e70
mov dword [ebp - 4], esp
push ebx
push edi
push dword [ebp - 4]
call fcn.10036fb0
add esp, 0xc
cmp dword [ebp - 4], edi
jne 0x1002beb2
mov eax, 0x80004005
jmp 0x1002bf3f
cmp dword [ebp - 8], 0
jle 0x1002beec
mov ecx, dword [ebp - 4]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
mov al, byte [ebp + edi - 0x1014]
push eax
call fcn.1002bfd3
pop ecx
mov ecx, edi
push 4
and ecx, 1
shl ecx, 2
mov edx, ecx
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, dword [ebp - 8]
jl 0x1002beb8
mov eax, dword [ebp + 8]
push ebx
push dword [ebp - 4]
mov eax, dword [eax]
push 3
push 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor edi, edi
jmp 0x1002bf2e
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x1014]
push eax
push 1
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
call fcn.1002b524
cmp eax, edi
jl 0x1002bf3f
xor eax, eax
lea esp, [ebp - 0x2020]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1003d635
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x10059858
cmp edx, dword [eax]
je 0x1003d657
add eax, 8
inc ecx
cmp eax, 0x100598e8
jl 0x1003d648
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x10059858]
jne 0x1003d785
mov eax, dword [0x1005a4e8]
cmp eax, 1
je 0x1003d75f
test eax, eax
jne 0x1003d688
cmp dword [0x1005a4ec], 1
je 0x1003d75f
cmp edx, 0xfc
je 0x1003d785
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1003d6bf
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.1003adf0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.10035bc0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x1003d702
lea eax, [ebp - 0x1a4]
push eax
call fcn.10035bc0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x10049788
push edi
call fcn.1003e3d0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.1003adf0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.1003ae00
lea eax, [ebp - 0xa0]
push 0x10049768
push eax
call fcn.1003ae00
push dword [esi + 0x1005985c]
lea eax, [ebp - 0xa0]
push eax
call fcn.1003ae00
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.100408df
add esp, 0x2c
pop edi
jmp 0x1003d785
lea eax, [ebp + 8]
lea esi, [esi + 0x1005985c]
push 0
push eax
push dword [esi]
call fcn.10035bc0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4220b2
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10067cfb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push esi
push edi
lea edi, [ebp - 0x5c]
mov ecx, 0x14
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
push 0x34
call fcn.0044ef12
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0
je 0x422106
mov ecx, dword [ebp - 0x18]
call fcn.0040a7db
mov dword [ebp - 0x1c], eax
jmp 0x42210d
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov dword [edx + 0x2c], ecx
mov esi, esp
push 0xfffffffffffffffc
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
push eax
call dword [0x100a79b4]
cmp esi, esp
call fcn.0044eed2
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x30], eax
mov esi, esp
push 0x10001b4f
push 0xfffffffffffffffc
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
push eax
call dword [0x100a79b8]
cmp esi, esp
call fcn.0044eed2
mov esi, esp
mov ecx, dword [ebp - 0x10]
push ecx
push 0x10099040
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
push eax
call dword [0x100a79bc]
cmp esi, esp
call fcn.0044eed2
mov esi, esp
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x30]
push edx
push 0x10099030
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
push ecx
call dword [0x100a79bc]
cmp esi, esp
call fcn.0044eed2
mov esi, esp
push 0x10001b4f
push 0x10099020
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
push eax
call dword [0x100a79bc]
cmp esi, esp
call fcn.0044eed2
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
push ecx
mov ecx, 0x100a34b8
call fcn.0040a277
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x5c
cmp ebp, esp
call fcn.0044eed2
mov esp, ebp
pop ebp
ret
Function at 0x468842
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009b178
push 0x1004d448
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffd0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 8], 0
jne 0x46887f
push 0
call dword [0x100a77a8]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
xor edx, edx
mov dx, word [ecx]
cmp edx, 0x5a4d
je 0x4688b7
push 0xc1
call dword [0x100a76c8]
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x34]
jmp 0x468a1b
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
cmp dword [edx], 0x4550
je 0x4688ef
push 0xbf
call dword [0x100a76c8]
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x38]
jmp 0x468a1b
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov cx, word [eax + 0x14]
test ecx, ecx
jne 0x46891d
push 0xc0
call dword [0x100a76c8]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x3c]
jmp 0x468a1b
mov edx, dword [ebp - 0x24]
xor eax, eax
mov ax, word [edx + 0x14]
mov ecx, dword [ebp - 0x24]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x28], 0
jmp 0x468942
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x24]
xor edx, edx
mov dx, word [ecx + 6]
cmp dword [ebp - 0x28], edx
jae 0x4689f5
push 0x100a2838
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x20]
add ecx, eax
push ecx
call fcn.00454952
add esp, 8
test eax, eax
jne 0x4689f0
mov edx, dword [ebp - 0x28]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x20]
cmp dword [eax + edx + 0xc], 0
je 0x468991
mov ecx, dword [ebp - 0x28]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x20]
cmp dword [edx + ecx + 0x10], 0
jne 0x468993
jmp 0x4689f5
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
add edx, dword [ecx + eax + 0xc]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
cmp dword [ecx], 0x30
jb 0x4689c0
mov edx, dword [ebp - 0x30]
cmp dword [edx + 4], 0x727444
je 0x4689c2
jmp 0x4689f5
mov eax, dword [ebp - 0x30]
cmp dword [eax + 8], 0
jne 0x4689d6
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x30]
mov eax, dword [edx]
mov dword [ecx + 8], eax
push 0
call dword [0x100a76c8]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x40]
jmp 0x468a1b
jmp 0x468939
mov dword [ebp - 4], 0xffffffff
jmp 0x468a0e
push 0xc0
call dword [0x100a76c8]
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4