joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4714d0
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x70
lea ecx, [ebp - 0x70]
call fcn.0043fdd0
lea ecx, [ebp - 0x58]
call fcn.0043fdd0
lea ecx, [ebp - 0x40]
call fcn.0043fdd0
call fcn.00452330
push eax
lea eax, [ebp - 0x70]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0043fd20
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x471536
mov dword [ebp - 0xc], 0
lea ecx, [ebp - 0x40]
call fcn.0043fe90
lea ecx, [ebp - 0x58]
call fcn.0043fe90
lea ecx, [ebp - 0x70]
call fcn.0043fe90
mov eax, dword [ebp - 0xc]
jmp 0x471639
call fcn.00452330
push eax
lea edx, [ebp - 0x58]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.0043fd20
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x47157c
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x40]
call fcn.0043fe90
lea ecx, [ebp - 0x58]
call fcn.0043fe90
lea ecx, [ebp - 0x70]
call fcn.0043fe90
mov eax, dword [ebp - 0x14]
jmp 0x471639
mov dword [ebp - 4], 0
cmp dword [ebp + 0x24], 0
je 0x4715d7
call fcn.00452330
push eax
lea ecx, [ebp - 0x40]
push ecx
mov edx, dword [ebp + 0x24]
push edx
call fcn.0043fd20
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4715cc
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x40]
call fcn.0043fe90
lea ecx, [ebp - 0x58]
call fcn.0043fe90
lea ecx, [ebp - 0x70]
call fcn.0043fe90
mov eax, dword [ebp - 0x1c]
jmp 0x471639
lea ecx, [ebp - 0x40]
call fcn.00440140
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x58]
call fcn.00440140
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x70]
call fcn.00440140
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x2c]
push eax
mov ecx, dword [ebp + 0x28]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x40]
call fcn.0043fe90
lea ecx, [ebp - 0x58]
call fcn.0043fe90
lea ecx, [ebp - 0x70]
call fcn.0043fe90
mov eax, dword [ebp - 0x28]
mov esp, ebp
pop ebp
ret
Function at 0x475b40
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
lea ecx, [ebp - 0x4c]
call fcn.0043fdd0
lea ecx, [ebp - 0x34]
call fcn.0043fdd0
call fcn.00452330
push eax
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0043fd20
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x475b93
mov dword [ebp - 8], 0
lea ecx, [ebp - 0x34]
call fcn.0043fe90
lea ecx, [ebp - 0x4c]
call fcn.0043fe90
mov eax, dword [ebp - 8]
jmp 0x475c08
call fcn.00452330
push eax
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.0043fd20
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x475bce
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x34]
call fcn.0043fe90
lea ecx, [ebp - 0x4c]
call fcn.0043fe90
mov eax, dword [ebp - 0x10]
jmp 0x475c08
lea ecx, [ebp - 0x34]
call fcn.00440140
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x4c]
call fcn.00440140
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x34]
call fcn.0043fe90
lea ecx, [ebp - 0x4c]
call fcn.0043fe90
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x30d32821
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x3a8b24ab
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x433084
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x402990
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x34
cmp word [edx], 0
je 0x4029d8
mov ecx, edx
nop
add ecx, 2
cmp word [ecx], 0
jne 0x4029a0
sub ecx, edx
mov dword [esp + 8], ecx
xor ebx, ebx
mov dword [esp + 0x10], ebx
lea ebx, [ebp - 0xc]
mov dword [esp + 0xc], ebx
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
mov ebx, dword [ebp - 4]
sub esp, 0x14
leave
ret
xor ecx, ecx
jmp 0x4029ab
Function at 0x403990
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x28]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x24]
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call sym._RegSetValueExW_24
mov eax, dword [ebx + 0x20]
sub eax, 3
sub esp, 0x18
cmp eax, 1
jbe 0x403a00
mov dword [ebx + 0x28], 0
xor eax, eax
cmp word [ebx + 0xc], 0
mov dword [ebx + 0x2c], 0
setne al
inc eax
mov dword [ebx + 0x34], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp - 4]
leave
ret
mov eax, dword [ebx + 0x28]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x4039d5

Function at 0x403ab0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
lea ebx, [eax + 2]
movzx eax, word [eax + 2]
cmp eax, 9
je 0x403ad0
cmp eax, 0x20
jne 0x403ae1
nop
movzx eax, word [ebx + 2]
add ebx, 2
cmp eax, 0x20
je 0x403ad0
cmp eax, 9
je 0x403ad0
test eax, eax
je 0x403b00
cmp eax, 0x3b
je 0x403b00
mov dword [esi + 0x34], 2
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
mov eax, dword [esi + 0x1c]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x14]
mov dword [esp], eax
call sym._RegDeleteValueW_8
mov eax, ebx
mov dword [esi + 0x34], 2
sub esp, 8
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x403d70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [ebp + 8]
test eax, eax
je 0x403efe
mov eax, dword [0x40c068]
test eax, eax
je 0x403ec0
mov ebx, dword [0x40c060]
test ebx, ebx
je 0x403efe
mov dword [esp], ebx
mov esi, 0x40924e
mov dword [esp + 4], esi
call dword [sym.imp.ucrtbase.dll_wcspbrk]
test eax, eax
jne 0x403f09
mov edx, dword [0x40c060]
cmp word [edx], 0
je 0x403ef0
mov eax, edx
nop
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x403dd0
sub eax, edx
mov edi, eax
mov ebx, eax
sar edi, 1
lea eax, [eax + 2]
mov dword [esp + 4], edx
mov esi, dword [0x40c064]
mov dword [esp + 8], eax
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_memmove]
mov eax, dword [0x40c068]
mov edx, eax
sub edx, edi
cmp edx, 2
jbe 0x403e90
mov ecx, dword [ebp + 8]
mov edx, edi
add ebx, esi
mov dword [esp], ebx
not edx
add eax, edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov ecx, 2
mov dword [esp + 4], ecx
call dword [sym.imp.ucrtbase.dll_fread]
test eax, eax
jne 0x403e50
mov ebx, dword [0x40c064]
xor edx, edx
mov dword [0x40c060], edx
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [0x40c064]
add eax, edi
mov word [ebx + eax*2], 0
test ebx, ebx
mov dword [0x40c060], ebx
jne 0x403d9f
mov dword [esp], ebx
xor ebx, ebx
call dword [sym.imp.ucrtbase.dll_free]
xor eax, eax
mov dword [0x40c068], eax
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], esi
lea edx, [eax + eax]
mov dword [0x40c068], edx
shl eax, 2
mov dword [esp + 4], eax
mov dword [ebp - 0x1c], edx
call dword [sym.imp.ucrtbase.dll_realloc]
mov edx, dword [ebp - 0x1c]
mov dword [0x40c064], eax
mov esi, eax
mov eax, edx
jmp 0x403e0d
mov dword [esp], 0x2000
mov edi, 0x1000
mov dword [0x40c068], edi
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [0x40c064], eax
mov ebx, eax
mov word [eax], 0
mov dword [0x40c060], eax
jmp 0x403d9f
mov eax, 2
xor ebx, ebx
xor edi, edi
jmp 0x403de4
mov ebx, dword [0x40c064]
jmp 0x403e6c
cmp word [eax], 0xd
lea edx, [eax + 2]
mov dword [0x40c060], edx
je 0x403f22
mov word [eax], 0
jmp 0x403e44
cmp word [eax + 2], 0xa
jne 0x403f18
lea edx, [eax + 4]
mov dword [0x40c060], edx
jmp 0x403f18
Function at 0x4043e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [0x40c078]
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x1c], eax
call eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x404558
mov eax, dword [0x40c074]
test eax, eax
je 0x404528
mov esi, dword [0x40c06c]
test esi, esi
je 0x404558
mov dword [esp], esi
mov edi, 0x409254
mov dword [esp + 4], edi
call dword [sym.imp.ucrtbase.dll_strpbrk]
test eax, eax
jne 0x404568
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov edi, dword [0x40c070]
mov dword [esp + 4], esi
mov dword [esp], edi
mov ebx, eax
lea eax, [eax + 1]
mov dword [esp + 8], eax
call dword [sym.imp.ucrtbase.dll_memmove]
mov esi, dword [0x40c074]
mov eax, esi
sub eax, ebx
cmp eax, 2
jbe 0x404500
mov eax, dword [ebp + 8]
add edi, ebx
mov dword [esp], edi
mov dword [esp + 0xc], eax
mov eax, ebx
not eax
lea edx, [eax + esi]
mov esi, 1
mov dword [esp + 8], edx
mov dword [esp + 4], esi
call dword [sym.imp.ucrtbase.dll_fread]
test eax, eax
jne 0x4044c0
mov eax, dword [0x40c070]
xor ecx, ecx
mov dword [0x40c06c], ecx
test eax, eax
je 0x4044b3
call sym._GetWideString.part.0
mov dword [0x40c078], eax
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [0x40c070]
mov dword [0x40c06c], esi
add ebx, esi
test esi, esi
mov byte [ebx + eax], 0
jne 0x404421
mov dword [esp], esi
xor eax, eax
mov dword [0x40c078], eax
mov eax, dword [ebp - 0x1c]
call eax
xor edx, edx
xor eax, eax
mov dword [0x40c074], edx
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], edi
add esi, esi
mov dword [esp + 4], esi
mov dword [0x40c074], esi
call dword [sym.imp.ucrtbase.dll_realloc]
mov dword [0x40c070], eax
mov edi, eax
jmp 0x404473
mov dword [esp], 0x1000
mov eax, 0x1000
mov dword [0x40c074], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [0x40c070], eax
mov esi, eax
mov byte [eax], 0
mov dword [0x40c06c], eax
jmp 0x404421
mov esi, dword [0x40c070]
jmp 0x4044da
cmp byte [eax], 0xd
lea ecx, [eax + 1]
mov dword [0x40c06c], ecx
je 0x404590
mov byte [eax], 0
mov eax, esi
call sym._GetWideString.part.0
mov dword [0x40c078], eax
jmp 0x4044b8
cmp byte [eax + 1], 0xa
jne 0x404576
lea ecx, [eax + 2]
mov dword [0x40c06c], ecx
jmp 0x404576
Function at 0x404920
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], esi
mov esi, dword [ebp + 0xc]
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x404961
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebx + 0x14]
mov dword [ebx + 0x18], 0
mov dword [esp], eax
call sym._RegCloseKey_4
mov dword [ebx + 0x14], 0
sub esp, 4
movzx eax, word [esi]
and eax, 0xffdf
cmp eax, 0x48
je 0x404988
mov dword [ebx + 0x34], 2
mov eax, esi
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0xc]
mov eax, esi
call sym._parse_key_name
test eax, eax
je 0x40496e
mov edx, dword [ebp - 0xc]
test edx, edx
je 0x40496e
cmp word [edx], 0
je 0x40496e
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._RegDeleteTreeW_8
sub esp, 8
jmp 0x40496e
Function at 0x404ce0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
cmp dword [ebp + 8], 4
mov ebx, dword [ebp + 0xc]
jg 0x404d0b
mov dword [ebp - 0x40], 0
jne 0x404d69
mov edx, dword [ebx + 0xc]
movzx eax, word [edx]
and eax, 0xfffd
cmp eax, 0x2d
je 0x404d40
mov dword [esp], 0x69
call sym._output_message
mov eax, dword [ebx + 4]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsupr]
mov dword [esp], 0x6a
mov dword [esp + 4], eax
call sym._output_message
mov eax, 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea esi, [edx + 2]
mov eax, str.reg:32
mov edi, dword [sym.imp.kernel32.dll_lstrcmpiW]
mov dword [esp + 4], eax
mov dword [esp], esi
call edi
sub esp, 8
test eax, eax
jne 0x404f00
mov dword [ebp - 0x40], 0x200
mov esi, dword [ebx + 8]
mov ebx, 0x4092c0
mov dword [esp + 4], ebx
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll__wfopen]
test eax, eax
mov ebx, eax
je 0x404ec0
mov dword [esp + 0xc], eax
mov edx, 1
mov ecx, 2
mov dword [esp + 8], edx
lea eax, [ebp - 0x52]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_fread]
dec eax
jne 0x404ea0
movzx eax, byte [ebp - 0x52]
movzx edx, byte [ebp - 0x51]
cmp al, 0xff
je 0x404ee0
xor esi, esi
mov ecx, sym._get_lineA
mov dword [ebp - 0x48], esi
lea esi, [ebp - 0x50]
mov word [ebp - 0x4c], ax
lea eax, [ebp - 0x4c]
mov word [ebp - 0x4a], dx
mov edx, sym._header_state
mov dword [0x40c07c], ecx
mov dword [ebp - 0x50], ebx
mov word [ebp - 0x44], 0xffff
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
jmp 0x404e3a
mov edx, dword [ebp - 0x1c]
mov edx, dword [edx*4 + 0x409380]
mov dword [esp + 4], eax
mov dword [esp], esi
call edx
test eax, eax
jne 0x404e30
cmp word [ebp - 0x44], 4
je 0x404ea0
mov eax, dword [ebp - 0x34]
mov esi, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x404e87
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x38], 0
mov dword [esp], eax
call sym._RegCloseKey_4
mov dword [ebp - 0x3c], 0
sub esp, 4
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fclose]
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fclose]
lea esp, [ebp - 0xc]
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], esi
mov dword [esp], 0x192
call sym._output_message
mov eax, 1
jmp 0x404d38
cmp dl, 0xfe
mov edi, sym._get_lineA
sete cl
movzx esi, cl
mov ecx, sym._get_lineW
cmovne ecx, edi
jmp 0x404dc8
mov dword [esp], esi
mov eax, 0x4092b2
mov dword [esp + 4], eax
call edi
sub esp, 8
test eax, eax
jne 0x404d0b
mov dword [ebp - 0x40], 0x100
jmp 0x404d69
Function at 0x405f00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
push ebx
sub esp, 0x5c
mov dword [esp], 0xfffffff5
mov eax, dword [sym.imp.kernel32.dll_GetStdHandle]
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
call eax
sub esp, 4
mov dword [esp + 0x10], edi
lea edi, [ebp - 0x1c]
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteConsoleW]
sub esp, 0x14
test eax, eax
je 0x405f50
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [sym.imp.kernel32.dll_GetConsoleOutputCP]
mov dword [ebp - 0x3c], ecx
call ecx
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x1c], edx
xor edx, edx
mov dword [esp + 0x14], edx
xor edx, edx
mov dword [esp + 4], edx
mov edx, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [esp + 0x18], ecx
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [ebp - 0x38], edx
call edx
mov dword [ebp - 0x30], eax
sub esp, 0x20
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x34], eax
call ecx
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp - 0x34]
mov dword [esp + 0x18], edx
mov edx, dword [ebp - 0x30]
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 0x10], ecx
xor ecx, ecx
mov dword [esp + 4], ecx
mov dword [esp + 0x14], edx
mov edx, dword [ebp - 0x38]
mov dword [esp], eax
call edx
mov ebx, dword [ebp - 0x2c]
sub esp, 0x20
mov dword [esp], 0xfffffff5
call ebx
mov edx, dword [ebp - 0x30]
xor ebx, ebx
sub esp, 4
mov dword [esp + 0xc], edi
mov edi, dword [ebp - 0x34]
mov dword [esp + 0x10], ebx
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], edi
call dword [sym.imp.kernel32.dll_WriteFile]
mov dword [ebp + 8], edi
sub esp, 0x14
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp dword [sym.imp.ucrtbase.dll_free]

Function at 0x406b70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
test eax, eax
je 0x406be0
cmp byte [esi + eax - 1], 0xa
mov ebx, eax
je 0x406bd8
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x40c124], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov eax, 1
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
xor eax, eax
jmp 0x406b9d
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret
Function at 0x407220
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0xf0
mov ebx, dword [ebp + 0xc]
mov dword [esp], ebx
call sym.___wine_dbg_get_channel_flags
movzx ecx, byte [ebp + 8]
movzx eax, al
sar eax, cl
test al, 1
je 0x4073f8
mov edx, dword [0x40c124]
mov eax, dword fs:[0x18]
cmp dword [eax + 0x24], edx
je 0x4073e8
test byte [0x408030], 8
jne 0x407390
lea edi, [esp + 0x28]
mov esi, edi
test byte [0x408040], 8
jne 0x407350
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov ecx, str._04x:
mov dword [esp + 4], ecx
mov dword [esp], esi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x4072ab
cmp dword [ebp + 8], 3
jbe 0x407310
mov dword [esp], 2
mov ebx, edi
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov esi, dword [ebx]
add ebx, 4
lea ecx, [esi - 0x1010101]
not esi
and ecx, esi
and ecx, 0x80808080
je 0x4072ba
mov dword [esp + 0xc], eax
mov esi, ecx
mov eax, 1
mov dword [esp + 4], eax
shr esi, 0x10
test ecx, 0x8080
mov dword [esp], edi
cmove ecx, esi
lea esi, [ebx + 2]
mov dl, cl
cmove ebx, esi
add dl, cl
sbb ebx, 3
sub ebx, edi
mov dword [esp + 8], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebp + 0x10]
add eax, esi
inc ebx
mov dword [esp + 0x10], ebx
mov dword [esp], eax
mov dword [esp + 0x14], edx
mov edx, dword [ebp + 8]
mov ecx, dword [edx*4 + 0x4098c0]
mov edx, str._s:_s:_s
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov ecx, edi
sub ecx, eax
add ecx, 0xc8
mov dword [esp + 4], ecx
call sym._snprintf.constprop.0
jmp 0x4072ab
mov dword [esp], 0x408040
call sym.___wine_dbg_get_channel_flags
and al, 8
je 0x407280
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov ecx, str._04x:
mov dword [esp], esi
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call sym._sprintf
add esi, eax
jmp 0x407280
mov dword [esp], 0x408030
call sym.___wine_dbg_get_channel_flags
and al, 8
je 0x40726d
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
mov esi, str._3u._03u:
mov dword [esp + 4], esi
lea edi, [esp + 0x28]
mov dword [esp], edi
mov ecx, eax
mul edx
shr edx, 6
mov dword [esp + 8], edx
imul eax, edx, 0x3e8
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea esi, [edi + eax]
jmp 0x407273
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0xffffffff
jmp 0x407308
Function at 0x4074c0
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
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 dl
movzx edx, dl
inc edx
mov dword [esp], edx
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 sub.ucrtbase.dll_exit
nop
nop
Function at 0x402218
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
push ebx
lea eax, [ebp - 0x184]
push 0x104
push eax
call fcn.00402a13
lea eax, [ebp - 0x184]
push 0x405cc8
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x402271
lea eax, [ebp - 0x184]
push eax
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push 0x405ccc
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0xc
push 1
pop eax
jmp 0x4022c1
push esi
mov esi, dword [sym.imp.MSVCRT.dll_fread]
push edi
mov edi, 0x80
push ebx
push edi
lea eax, [ebp - 0x80]
push 1
push eax
call esi
add esp, 0x10
test eax, eax
je 0x4022b5
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
add ecx, 0x20
push ecx
push eax
lea eax, [ebp - 0x80]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
push ebx
push edi
lea eax, [ebp - 0x80]
push 1
push eax
call esi
add esp, 0x20
jmp 0x40228b
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
pop edi
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x402790
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00402864
pop ecx
test al, al
pop ecx
jne 0x4027bc
push 1
push 0x405e70
call fcn.00402d2f
pop ecx
pop ecx
push 2
call dword [sym.imp.MSVCRT.dll_exit]
push dword [ebp + 0x10]
call fcn.004022c4
cmp eax, 1
pop ecx
jge 0x4027e0
push 1
push 0x405ea4
call fcn.00402d2f
pop ecx
pop ecx
push 1
call dword [sym.imp.MSVCRT.dll_exit]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00401501
mov esi, dword [ebp + 0x20]
push dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
mov dword [esi], eax
push ebx
and byte [ebx], 0
push dword [esi]
push dword [ebp + 0x10]
call fcn.0040292c
add esp, 0x18
test al, al
jne 0x402860
push edi
mov edi, dword [esi]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, 0x405edc
add edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
add edx, ecx
push edx
call fcn.00401d09
push dword [ebp + 0x18]
mov edi, eax
push dword [esi]
push ebx
push edi
call dword [sym.imp.MSVCRT.dll_sprintf]
push 1
push edi
call fcn.00402d2f
add esp, 0x1c
push 4
call dword [sym.imp.MSVCRT.dll_exit]
pop edi
pop esi
pop ebx
pop ebp
ret