joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40fc50
Capabilities:
Get common file path

Disassembly:
sub esp, 0x624
mov eax, dword [0x459210]
xor eax, esp
mov dword [esp + 0x620], eax
push esi
push edi
xor edi, edi
cmp dword [0x45a7ec], edi
mov esi, ecx
je 0x40fc9c
push ebx
push 0xffffffffffffffff
push esi
xor ebx, ebx
mov eax, 0x45a7d8
call fcn.00401322
pop ebx
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x620]
xor ecx, esp
call fcn.004351c0
add esp, 0x624
ret
push 0x20a
lea eax, [esp + 0xe]
push edi
push eax
mov word [esp + 0x14], di
call fcn.00435430
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
add eax, 0xffffffff
cmp eax, 0x103
ja 0x40fd6a
push 0x410
lea edx, [esp + 0x21a]
push edi
push edx
mov word [esp + 0x21e], di
mov word [esp + 0x220], di
call fcn.00435430
add esp, 0xc
push 0x208
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x40fd48
cmp eax, edi
je 0x40fd48
mov word [esp + eax*2 + 0x214], di
lea eax, [esp + 0x214]
call fcn.00401248
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x620]
xor ecx, esp
call fcn.004351c0
add esp, 0x624
ret
lea eax, [esp + 8]
call fcn.00401248
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x620]
xor ecx, esp
call fcn.004351c0
add esp, 0x624
ret
mov ecx, dword [esp + 0x628]
pop edi
pop esi
xor ecx, esp
xor al, al
call fcn.004351c0
add esp, 0x624
ret

Function at 0x40fd90
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x459210]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push esi
mov esi, dword [esp + 0x21c]
push edi
push 0x20a
lea eax, [esp + 0x12]
push 0
push eax
mov ebx, ecx
mov edi, edx
mov word [esp + 0x18], 0
call fcn.00435430
mov eax, 8
add esp, 0xc
cmp dword [edi + 0x18], eax
jb 0x40fddc
mov edi, dword [edi + 4]
jmp 0x40fddf
add edi, 4
cmp dword [ebx + 0x18], eax
jb 0x40fde9
mov ebx, dword [ebx + 4]
jmp 0x40fdec
add ebx, 4
lea ecx, [esp + 0xc]
push ecx
push 0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jbe 0x40fe2c
lea eax, [esp + 0xc]
mov word [esp + 0x216], 0
call fcn.00401248
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.004351c0
add esp, 0x210
ret
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebx
xor ecx, esp
xor al, al
call fcn.004351c0
add esp, 0x210
ret
Function at 0x410180
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x50
mov eax, dword [0x459210]
xor eax, esp
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x58]
push ebx
push ebp
mov ebp, dword [esp + 0x5c]
cdq
push esi
push edx
mov esi, ecx
push eax
lea ecx, [esp + 0x18]
call fcn.0040be90
add esp, 8
push 0xffffffffffffffff
push esi
xor ebx, ebx
mov eax, edi
call fcn.00401322
push 0x44a4d4
call fcn.0043552d
add esp, 4
mov ebx, eax
push 0x44a4d4
mov eax, esi
call fcn.00404237
lea eax, [esp + 0x10]
push eax
call fcn.0043552d
add esp, 4
lea ecx, [esp + 0x10]
mov ebx, eax
push ecx
mov eax, esi
call fcn.00404237
push 0x44a4d8
call fcn.0043552d
add esp, 4
mov ebx, eax
push 0x44a4d8
mov eax, esi
call fcn.00404237
push 0xffffffffffffffff
push 0
mov eax, ebp
call fcn.00404193
cmp dword [esi + 0x18], 8
jb 0x41021d
mov esi, dword [esi + 4]
jmp 0x410220
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [esp + 0x54]
pop esi
xor edx, edx
cmp eax, 0xffffffff
pop ebp
sete dl
pop ebx
xor ecx, esp
mov al, dl
call fcn.004351c0
add esp, 0x50
ret

Function at 0x410270
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ecx
xor edx, edx
mov eax, edx
and eax, 1
sub eax, 1
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x461240], ecx
add edx, 1
cmp edx, 0x100
jb 0x410273
cmp edx, 0x800
jae 0x41035b
nop
mov eax, dword [edx*4 + 0x460e40]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x461240]
add edx, 1
cmp edx, 0x800
mov dword [edx*4 + 0x46123c], eax
jb 0x410330
mov dword [0x45da14], 0x4103c0
call fcn.00410590
test eax, eax
jne 0x410378
mov dword [0x45da14], 0x410470
pop ecx
ret
Function at 0x41f08f
Capabilities:
Hash data using crc32b

Disassembly:
xor ecx, ecx
mov eax, ecx
push 8
shl eax, 0x18
pop edx
test eax, eax
jns 0x41f0a6
add eax, eax
xor eax, 0x4c11db7
jmp 0x41f0a8
add eax, eax
dec edx
test edx, edx
jg 0x41f099
mov dword [ecx*4 + 0x45da18], eax
inc ecx
cmp ecx, 0x100
jb 0x41f091
ret
Function at 0x42d2aa
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x398]
sub esp, 0x418
mov eax, dword [0x459210]
xor eax, ebp
mov dword [ebp + 0x394], eax
push esi
push edi
xor edi, edi
push 0x40e
lea eax, [ebp - 0x7a]
push edi
push eax
mov esi, ecx
mov word [ebp - 0x7c], di
call fcn.00435430
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
push dword [ebp + 0x3a0]
mov dword [ebp - 0x80], edi
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
je 0x42d2fd
xor al, al
jmp 0x42d336
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x42d31e
cmp dword [ebp - 0x80], edi
je 0x42d2f9
push dword [ebp - 0x80]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x42d2f9
lea eax, [ebp - 0x7c]
call fcn.00401248
cmp dword [ebp - 0x80], edi
je 0x42d334
push dword [ebp - 0x80]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov al, 1
mov ecx, dword [ebp + 0x394]
pop edi
xor ecx, ebp
pop esi
call fcn.004351c0
add ebp, 0x398
leave
ret

Function at 0x42d34d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push 0x38
xor esi, esi
lea eax, [ebp - 0x38]
push esi
push eax
call fcn.00435430
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], esi
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], str.regedit
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], 1
mov dword [ebp - 4], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
pop esi
je 0x42d3b0
push 0x20
pop eax
cmp eax, dword [ebp - 0x1c]
sbb eax, eax
neg eax
leave
ret
xor al, al
leave
ret
Function at 0x42d3b4
Capabilities:
Query environment variable

Disassembly:
push 0x2c
mov eax, 0x4458d7
call fcn.004372c5
push 1
lea eax, [ebp - 0x30]
mov esi, ecx
xor ebx, ebx
push eax
mov dword [ebp - 0x30], ebx
xor eax, eax
mov ecx, edi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], 0x25
call fcn.00403e7b
cmp eax, 0xffffffff
mov eax, edi
jne 0x42d3f3
call fcn.00403d1d
mov eax, esi
jmp 0x42d48e
lea esi, [ebp - 0x2c]
call fcn.00403d1d
mov dword [ebp - 4], ebx
cmp dword [edi + 0x18], 8
lea eax, [edi + 4]
mov dword [ebp - 0x38], eax
jb 0x42d40c
mov eax, dword [eax]
push ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x42d421
mov eax, edi
jmp 0x42d477
xor ecx, ecx
push 2
pop edx
lea eax, [esi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004351bb
cmp dword [edi + 0x18], 8
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x38]
pop ecx
jb 0x42d447
mov eax, dword [eax]
lea ecx, [esi + 1]
push ecx
push dword [ebp - 0x30]
push eax
call ebx
test eax, eax
jbe 0x42d46b
cmp eax, esi
ja 0x42d46b
mov ecx, dword [ebp - 0x30]
and word [ecx + eax*2], 0
mov eax, ecx
lea esi, [ebp - 0x2c]
call fcn.00401248
push dword [ebp - 0x30]
call fcn.00436179
pop ecx
lea eax, [ebp - 0x2c]
mov esi, dword [ebp - 0x34]
call fcn.00403d1d
push 0
push 1
lea esi, [ebp - 0x2c]
call fcn.004012b6
mov eax, dword [ebp - 0x34]
call fcn.00437348
ret
Function at 0x42e570
Capabilities:
Get file size
Write file on windows

Disassembly:
sub esp, 0xc
push ebx
mov eax, 0x8000
cmp dword [esp + 0x18], eax
push ebp
push edi
jbe 0x42e585
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
xor ebp, ebp
push ebp
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
mov dword [esp + 0x20], ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
cmp dword [esi + 0x20], ebp
je 0x42e68d
cmp eax, ebp
je 0x42e68d
mov ecx, dword [esp + 0x20]
cmp dword [esp + 0xc], ecx
jae 0x42e68d
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0x10]
mov ebx, eax
mov eax, dword [esi]
push edx
push eax
mov dword [esp + 0x18], ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x42e5fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x42e612
mov ecx, dword [esp + 0x10]
push 1
push ebp
push ebp
push ecx
call fcn.0043f3f0
xor ecx, ecx
add eax, edi
adc edx, ecx
jmp 0x42e616
xor eax, eax
xor edx, edx
push ebp
push ebx
push edx
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0xffffffffffffffff
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], ebp
lea eax, [esi + 4]
push ecx
xor ebx, ebx
mov word [ecx + 4], bp
call fcn.00401322
mov ecx, dword [esi + 0x20]
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
call eax
cmp eax, ebp
jne 0x42e68d
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0xc]
push ebp
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esi]
add eax, ecx
push eax
push edx
mov dword [esp + 0x28], ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x14]
neg eax
sbb eax, eax
add dword [esp + 0xc], ecx
and eax, 0x7fffbffb
add eax, 0x80004005
cmp eax, ebp
jne 0x42e5c3
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0xc]
pop edi
pop ebp
mov dword [edx], ecx
pop ebx
add esp, 0xc
ret 0xc

Function at 0x42e8e0
Capabilities:
Get file size

Disassembly:
push ecx
mov edx, dword [ecx]
push esi
lea eax, [esp + 4]
push eax
push edx
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42e90e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x42e90e
xor al, al
pop esi
pop ecx
ret
mov eax, dword [esp + 4]
push 1
push 0
push 0
push eax
call fcn.0043f3f0
xor ecx, ecx
add eax, esi
adc edx, ecx
mov dword [edi], eax
mov dword [edi + 4], edx
mov al, 1
pop esi
pop ecx
ret
Function at 0x42ecf3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x42ed01
and dword [esi], 0
and dword [ebp + 0x10], 0
cmp dword [ebp + 0xc], 0
jbe 0x42ed3e
mov eax, 0x8000
cmp dword [ebp + 0xc], eax
jae 0x42ed18
mov eax, dword [ebp + 0xc]
push 0
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp + 8]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test esi, esi
je 0x42ed3a
mov ecx, dword [ebp + 0x10]
add dword [esi], ecx
test eax, eax
je 0x42ed42
xor eax, eax
jmp 0x42ed5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x42ed53
mov eax, 0x80004005
jmp 0x42ed5f
jle 0x42ed5f
and eax, 0xffff
or eax, 0x80070000
pop esi
pop ebp
ret 0xc

Function at 0x432461
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
mov edx, dword [edx]
sub esp, 0xc
xor eax, eax
and edx, 7
cmp ecx, 5
push edi
mov edi, dword [ebp + 8]
jb 0x4325ad
add dword [ebp + 0xc], 5
or dword [ebp - 4], 0xffffffff
lea ecx, [edi + ecx - 4]
push ebx
mov dword [ebp - 8], ecx
push esi
lea esi, [eax + edi]
jmp 0x43249d
mov al, byte [esi]
and al, 0xfe
cmp al, 0xe8
je 0x4324a2
inc esi
cmp esi, dword [ebp - 8]
jb 0x432494
mov eax, esi
sub eax, edi
cmp esi, dword [ebp - 8]
jae 0x43258e
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, 3
jbe 0x432521
xor edx, edx
mov cl, byte [esi + 4]
test cl, cl
mov dword [ebp - 4], eax
je 0x4324ce
cmp cl, 0xff
jne 0x432550
xor ebx, ebx
mov bh, cl
movzx ecx, byte [esi + 2]
mov bl, byte [esi + 3]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [esi + 1]
shl ebx, 8
or ebx, ecx
mov edi, ebx
sub edi, eax
sub edi, dword [ebp + 0xc]
test edx, edx
mov ebx, edi
mov dword [ebp - 0xc], ebx
je 0x432561
movzx edi, byte [edx + 0x44b510]
push 0x18
shl edi, 3
pop ecx
sub ecx, edi
shr ebx, cl
test bl, bl
je 0x432511
cmp bl, 0xff
jne 0x43255e
push 0x20
pop ecx
sub ecx, edi
xor edi, edi
inc edi
shl edi, cl
dec edi
xor edi, dword [ebp - 0xc]
jmp 0x4324e9
dec ecx
shl edx, cl
and edx, 7
je 0x4324bb
movzx ecx, byte [edx + 0x44b510]
mov ebx, esi
sub ebx, ecx
cmp byte [edx + 0x44b508], 0
mov cl, byte [ebx + 4]
je 0x43254d
test cl, cl
je 0x43254d
cmp cl, 0xff
jne 0x4324bb
mov dword [ebp - 4], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x43248f
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [esi + 2], cl
mov byte [esi + 1], bl
add eax, 5
jmp 0x43248f
mov esi, eax
sub esi, dword [ebp - 4]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
and ecx, edx
mov edx, dword [ebp + 0x10]
pop esi
mov dword [edx], ecx
pop ebx
pop edi
leave
ret
Function at 0x432764
Capabilities:
Hash data using sha256

Disassembly:
and dword [eax + 0x20], 0
and dword [eax + 0x24], 0
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
ret

Function at 0x432c7b
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea edi, [eax + 0x1c]
shr eax, 2
mov esi, eax
shr esi, 1
add esi, 3
mov dword [ecx], esi
add ecx, 0x10
xor esi, esi
test eax, eax
mov dword [ebp - 0xc], edi
mov dword [ebp + 8], eax
jbe 0x432cb2
mov ebx, dword [edx]
mov dword [ecx + esi*4], ebx
inc esi
add edx, 4
cmp esi, eax
jb 0x432ca5
cmp esi, edi
jae 0x432d82
mov edx, esi
sub edx, eax
lea eax, [ecx + edx*4]
mov dword [ebp - 4], eax
xor edx, edx
mov eax, esi
div dword [ebp + 8]
mov ebx, dword [ecx + esi*4 - 4]
test edx, edx
mov dword [ebp - 8], eax
jne 0x432d22
mov edi, 0xff
mov eax, ebx
and eax, edi
mov dh, byte [eax + str.cw]
mov eax, ebx
shr eax, 0x18
mov dl, byte [eax + str.cw]
mov eax, ebx
shr eax, 0x10
and eax, edi
movzx eax, byte [eax + str.cw]
mov edi, dword [ebp - 8]
movzx edi, byte [edi + 0x45a178]
shl edx, 8
or edx, eax
movzx eax, bh
movzx eax, byte [eax + str.cw]
shl edx, 8
xor eax, edi
or edx, eax
mov ebx, edx
jmp 0x432d6a
cmp dword [ebp + 8], 6
jbe 0x432d6a
cmp edx, 4
jne 0x432d6a
mov eax, ebx
shr eax, 0x10
mov edi, 0xff
and eax, edi
movzx eax, byte [eax + str.cw]
mov edx, ebx
shr edx, 0x18
mov ah, byte [edx + str.cw]
movzx edx, bh
movzx edx, byte [edx + str.cw]
shl eax, 8
and ebx, edi
or eax, edx
movzx edx, byte [ebx + str.cw]
shl eax, 8
or eax, edx
mov ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
add dword [ebp - 4], 4
xor eax, ebx
mov dword [ecx + esi*4], eax
inc esi
cmp esi, dword [ebp - 0xc]
jb 0x432cc4
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4351c0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x459210]
jne 0x4351ca
repz ret
jmp fcn.00437366

Function at 0x43868f
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 + 0x459230]
je 0x4386aa
inc edi
cmp edi, 0x17
jb 0x43869b
cmp edi, 0x17
jae 0x43882a
push ebp
push 3
call fcn.0043d4cd
cmp eax, 1
pop ecx
je 0x4387f6
push 3
call fcn.0043d4cd
test eax, eax
pop ecx
jne 0x4386de
cmp dword [0x459094], 1
je 0x4387f6
cmp ebx, 0xfc
je 0x438829
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x45d1f0
push ebp
call fcn.0043746a
add esp, 0xc
test eax, eax
je 0x438714
push esi
push esi
push esi
push esi
push esi
call fcn.004357d5
add esp, 0x14
push 0x104
mov esi, 0x45d209
push esi
push 0
mov byte [0x45d30d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x438758
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0043746a
add esp, 0xc
test eax, eax
je 0x438758
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004357d5
add esp, 0x14
push esi
call fcn.00435740
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x43879d
push esi
call fcn.00435740
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x45d504
push 0x448a8c
sub ecx, eax
push ecx
push eax
call fcn.0043aec9
add esp, 0x14
test eax, eax
je 0x43879d
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004357d5
add esp, 0x14
jmp 0x43879f
xor esi, esi
push 0x448a88
push ebx
push ebp
call fcn.0043d45c
add esp, 0xc
test eax, eax
je 0x4387bf
push esi
push esi
push esi
push esi
push esi
call fcn.004357d5
add esp, 0x14
push dword [edi*8 + 0x459234]
push ebx
push ebp
call fcn.0043d45c
add esp, 0xc
test eax, eax
je 0x4387e1
push esi
push esi
push esi
push esi
push esi
call fcn.004357d5
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0043d29f
add esp, 0xc
jmp 0x438829
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x438829
cmp ebp, 0xffffffff
je 0x438829
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x459234]
push dword [esi]
call fcn.00435740
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 0x43d29f
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00437972
xor ebx, ebx
cmp dword [0x45d920], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x43d375
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x43d455
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x43d455
push eax
call fcn.00437904
mov dword [esp], 0x449308
push edi
mov dword [0x45d920], eax
call esi
push eax
call fcn.00437904
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x45d924], eax
call esi
push eax
call fcn.00437904
mov dword [0x45d928], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00438110
test eax, eax
pop ecx
pop ecx
je 0x43d343
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004357d5
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x43d375
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00437904
cmp eax, ebx
pop ecx
mov dword [0x45d930], eax
je 0x43d375
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00437904
pop ecx
mov dword [0x45d92c], eax
mov eax, dword [0x45d92c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x43d3fa
cmp dword [0x45d930], ecx
je 0x43d3fa
push eax
call fcn.0043797b
push dword [0x45d930]
mov esi, eax
call fcn.0043797b
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x43d3fa
cmp edi, ebx
je 0x43d3fa
call esi
cmp eax, ebx
je 0x43d3c7
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43d3c7
test byte [ebp - 0x18], 1
jne 0x43d3fa
lea eax, [ebp - 0x10]
push eax
call fcn.00438147
test eax, eax
pop ecx
je 0x43d3e2
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004357d5
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x43d3f1
or dword [ebp + 0x10], 0x200000
jmp 0x43d435
or dword [ebp + 0x10], 0x40000
jmp 0x43d435
mov eax, dword [0x45d924]
cmp eax, dword [ebp - 8]
je 0x43d435
push eax
call fcn.0043797b
cmp eax, ebx
pop ecx
je 0x43d435
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x43d435
mov eax, dword [0x45d928]
cmp eax, dword [ebp - 8]
je 0x43d435
push eax
call fcn.0043797b
cmp eax, ebx
pop ecx
je 0x43d435
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45d920]
call fcn.0043797b
cmp eax, ebx
pop ecx
je 0x43d455
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43d457
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4013a0
Capabilities:
Get process heap flags
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [0x406008]
test eax, eax
je 0x4014f8
lea edx, [ebp + 0xc]
mov dword [esp + 8], edx
mov edx, dword [ebp + 8]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.user32.dll_wvsprintfW]
mov edx, dword [global_toConsole]
sub esp, 0xc
mov esi, eax
test edx, edx
jne 0x4014b0
mov ebx, dword [0x406004]
mov dword [ebp - 0x1c], 0
mov dword [global_toConsole], 0
test ebx, ebx
je 0x401570
mov edi, dword [0x406008]
call dword [sym.imp.kernel32.dll_GetOEMCP]
lea edx, [ebp - 0x1c]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], edx
mov dword [esp + 0xc], esi
mov dword [esp + 0x18], 0x40404e
mov dword [esp + 0x14], 0xffff
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov esi, dword [0x406004]
sub esp, 0x20
mov ebx, eax
mov dword [esp], 0xfffffff5
call dword [sym.imp.kernel32.dll_GetStdHandle]
lea edx, [ebp - 0x20]
sub esp, 4
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
mov eax, dword [section..bss]
test eax, eax
jne 0x40149d
test byte [0x403004], 8
jne 0x4015b0
mov dword [section..bss], 1
mov eax, dword [ebp - 0x20]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [0x406008]
mov dword [esp], 0xfffffff5
call dword [sym.imp.kernel32.dll_GetStdHandle]
lea edx, [ebp - 0x20]
sub esp, 4
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
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 0x4013e0
jmp 0x40147d
mov dword [esp + 8], 0x1fffe
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [0x406008], eax
sub esp, 0xc
test eax, eax
jne 0x4013b6
test byte [0x403004], 1
jne 0x401540
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], str.Out_of_memory___could_not_allocate_2_x_64_KB_buffers_n
mov dword [esp + 8], global___func__.0
mov dword [esp + 4], global___dbch
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
xor eax, eax
jmp 0x401538
mov dword [esp + 8], 0xffff
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [0x406004], eax
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x40152d
jmp 0x4013ff
mov eax, dword [global_toConsole]
mov dword [esp + 0xc], str.Writing_to_console____d__n
mov dword [esp + 8], global___func__.0
mov dword [esp + 0x10], eax
mov dword [esp + 4], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x401493