joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4020f0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40803c]
sub esp, 4
test ebx, ebx
je 0x40213b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x402134
test esi, esi
je 0x402134
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402110
mov dword [esp], 0x408044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402320
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x402370
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x402448
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x4023ae
cmp eax, 4
jne 0x4023d0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x4023be
cmp edx, 4
je 0x4023be
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402320
Function at 0x1000a85b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10021024]
jne 0x1000a865
repz ret
jmp fcn.1000b233

Function at 0x1000c5fb
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x10021158]
je 0x1000c616
inc edi
cmp edi, 0x17
jb 0x1000c607
cmp edi, 0x17
jae 0x1000c796
push ebp
push 3
call fcn.1000eca3
cmp eax, 1
pop ecx
je 0x1000c762
push 3
call fcn.1000eca3
test eax, eax
pop ecx
jne 0x1000c64a
cmp dword [0x10022444], 1
je 0x1000c762
cmp ebx, 0xfc
je 0x1000c795
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x10022918
push ebp
call fcn.1000cf85
add esp, 0xc
test eax, eax
je 0x1000c680
push esi
push esi
push esi
push esi
push esi
call fcn.1000ac22
add esp, 0x14
push 0x104
mov esi, 0x10022931
push esi
push 0
mov byte [0x10022a35], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1000c6c4
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.1000cf85
add esp, 0xc
test eax, eax
je 0x1000c6c4
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.1000ac22
add esp, 0x14
push esi
call fcn.1000cff0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1000c709
push esi
call fcn.1000cff0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x10022c2c
push 0x10019754
sub ecx, eax
push ecx
push eax
call fcn.1000ebf0
add esp, 0x14
test eax, eax
je 0x1000c709
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.1000ac22
add esp, 0x14
jmp 0x1000c70b
xor esi, esi
push 0x10019750
push ebx
push ebp
call fcn.1000eb7f
add esp, 0xc
test eax, eax
je 0x1000c72b
push esi
push esi
push esi
push esi
push esi
call fcn.1000ac22
add esp, 0x14
push dword [edi*8 + 0x1002115c]
push ebx
push ebp
call fcn.1000eb7f
add esp, 0xc
test eax, eax
je 0x1000c74d
push esi
push esi
push esi
push esi
push esi
call fcn.1000ac22
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.1000e9c2
add esp, 0xc
jmp 0x1000c795
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x1000c795
cmp ebp, 0xffffffff
je 0x1000c795
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x1002115c]
push dword [esi]
call fcn.1000cff0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x1000e9c2
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.1000d266
xor ebx, ebx
cmp dword [0x10022d84], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x1000ea98
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1000eb78
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x1000eb78
push eax
call fcn.1000d1f8
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10022d84], eax
call esi
push eax
call fcn.1000d1f8
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10022d88], eax
call esi
push eax
call fcn.1000d1f8
mov dword [0x10022d8c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.1000c3a8
test eax, eax
pop ecx
pop ecx
je 0x1000ea66
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1000ac22
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x1000ea98
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.1000d1f8
cmp eax, ebx
pop ecx
mov dword [0x10022d94], eax
je 0x1000ea98
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1000d1f8
pop ecx
mov dword [0x10022d90], eax
mov eax, dword [0x10022d90]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x1000eb1d
cmp dword [0x10022d94], ecx
je 0x1000eb1d
push eax
call fcn.1000d26f
push dword [0x10022d94]
mov esi, eax
call fcn.1000d26f
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x1000eb1d
cmp edi, ebx
je 0x1000eb1d
call esi
cmp eax, ebx
je 0x1000eaea
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1000eaea
test byte [ebp - 0x18], 1
jne 0x1000eb1d
lea eax, [ebp - 0x10]
push eax
call fcn.1000c3df
test eax, eax
pop ecx
je 0x1000eb05
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1000ac22
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x1000eb14
or dword [ebp + 0x10], 0x200000
jmp 0x1000eb58
or dword [ebp + 0x10], 0x40000
jmp 0x1000eb58
mov eax, dword [0x10022d88]
cmp eax, dword [ebp - 8]
je 0x1000eb58
push eax
call fcn.1000d26f
cmp eax, ebx
pop ecx
je 0x1000eb58
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1000eb58
mov eax, dword [0x10022d8c]
cmp eax, dword [ebp - 8]
je 0x1000eb58
push eax
call fcn.1000d26f
cmp eax, ebx
pop ecx
je 0x1000eb58
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10022d84]
call fcn.1000d26f
cmp eax, ebx
pop ecx
je 0x1000eb78
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1000eb7a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x417020
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [str.GIAN07]
sub esp, 0x404
push esi
push edi
push 0
push eax
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
test esi, esi
je 0x417063
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
push 0xf120
push 0x112
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
xor eax, eax
pop esi
add esp, 0x404
ret 0x10
mov ecx, dword [esp + 0x418]
cmp byte [ecx], 0
je 0x4170df
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, eax
or ecx, 0xffffffff
inc edi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x24]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x22
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
push ecx
call fcn.00427a10
mov esi, eax
add esp, 8
test esi, esi
je 0x417056
lea edx, [esp + 0x24]
push 0x5c
push edx
call fcn.00427a10
add esp, 8
test eax, eax
je 0x417056
cmp byte [esi], 0x5c
je 0x4170ce
mov al, byte [esi - 1]
dec esi
cmp al, 0x5c
jne 0x4170c6
lea eax, [esp + 0x24]
mov byte [esi + 1], 0
push eax
call fcn.00427977
add esp, 4
mov ecx, dword [esp + 0x41c]
mov edx, dword [esp + 0x410]
push ecx
push edx
call fcn.004173d0
add esp, 8
test eax, eax
jne 0x417106
pop edi
pop esi
add esp, 0x404
ret 0x10
mov edi, dword [sym.imp.WINMM.dll_timeGetTime]
push ebx
mov ebx, dword [sym.imp.USER32.dll_PeekMessageA]
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push 0
push eax
call ebx
test eax, eax
je 0x417156
push 0
push 0
lea ecx, [esp + 0x18]
push 0
push ecx
call ebp
test eax, eax
je 0x417191
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x41711a
mov eax, dword [0x4c89f4]
test eax, eax
je 0x417189
call edi
mov edx, dword [0x4c89f8]
mov esi, eax
mov ecx, esi
sub ecx, edx
cmp ecx, 0x10
jae 0x41717b
mov al, byte [0x4c8585]
test al, al
jne 0x41711a
call dword [0x43448c]
mov dword [0x4c89f8], esi
jmp 0x41711a
call dword [sym.imp.USER32.dll_WaitMessage]
jmp 0x41711a
mov eax, dword [esp + 0x18]
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x404
ret 0x10
Function at 0x4173d0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42fbc0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x10], esp
xor edi, edi
push str.NEO_TAMA_ICON
push ebx
mov dword [ebp - 0x40], 8
mov dword [ebp - 0x3c], 0x4171b0
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], ebx
call dword [sym.imp.USER32.dll_LoadIconA]
push 4
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edi
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x24], eax
mov eax, dword [str.GIAN07]
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x20], edi
push ecx
mov dword [ebp - 0x1c], eax
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
jne 0x417457
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push edi
push ebx
push edi
push edi
push 1
call esi
push eax
push edi
call esi
mov edx, dword [0x4346ec]
push eax
mov eax, dword [str.GIAN07]
push edi
push edi
push 0x90080008
push edx
push eax
push edi
call dword [sym.imp.USER32.dll_CreateWindowExA]
cmp eax, edi
mov dword [0x4c8a00], eax
jne 0x4174a1
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.USER32.dll_ShowCursor]
mov ecx, dword [0x4c8a00]
push edi
push ecx
call dword [sym.imp.USER32.dll_GetSystemMenu]
mov esi, eax
push edi
mov edi, dword [sym.imp.USER32.dll_DeleteMenu]
push 0xf030
push esi
call edi
push 0
push 0xf020
push esi
call edi
push 0
push 0xf010
push esi
call edi
push 0
push 0xf000
push esi
call edi
push str.ErrLOG2.txt
call fcn.00425310
call fcn.00425250
mov edx, dword [0x4c8a00]
push edx
push ebx
call fcn.004230e0
mov ecx, dword [0x4c8a00]
xor esi, esi
add esp, 0xc
mov dword [ebp - 4], esi
call fcn.0041f880
cmp eax, esi
jne 0x417529
lea eax, [ebp - 0x14]
push 0x430fb8
push eax
mov dword [ebp - 0x14], esi
call fcn.00427ed2
call fcn.004175b0
cmp eax, esi
jne 0x417543
lea ecx, [ebp - 0x18]
push 0x430fb8
push ecx
mov dword [ebp - 0x18], esi
call fcn.00427ed2
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x423a10
Capabilities:
Inspect section memory permissions

Disassembly:
mov eax, dword [esp + 4]
and eax, 0xff
cmp eax, 0x20
ja case.0x423b48.20
jmp dword [eax*4 + 0x423b68]
xor eax, eax
jmp 0x423b2b
mov eax, 1
jmp 0x423b2b
mov eax, 2
jmp 0x423b2b
mov eax, 4
jmp 0x423b2b
mov eax, 8
jmp 0x423b2b
mov eax, 0x10
jmp 0x423b2b
mov eax, 0x20
jmp 0x423b2b
mov eax, 0x40
jmp 0x423b2b
mov eax, 0x80
jmp 0x423b2b
mov eax, 0x100
jmp 0x423b2b
mov eax, 0x200
jmp 0x423b2b
mov eax, 0x400
jmp 0x423b2b
mov eax, 0x800
jmp 0x423b2b
mov eax, 0x1000
jmp 0x423b2b
mov eax, 0x2000
jmp 0x423b2b
mov eax, 0x4000
jmp 0x423b2b
mov eax, 0x8000
jmp 0x423b2b
mov eax, 0x10000
jmp 0x423b2b
mov eax, 0x20000
jmp 0x423b2b
mov eax, 0x40000
jmp 0x423b2b
mov eax, 0x80000
jmp 0x423b2b
mov eax, 0x100000
jmp 0x423b2b
mov eax, 0x200000
jmp 0x423b2b
mov eax, 0x400000
jmp 0x423b2b
mov eax, 0x800000
jmp 0x423b2b
mov eax, 0x2000000
jmp 0x423b2b
mov eax, 0x4000000
jmp 0x423b2b
mov eax, 0x8000000
jmp 0x423b2b
mov eax, 0x10000000
jmp 0x423b2b
mov eax, 0x20000000
jmp 0x423b2b
mov eax, 0x40000000
jmp 0x423b2b
mov eax, DirectSoundCreate
mov ecx, dword [esp + 8]
and ecx, 0xffff
add ecx, 0xfffffff0
cmp ecx, 0xf0
ja case.0x423b48.20
xor edx, edx
mov dl, byte [ecx + 0x423c00]
jmp dword [edx*4 + 0x423bec]
mov dword [0x4f153c], eax
ret
mov dword [0x4f1540], eax
ret
mov dword [0x4f1544], eax
ret
mov dword [0x4f1548], eax
ret
Function at 0x425500
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x8b0
push ebp
push esi
push edi
push 0
push 0x80
push 2
push 0
push 0
mov esi, ecx
push 0x40000000
push edx
mov dword [esp + 0x30], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x42553b
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x8b0
ret
mov dl, 8
lea ecx, [esp + 0x18]
call fcn.00425920
mov dl, 8
lea ecx, [esp + 0x94]
call fcn.00425960
mov eax, dword [esi]
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [eax + 0x50]
lea ecx, [esp + 0x4bc]
mov eax, dword [esp + 0x10]
push ecx
push 0x100
push 0
mov edx, dword [eax]
push 0
push eax
call dword [edx + 0x10]
test eax, eax
je 0x42558a
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x8b0
ret
xor eax, eax
mov dl, byte [esp + eax + 0x4bc]
mov cl, byte [esp + eax + 0x4bd]
mov byte [esp + eax + 0xbe], dl
mov dl, byte [esp + eax + 0x4be]
mov byte [esp + eax + 0xbd], cl
mov byte [esp + eax + 0xbc], dl
mov byte [esp + eax + 0xbf], 0
add eax, 4
cmp eax, 0x400
jl 0x42558c
mov ecx, 0x1b
xor eax, eax
lea edi, [esp + 0x28]
push 0
rep stosd dword es:[edi], eax
mov eax, dword [esi]
lea ecx, [esp + 0x2c]
push 1
push ecx
push 0
push esi
mov dword [esp + 0x3c], 0x6c
call dword [eax + 0x64]
test eax, eax
je 0x4255fe
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x8b0
ret
mov eax, dword [esp + 0x38]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
lea edx, [esp + 0x10]
lea ecx, [eax + eax*2]
push 0
push edx
push 0xe
lea esi, [ecx + ecx*4]
shl esi, 5
sub esi, eax
mov eax, dword [esp + 0x5c]
add esi, eax
lea eax, [esp + 0x28]
push eax
push ebp
call edi
lea ecx, [esp + 0x10]
lea edx, [esp + 0x98]
push 0
push ecx
push 0x28
push edx
push ebp
call edi
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc0]
push 0
push eax
push 0x400
push ecx
push ebp
call edi
mov ebx, 0x1e0
lea edx, [esp + 0x10]
push 0
push edx
push 0x280
push esi
push ebp
call edi
mov ecx, dword [esp + 0x3c]
sub esi, ecx
dec ebx
jne 0x42565b
mov eax, dword [esp + 0x18]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x80]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x8b0
ret
Function at 0x42b225
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x434e30
cmp edx, dword [eax]
je 0x42b247
add eax, 8
inc ecx
cmp eax, 0x434ec0
jl 0x42b238
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x434e30]
jne 0x42b375
mov eax, dword [0x4f39e0]
cmp eax, 1
je 0x42b34f
test eax, eax
jne 0x42b278
cmp dword [0x434be0], 1
je 0x42b34f
cmp edx, 0xfc
je 0x42b375
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42b2af
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0042c670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0042be70
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x42b2f2
lea eax, [ebp - 0x1a4]
push eax
call fcn.0042be70
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x430e44
push edi
call fcn.0042d8e0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0042c670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0042c680
lea eax, [ebp - 0xa0]
push 0x430e24
push eax
call fcn.0042c680
push dword [esi + 0x434e34]
lea eax, [ebp - 0xa0]
push eax
call fcn.0042c680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0042d849
add esp, 0x2c
pop edi
jmp 0x42b375
lea eax, [ebp + 8]
lea esi, [esi + 0x434e34]
push 0
push eax
push dword [esi]
call fcn.0042be70
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 0x100010e0
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 0x100010f9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x1000110d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x1000112e
cmp esi, eax
jae 0x10001107
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x10001120
cmp esi, eax
jae 0x10001107
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x10005df8
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x101211e4
push eax
mov dword fs:[0], esp
sub esp, 0x70
push esi
mov esi, ecx
mov eax, dword [esi + 0xd0]
test eax, eax
push edi
je 0x10005e19
push eax
call fcn.100f71b3
add esp, 4
mov dword [esi + 0xd0], 0
push 0x400
lea ecx, [esp + 0xc]
call fcn.1011b24e
push 0
push 0x1000
push 0
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x90], 0
call fcn.10119a5d
mov edx, dword [esp + 0x8c]
mov ecx, dword [esi + 0x188]
push edx
lea eax, [esp + 0x34]
push eax
push esi
mov byte [esp + 0x8c], 1
call fcn.1004aeb0
lea ecx, [esp + 0x30]
call fcn.101198c4
lea ecx, [esp + 8]
call fcn.1011b3cd
lea ecx, [esp + 8]
mov edi, eax
call fcn.1011b31b
mov ecx, dword [esp + 0x88]
mov dword [esi + 0xd0], eax
mov dword [ecx], eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x80], 0
call fcn.10119a18
lea ecx, [esp + 8]
mov dword [esp + 0x80], 0xffffffff
call fcn.1011b635
mov ecx, dword [esp + 0x78]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x7c
ret 8
Function at 0x10030790
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x10124735
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
xor ebx, ebx
push esi
mov esi, ecx
mov dword [esi + 8], vtable.CList_class_Notifiable___class_Notifiable__.0
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], 0xa
push edi
mov dword [esp + 0x10], esi
mov dword [esi + 4], vtable.Notifier2.0
lea edi, [esi + 0x24]
mov ecx, edi
mov dword [esp + 0x1c], ebx
call fcn.100378d0
mov dword [esi + 0x28], vtable.has_features.0
lea ebp, [esi + 0x2c]
mov ecx, ebp
mov byte [esp + 0x1c], 2
call fcn.100d8910
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
mov dword [edi], vtable.CDocOb.3.0
mov dword [esi + 0x34], eax
pop edi
mov byte [esi + 0x30], bl
mov byte [esi + 0x31], bl
mov dword [esi + 0x38], ebx
mov dword [esi], vtable.CDocOb.0
mov dword [esi + 4], vtable.CDocOb.4.0
mov dword [esi + 0x28], vtable.CDocOb.2.0
mov eax, esi
pop esi
mov dword [ebp], vtable.CDocOb.1.0
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x10033030
Capabilities:
Parse credit card information

Disassembly:
mov ecx, dword [0x1019944c]
mov dword [0x10199428], 0
mov edx, 0x1019942c
mov al, byte [ecx]
cmp al, 0x20
je 0x1003304f
cmp al, 9
jne 0x10033058
inc ecx
mov dword [0x1019944c], ecx
jmp 0x10033045
mov al, byte [ecx]
cmp al, 0x2b
je 0x1003317d
cmp al, 0x2d
je 0x1003317d
cmp al, 0x2a
je 0x1003317d
cmp al, 0x2f
je 0x1003317d
cmp al, 0x25
je 0x1003317d
cmp al, 0x5e
je 0x1003317d
cmp al, 0x28
je 0x1003317d
cmp al, 0x29
je 0x1003317d
cmp al, 0x2c
je 0x1003317d
cmp al, 0x3d
je 0x1003317d
cmp al, 0x30
jl 0x100330b2
cmp al, 0x39
jle 0x100330b6
cmp al, 0x2e
jne 0x100330de
mov dword [0x10199428], 3
mov al, byte [ecx]
cmp al, 0x30
jl 0x100330ca
cmp al, 0x39
jle 0x100330d2
cmp al, 0x2e
jne 0x1003319a
mov byte [edx], al
inc edx
inc ecx
mov dword [0x1019944c], ecx
jmp 0x100330c0
cmp al, 0x61
jl 0x100330e6
cmp al, 0x7a
jle 0x100330f2
cmp al, 0x30
jl 0x100330ee
cmp al, 0x39
jle 0x100330f2
cmp al, 0x5f
jne 0x1003312b
mov dword [0x10199428], 1
lea esp, [esp]
mov al, byte [ecx]
cmp al, 0x61
jl 0x1003310a
cmp al, 0x7a
jle 0x10033116
cmp al, 0x30
jl 0x10033112
cmp al, 0x39
jle 0x10033116
cmp al, 0x5f
jne 0x10033122
mov byte [edx], al
inc edx
inc ecx
mov dword [0x1019944c], ecx
jmp 0x10033100
mov byte [0x1019943b], 0
jmp 0x1003319a
test al, al
je 0x1003319a
mov edx, dword [0x10199900]
inc ecx
mov dword [0x1019944c], ecx
sub ecx, edx
dec ecx
mov byte [0x1019942c], al
mov byte [0x1019942d], 0
mov dword [0x10199928], 1
mov dword [0x10199904], ecx
xor eax, eax
lea ecx, [ecx]
mov cl, byte [eax + 0x1019942c]
mov byte [eax + 0x10199908], cl
inc eax
test cl, cl
jne 0x10033160
push 1
push 0x101993e8
call fcn.100f9178
mov dword [0x10199428], 2
mov al, byte [ecx]
inc ecx
mov byte [0x1019942c], al
mov edx, 0x1019942d
mov dword [0x1019944c], ecx
mov byte [edx], 0
lea ecx, [ecx]
mov al, byte [ecx]
cmp al, 0x20
je 0x100331aa
cmp al, 9
jne 0x100331b3
inc ecx
mov dword [0x1019944c], ecx
jmp 0x100331a0
ret