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

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x9000]
push edi
jmp 0x40d76a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40d771
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40d760
mov eax, 1
add ebx, ebx
jne 0x40d783
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40d778
jne 0x40d794
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40d778
xor ecx, ecx
sub eax, 3
jb 0x40d7a8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40d81a
mov ebp, eax
add ebx, ebx
jne 0x40d7b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40d7c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40d7e4
inc ecx
add ebx, ebx
jne 0x40d7d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40d7c5
jne 0x40d7e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40d7c5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40d804
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40d7f5
jmp 0x40d766
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40d804
add edi, ecx
jmp 0x40d766
pop esi
lea edi, [esi + 0xb000]
mov eax, dword [edi]
or eax, eax
je 0x40d86c
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd554]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd610]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40d821
mov ecx, edi
jns 0x40d850
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 + 0xd618]
or eax, eax
je 0x40d866
mov dword [ebx], eax
add ebx, 4
jmp 0x40d83e
call dword [esi + 0xd614]
mov ebp, dword [esi + 0xd61c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
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 0x40d8a0
sub esp, 0xffffff80
jmp 0x403946
Function at 0x40728d
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
and dword [ebp - 0x14], 0
push ebx
mov ebx, ecx
lea ecx, [ebp - 0x14]
push esi
mov esi, edx
mov dword [ebp - 0x38], ebx
push edi
mov eax, dword [ebx]
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [esi]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x34], eax
call fcn.004071d1
mov edi, dword [ebp - 0x14]
mov eax, dword [esi + 8]
add edi, 0x23f
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0xc]
push 0x20
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x2c], eax
pop esi
mov dword [ebp - 0x20], 2
add dword [ebp - 0x20], 3
mov edx, dword [ebp - 0xc]
mov eax, edx
mov ecx, dword [0x1a2e844]
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x407315
push 0x4011a0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [0x1a2e844]
add eax, dword [ebp - 0x28]
cmp ecx, 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0x1a2e888]
mov dword [ebp - 0x24], 0xedeb2e40
cmove eax, dword [ebp - 0x24]
and dword [ebp - 0x24], 0
cmp ecx, 0x3eb
mov dword [0x1a2e888], eax
mov eax, dword [0x1a2e890]
cmove eax, dword [ebp - 0x24]
mov dword [0x1a2e890], eax
lea eax, [edi + edx]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xc]
shr eax, 5
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 8], eax
mov eax, dword [ebp - 4]
and dword [ebp - 0x18], 0
mov dword [0x1a2e88c], 0xf4ea3dee
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x1c]
sub ebx, eax
mov dword [ebp - 8], eax
mov eax, ebx
mov dword [ebp - 0x1c], ebx
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x14]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
nop
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x20]
mov eax, ebx
shr eax, cl
add eax, dword [ebp - 0x34]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x24]
xor dword [ebp - 4], eax
cmp dword [0x1a2e844], 0xb03
jne 0x4073ec
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
push 0x4011a4
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov eax, dword [ebp - 4]
and dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
xor dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0xc], eax
add edi, 0x61c88647
mov dword [ebp - 0x14], edi
dec esi
jne 0x4072dd
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x38]
pop edi
pop esi
mov dword [ebx], eax
mov eax, dword [ebp - 0x24]
mov dword [ebx + 4], eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407436
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, edx
shr esi, 3
push edi
mov edi, ecx
test esi, esi
je 0x407474
cmp dword [0x1a2e844], 0x959
jne 0x407464
push 0
call dword [sym.imp.KERNEL32.dll_AttachConsole]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov edx, dword [ebp + 8]
mov ecx, edi
call fcn.0040728d
add edi, 8
dec esi
jne 0x407446
pop edi
pop esi
pop ebp
ret 4
Function at 0x410c4f
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43ba20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040a873
mov dword [ebp - 0x14], eax
cmp dword [0x1a2f628], esi
jne 0x410d42
push 0x800
push esi
push 0x40516c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x410ccf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x410e22
push esi
push esi
push 0x40516c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x410e22
push 0x405184
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x410e22
push eax
call ebx
push 0x405190
push edi
mov dword [0x1a2f628], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x4051a0
push edi
mov dword [0x1a2f62c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x4051b4
push edi
mov dword [0x1a2f630], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1a2f638], eax
test eax, eax
je 0x410d3f
push 0x4051d0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1a2f634], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x410d67
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x410d5a
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x410d7c
push 4
pop eax
jmp 0x410e24
cmp dword [ebp - 0x14], esi
je 0x410d7c
push dword [0x1a2f628]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x410d61
mov eax, dword [0x1a2f634]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x410dda
cmp dword [0x1a2f638], edi
je 0x410dda
push eax
call ebx
push dword [0x1a2f638]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x410dda
test eax, eax
je 0x410dda
call ecx
test eax, eax
je 0x410dcf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x410dcf
test byte [ebp - 8], 1
jne 0x410dda
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x410e0a
mov eax, dword [0x1a2f62c]
cmp eax, edi
je 0x410e07
push eax
call ebx
test eax, eax
je 0x410e07
call eax
mov esi, eax
test esi, esi
je 0x410e07
mov eax, dword [0x1a2f630]
cmp eax, edi
je 0x410e07
push eax
call ebx
test eax, eax
je 0x410e07
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x1a2f628]
call ebx
test eax, eax
je 0x410e22
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x410e24
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409e1e
mov esp, ebp
pop ebp
ret
Function at 0x401e94
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret

Function at 0x405964
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x4059c6
call fcn.00405914
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.00402328
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.00402328
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x405a24
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x40a99c], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x405afe
cmp dword [0x40a998], 0
jne 0x405afe
cmp dword [0x40ab8c], 0
je 0x405ab8
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.00405814
add esp, 8
mov ebx, eax
test eax, eax
jne 0x405a9e
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00405814
add esp, 8
mov ebx, eax
test eax, eax
jne 0x405a9e
lea ebx, [ebp - 0x84]
jmp 0x405a9f
inc ebx
call fcn.004059e0
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x405b39
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x40a9a0
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00402328
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x40a9a3
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x405b39
cmp dword [0x40a998], 0
je 0x405b18
cmp dword [0x40a998], 0xffffffff
je 0x405b39
push esi
call dword [0x40a998]
pop ecx
mov eax, dword [0x40a99c]
test eax, eax
je 0x405b39
cmp dword [0x40a99c], 0xffffffff
je 0x405b39
cmp byte [eax], 0
je 0x405b39
push esi
push eax
call fcn.00405964
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406324
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x40bc28], 0
jne 0x4063a5
cmp dword [0x40bc48], 0
jne 0x406354
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x40bc48], eax
test eax, eax
jne 0x406354
push str.GetEnvironmentStrings_failed
call fcn.00405b50
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x40bc48]
jmp 0x406368
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.00402328
pop ecx
mov edi, eax
test eax, eax
jne 0x406360
lea edi, [ebp + 1]
push edi
call fcn.0040144c
pop ecx
mov ebx, eax
mov dword [0x40bc2c], ebx
test ebx, ebx
jne 0x406392
xor eax, eax
jmp 0x406468
push edi
mov edx, dword [0x40bc48]
push edx
push ebx
call fcn.004021a8
add esp, 0xc
jmp 0x4063c5
xor esi, esi
mov ebx, dword [0x40bc28]
jmp 0x4063bf
push eax
call fcn.00402328
pop ecx
test eax, eax
jne 0x4063bb
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4063af
lea ebx, [esi + 4]
push 4
mov dword [0x40bc30], ebx
inc ebx
push ebx
call fcn.0040124c
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x4063e8
xor eax, eax
jmp 0x406468
cmp dword [0x40bc28], 0
jne 0x406419
xor esi, esi
mov ebx, dword [0x40bc2c]
mov eax, dword [esp]
mov ebp, eax
jmp 0x40640a
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.00402328
pop ecx
mov edi, eax
test eax, eax
jne 0x406400
jmp 0x40644a
xor esi, esi
mov ebx, dword [0x40bc28]
mov eax, dword [esp]
mov edi, eax
jmp 0x406444
push eax
call fcn.00402328
pop ecx
test eax, eax
je 0x406439
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x40643d
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x406428
mov eax, dword [0x40bc28]
test eax, eax
je 0x40645a
push eax
call fcn.0040145c
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x40bc28], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4ac180
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x95000]
push edi
or ebp, 0xffffffff
jmp 0x4ac1a2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4ac1a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ac198
mov eax, 1
add ebx, ebx
jne 0x4ac1bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4ac1cc
jne 0x4ac1eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ac1eb
dec eax
add ebx, ebx
jne 0x4ac1d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4ac1b0
add ebx, ebx
jne 0x4ac1e7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4ac23d
xor ecx, ecx
sub eax, 3
jb 0x4ac203
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4ac272
sar eax, 1
mov ebp, eax
jmp 0x4ac20e
add ebx, ebx
jne 0x4ac20e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ac1dc
inc ecx
add ebx, ebx
jne 0x4ac21c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ac1dc
add ebx, ebx
jne 0x4ac229
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4ac21e
jne 0x4ac23a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4ac21e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4ac25c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4ac24e
jmp 0x4ac19e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4ac25c
add edi, ecx
jmp 0x4ac19e
pop esi
lea edi, [esi + 0xa8000]
mov ecx, 4
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4ac27e
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4ac283
lea edi, [esi + 0xa9000]
mov eax, dword [edi]
or eax, eax
je 0x4ac2eb
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xad388]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xad408]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4ac2a9
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xad410]
or eax, eax
je 0x4ac2e5
mov dword [ebx], eax
add ebx, 4
jmp 0x4ac2c6
call dword [esi + 0xad40c]
mov ebp, dword [esi + 0xad414]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
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 0x4ac31f
sub esp, 0xffffff80
jmp 0x40cd98
Function at 0x401cd0
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 0x401d28
cmp byte [esi + ebx - 1], 0xa
je 0x401cfc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4040f8], 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 0x401dd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
xor esi, esi
push ebx
sub esp, 0x28
mov dword [ebp - 0x18], eax
mov eax, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [esp], 0x1000
mov dword [ebp - 0x1c], eax
call eax
mov dword [ebp - 0x10], 0x1000
mov ebx, dword [0x404044]
mov ecx, eax
jmp 0x401e26
mov eax, ebx
inc ebx
movzx edx, byte [eax + 0x403040]
mov dword [0x404044], ebx
cmp dl, 0xa
je 0x401f48
lea edi, [esi + 1]
cmp edi, dword [ebp - 0x10]
jge 0x401e80
mov byte [ecx + esi], dl
mov esi, edi
cmp dword [0x404040], ebx
ja 0x401e00
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x404040
mov dword [esp + 8], 0x1000
mov dword [esp + 4], 0x403040
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReadFile]
mov ecx, dword [ebp - 0x14]
sub esp, 0x14
test eax, eax
je 0x401ea0
mov eax, dword [0x404040]
test eax, eax
je 0x401ea0
mov ebx, 1
xor eax, eax
jmp 0x401e03
shl dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x10]
mov byte [ebp - 0x14], dl
mov dword [esp], ecx
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_realloc]
movzx edx, byte [ebp - 0x14]
mov ecx, eax
jmp 0x401e21
mov edi, ecx
test esi, esi
je 0x401f58
mov byte [edi + esi], 0
dec esi
js 0x401ebc
add esi, edi
cmp byte [esi], 0xd
je 0x401f50
mov edx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [ebp - 0x10], edx
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0
call edx
sub esp, 0x18
mov esi, eax
add eax, eax
mov dword [esp], eax
mov eax, dword [ebp - 0x1c]
call eax
mov dword [esp + 0x14], esi
mov edx, dword [ebp - 0x10]
mov dword [esp + 0x10], eax
mov ebx, eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0
call edx
sub esp, 0x18
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, ecx
jmp 0x401eaa
mov byte [esi], 0
jmp 0x401ebc
xor ebx, ebx
jmp 0x401f37
Function at 0x402790
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
inc eax
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
nop
nop
nop

Function at 0x402800
Capabilities:
Write file on windows

Disassembly:
push ebp
mov edx, eax
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
cmp word [eax], 0
je 0x402940
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x402818
sub eax, edx
sar eax, 1
mov ebx, eax
mov ecx, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [esp + 8], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 4], 0
mov dword [esp], 0
call ecx
sub esp, 0x20
mov esi, eax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [esp + 0x14], esi
mov edi, eax
mov dword [esp + 0x1c], 0
mov dword [esp + 8], edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ebx
mov dword [esp + 4], 0
mov dword [esp], 0
call ecx
sub esp, 0x20
mov dword [esp], 0xfffffff5
call dword [sym.imp.kernel32.dll_GetStdHandle]
lea edx, [ebp - 0x10]
sub esp, 4
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
cmp dword [ebp - 0x10], esi
jae 0x4028f7
test byte [section..data], 2
jne 0x402910
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], str.Failed_to_write_output_n
mov dword [esp + 8], str.write_to_stdout
mov dword [esp + 4], 0x403000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x4028f7
xor ebx, ebx
jmp 0x402827
Function at 0x401100
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x414e60
push 0x67
push esi
call edi
push 0x64
push 0x414d98
push 0x6d
push esi
call edi
call fcn.004011e0
push 0
push esi
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x414e60
push 0x414d98
push 0
mov dword [0x414d94], esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, eax
test edi, edi
je 0x4011ca
push 0
push 0
push 0x401270
call fcn.00402c09
push esi
mov ecx, edi
call fcn.00401000
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
add esp, 0x10
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call esi
test eax, eax
je 0x4011bf
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
lea ecx, [ebp - 0x1c]
push ecx
call edi
lea edx, [ebp - 0x1c]
push edx
call ebx
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call esi
test eax, eax
jne 0x4011a2
pop ebx
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10