joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40c7d0
mov ecx, 0x1c3c4af2
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x432024
nop
nop
nop
mov eax, section..reloc
mov ebx, 0x42f314
nop
mov ecx, 0x18682f91
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x432084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x4763a5f
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section..data_1
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x769f2c5a
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x434090
Capabilities:
Copy file
Get thread local storage value
Read .ini file
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9b0
cmp dword [0x4d7784], 0x516
jne 0x4340b5
push 0
lea eax, [ebp - 0x9b0]
push eax
push 0
call sub.KERNEL32.dll_VerLanguageNameW
push ebx
mov ebx, dword [ebp + 0xc]
push esi
shr ebx, 3
xor esi, esi
test ebx, ebx
je 0x434104
push edi
mov edi, dword [ebp + 8]
cmp dword [0x4d7784], 0x29
jne 0x4340e8
push 0
push 0
push 0
push 0
push 0x401390
push 0x4013c0
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
cmp dword [0x4d7784], 0x1c
je 0x43410c
mov ecx, dword [ebp + 0x10]
push ecx
push edi
call fcn.00433f30
inc esi
add edi, 8
cmp esi, ebx
jb 0x4340c7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
push 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
call dword [sym.imp.KERNEL32.dll_GetConsoleCP]
push 0x401408
push 0
lea edx, [ebp - 0x9b0]
push edx
push 0x401478
push 0x401534
push 0x401568
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0
push 0
push 0
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
lea ecx, [ebp - 0x1b0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x434190
Capabilities:
Copy file
Get thread local storage value
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x998
cmp dword [0x4d7784], 0x37
jne 0x4342fb
xor eax, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x50]
push ecx
push 0x4015c4
mov dword [ebp - 0x34], 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateW]
push 0
call dword [sym.imp.KERNEL32.dll_LocalLock]
push 0
push 0x4015d4
push 0
push 0x401610
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CompareStringW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
xor eax, eax
xor edx, edx
lea ecx, [ebp - 0x20]
mov word [ebp - 0x10], dx
push ecx
lea edx, [ebp - 0x10]
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
mov dword [ebp - 6], eax
mov word [ebp - 2], ax
mov word [ebp - 0x20], ax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
mov word [ebp - 0x12], ax
push edx
lea eax, [ebp - 0x198]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorInfo]
push 0
push 0
push 0
lea ecx, [ebp - 0xec]
push ecx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
push 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0
push 0
push 0
push 0
push 0x401660
push 0x4016ac
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
push 0
lea edx, [ebp - 0x998]
push edx
push 0x4016c0
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
push 0x401708
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0x401754
push 0x401790
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RequestWakeupLatency]
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push 0
push 0
push 0x4017ec
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
mov ecx, dword [0x4d7788]
mov eax, dword [ebp + 8]
mov dl, byte [ecx + eax + 0x12336]
mov ecx, dword [0x4d3d84]
mov byte [ecx + eax], dl
mov esp, ebp
pop ebp
ret 4
mov edx, dword [0x4d7788]
mov eax, dword [ebp + 8]
mov cl, byte [edx + eax + 0x12336]
mov edx, dword [0x4d3d84]
mov byte [edx + eax], cl
mov esp, ebp
pop ebp
ret 4
Function at 0x434410
Capabilities:
Copy file
Create pipe
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2358
call fcn.00434ee0
mov dword [ebp - 4], 0
jmp 0x43442f
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x332beaf6
jge 0x4344ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x4d7784], 0x16
jne 0x43448a
lea ecx, [ebp - 0x474]
push ecx
push 0
lea edx, [ebp - 0x878]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCalendarInfoA]
push 0x401820
push 0
lea eax, [ebp - 0x470]
push eax
push 0x401828
push 0x401838
push 0x401850
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x4d7784], 0x9e
jne 0x4344de
push 0
push 0
push 0
push 0
push 0x401880
push 0x4018a0
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
push 0
lea ecx, [ebp - 0xe98]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryA]
push 0
lea edx, [ebp - 0x1698]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExA]
cmp dword [ebp - 4], 0x3775ee
jle 0x4344e9
jmp 0x4344ee
jmp 0x434426
push section..data
mov eax, dword [0x4d7784]
push eax
mov ecx, dword [0x4d3d84]
push ecx
call fcn.00434090
mov dword [ebp - 0x169c], 0
jmp 0x434520
mov edx, dword [ebp - 0x169c]
add edx, 1
mov dword [ebp - 0x169c], edx
cmp dword [ebp - 0x169c], 0x3e79e
jge 0x434561
cmp dword [0x4d7784], 0x10
jne 0x43454e
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x401910
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
cmp dword [ebp - 0x169c], 0x1e673
jne 0x43455f
call fcn.00434330
jmp 0x434511
mov dword [ebp - 0x16a0], 0
jmp 0x43457c
mov eax, dword [ebp - 0x16a0]
add eax, 1
mov dword [ebp - 0x16a0], eax
cmp dword [ebp - 0x16a0], 0xdd9a7
jge 0x4345e6
cmp dword [0x4d7784], 0xc01
jne 0x4345e4
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeaps]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapValidate]
push 0x40196c
push 0
push 0x40199c
push 0x4019bc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 0x4019e4
push 0
lea ecx, [ebp - 0x1aa0]
push ecx
push 0x4019ec
push 0x401a18
push 0x401a40
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
jmp 0x43456d
jmp dword [0x4d3d84]
Function at 0x4351c0
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x4351e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x4351ea
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x435201
mov edx, dword [ebp - 4]
push edx
call fcn.004380b0
add esp, 4
or eax, 0xffffffff
jmp 0x435203
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x435210
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x43522f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x435236
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x43524d
mov ecx, dword [ebp - 4]
push ecx
call fcn.004380b0
add esp, 4
or eax, 0xffffffff
jmp 0x43524f
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x43c4c0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45a4d8]
jne 0x43c4ca
repz ret
jmp fcn.004416e0
Function at 0x418610
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x624
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebp, dword [esp + 0x63c]
mov ebx, dword [sym.imp.KERNEL32.dll_GetStringTypeExW]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x1c]
push eax
push 0xffffffffffffffff
push ebp
push 1
push edi
call ebx
push ebp
mov esi, dword [esp + 0x63c]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x41872d
push 0x2a
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
jne 0x41867b
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x624
ret 8
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
push esi
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4186b3
mov eax, dword [0x4ca7ec]
push 0x4ca4f0
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp dword [esp + 0x14], eax
jne 0x41872d
lea ecx, [esp + 0x42c]
push ecx
push 0xffffffffffffffff
push esi
push 1
push edi
call ebx
lea edx, [esp + 0x224]
push edx
push 0xffffffffffffffff
push esi
push 4
push edi
call ebx
lea eax, [esp + 0x1c]
push eax
push 0xffffffffffffffff
push ebp
push 1
push edi
call ebx
cmp word [esi], 0
je 0x41871b
xor eax, eax
mov cl, pe_nt_image_headers32
test byte [esp + eax + 0x224], cl
je 0x41870f
mov dx, word [esp + eax + 0x42c]
cmp dx, word [esp + eax + 0x1c]
jne 0x41872d
add esi, 2
add eax, 2
cmp word [esi], 0
jne 0x4186f7
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x624
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x624
ret 8

Function at 0x418740
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov dword [esp + 4], eax
mov al, byte [0x4cb9f0]
test al, al
je 0x4187ad
mov ecx, dword [0x4cba60]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
and ecx, 0xffff
cmp ecx, 0xffffd7b2
push edi
jne 0x41877a
mov eax, dword [0x4c9cdc]
test eax, eax
je 0x41877a
push 0xfffffffffffffff5
call esi
push 0xfffffffffffffff5
call esi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea edx, [esp + 0xc]
push 0
push edx
push 0x1d
push 0x4ca9c0
push eax
call edi
push 0xfffffffffffffff5
call esi
lea ecx, [esp + 0xc]
push 0
push ecx
push 2
push 0x4cba70
push eax
call edi
pop edi
pop esi
ret
mov al, byte [0x4ca548]
test al, al
jne 0x4187c7
push 0
push 0
push 0x4ca9c0
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
ret

Function at 0x495d7b
Capabilities:
Packed with generic packer

Disassembly:
insd dword es:[edi], dx
jo 0x495ddf
add byte [bp + si + 2], dh
add byte [edx], al
add byte [edx], ch
add byte [eax], al
add byte [eax], al
or dl, byte [edx + esi*2 + 0x5b]
add byte [ebp + 0x78], al
arpl word [ebp + 0x73], sp
jae 0x495d9a
add byte [eax], al
add byte [eax], al
add byte [eax], cl
add al, cl
add byte [eax - 0x6a], cl
add byte [eax], al
sub eax, 0x4086e800
Function at 0x4aed87
Capabilities:
Encode data using xor

Disassembly:
hlt
pop ebp
frstor dword [eax + 0x13]
or esi, dword [ebx + edx*2]
mov ebp, 0x97feca7e
jle 0x4aecfa
or byte [ebx + 0x4c], al
daa
lahf
mov esi, 0xde444148
adc eax, 0x65eba10f
pop ss
xchg esp, eax
inc ebx
and dword [ebx], eax
mov ebx, 0xb2233586
xchg ebx, ecx
cmpsd dword [esi], dword es:[edi]
sbb al, 0xb7
test dword [ebx - 0x2a], edi
jp 0x4aeddb
jmp 0x4aedca
adc edx, dword [ecx + 0x5436dd54]
push ebx
cmpsb byte [esi], byte es:[edi]
call 0x23d0761b
adc al, 0xae
scasb al, byte es:[edi]
scasb al, byte es:[edi]
or edi, dword [edx]
fnstsw word [eax + 6]
sub al, 0xdc
repne lodsb al, byte [esi]
dec edi
xchg edi, eax
mov bh, 0x1c
sub al, byte [edx - 0x55785646]
sbb ah, byte [0xa95b4a6c]
cld
sar dword [eax], 1
add al, 0x8b
jge 0x4aee22
je 0x4aee17
or al, 0xb6
xor eax, 0xbb7355c8
jnp 0x4aed47
xlatb
mov ebx, dword [edx - 0x6d]
pop edx
xchg ebx, eax
leave
xor eax, 0xb6514e8
xchg byte [edi - 0x25c23a46], cl
lodsd eax, dword [esi]
xchg edx, eax
jp 0x4aed92
jge 0x4aed63
cwde
or esp, dword [edi]
mov esp, 0xb59ba035
cmpsb byte [esi], byte es:[edi]
mov edi, 0xeb510763
xor eax, 0x39459b
cmp dword [eax], eax
jnp 0x4aedb6
sti
invalid
dec edx
xor cl, byte [edi + 0x3b]
pop edx
push ebp
mov al, 0x23
rcl dword [ebp - 0x55]
outsb dx, byte [esi]
invalid
sub dword [ebp + 0xf], esi
pop ss
inc ebp
add edi, dword [edi - 0x7c]
xor al, 0x5f
xchg esp, eax
dec esp
scasd eax, dword es:[edi]
push 0x35ac061d
add byte [esi], bl
sti
mov ch, 0x6a
mov dl, 0xe1
stosb byte es:[edi], al
dec ebx
jmp 0x4aedea

Function at 0x4b219f
Capabilities:
Encode data using xor

Disassembly:
mov ah, 0x28
or eax, 0x20d0326d
mov edx, 0xaffdf13d
mov ebp, 0x2d6cd46e
cld
add ebx, dword [eax - 0x1eff4360]
adc dword fs:[ecx], esi
jno 0x4b217f
lea edi, [ecx - 0x5ce16e51]
sub esi, ebp
mov dh, 0x69
pop esi
lcall 0x7b33, 0xccfa7a07
in eax, 0x2f
or al, 0x5f
dec ebx
mov cl, 0x94
inc edx
jnp 0x4b21a2
mov al, byte [0x5bb27b1f]
iretd
and ch, byte [0xb4ae9f7a]
mov dl, 0x7a
lodsd eax, dword [esi]
push es
loop 0x4b2124
or dword [ecx - 0x6e], 0x55d21b6f
dec ecx
xchg edx, eax
outsd dx, dword [esi]
sbb edx, edx
push ebp
jb 0x4b220e
sub al, 0xde
and dh, byte [esi - 0x6a927931]
push 0xffffffffffffff9b
and edx, dword [esi]
jmp 0x4b221f
mov bl, 0xf
push 0x5292a034
cmp byte [ecx + ebp*2 - 0x53], bl
adc eax, 0x9bf2af7a
invalid
ja 0x4b2252
dec ebx
mov dl, 0x1b
jnp 0x4b2280
aam 0xfb
fcomp dword [esi + 0x1f]
retf
call 0x19049b82
push ecx
pop es
stc
pop eax
push ecx
insb byte es:[edi], dx
mov ebx, 0x770f3732
sbb bl, byte [ebx - 0x696d4b71]
sub eax, 0x765ec2b7
test dword [edi + edx*4 - 0x6554cef6], esi
jecxz 0x4b2295
push edi
salc
and bh, byte [ecx]
pop esi
mov edi, 0x95657ae
js 0x4b21f3
mov esi, 0x8bf90d11
or byte gs:[ecx], dl
shl word [ebp + 5], 1
mov cl, 0x54
arpl word [eax], bp
stc
mov esp, dword [ebp + 8]
adc dword [esi - 0x2f], esp
add eax, 0x286354b1
in al, dx
mov ah, 0x2a
retf 0xc344
adc eax, 0x82f37836
push 0x694bbc4
Function at 0x4bf5ce
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c7390
cmp edx, dword [eax]
je 0x4bf5f0
add eax, 8
inc ecx
cmp eax, 0x4c7420
jl 0x4bf5e1
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c7390]
jne 0x4bf71e
mov eax, dword [0x4cba7c]
cmp eax, 1
je 0x4bf6f8
test eax, eax
jne 0x4bf621
cmp dword [0x4c72d4], 1
je 0x4bf6f8
cmp edx, 0xfc
je 0x4bf71e
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bf658
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004bfce0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bff10
inc eax
pop ecx
cmp eax, 0x3c
cmp al, 0x76
invalid
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bff10
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c3b80
push edi
call fcn.004c16e0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004bfce0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bfcf0
lea eax, [ebp - 0xa0]
push 0x4c3b60
push eax
call fcn.004bfcf0
push dword [esi + 0x4c7394]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bfcf0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004c1654
add esp, 0x2c
pop edi
jmp 0x4bf71e
lea eax, [ebp + 8]
lea esi, [esi + 0x4c7394]
push 0
push eax
push dword [esi]
call fcn.004bff10
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 0x100015e0
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 0x10001638
cmp byte [esi + ebx - 1], 0xa
je 0x1000160c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x10006084], 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 0x10001c60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp], eax
call sym.___wine_dbg_get_channel_flags
movzx eax, al
bt eax, esi
jae 0x10001e38
mov edi, dword [0x10006084]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], edi
je 0x10001d47
test byte [0x10002030], 8
jne 0x10001de0
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x10002040], 8
jne 0x10001da0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x10001ce9
cmp esi, 3
jbe 0x10001d58
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ecx, ebx
mov edi, eax
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x10001cfa
mov esi, edx
mov dword [esp + 0xc], edi
shr esi, 0x10
test edx, 0x8080
mov dword [esp + 4], 1
cmove edx, esi
lea esi, [ecx + 2]
mov dword [esp], ebx
cmove ecx, esi
mov eax, edx
add al, dl
sbb ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x1000411c]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x10001ce9
mov dword [esp], 0x10002040
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x10001cc0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call sym._sprintf
add edi, eax
jmp 0x10001cc0
mov dword [esp], 0x10002030
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x10001cab
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea edi, [ebx + eax]
jmp 0x10001cb3
mov eax, 0xffffffff
jmp 0x10001d47
Function at 0x40256e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 8]
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp eax, dword [ebp + 8]
je 0x40259e
push dword [0x407bf0]
push 0x5b
push 0x36b1
call fcn.0040488c
push eax
call fcn.0040337f
pop ebp
ret 4