joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1011ed7b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
call fcn.1011fe49
xchg edi, eax
dec cl
fidiv dword [esi]
inc edx
xchg dword [esi], eax
ljmp 0xc341
inc dword [esp + 0x18]
lea ecx, [eax + edx]
jmp 0x1011ef22
mov ecx, 0x6b079414
add cx, 0x538b
jmp 0x1011ee16
jmp 0x1011ef54
cmp esi, dword [eax + ebx + 4]
jmp 0x1011edd4
jbe 0x10092db4
ja 0x10092de0
jg 0x1011ed71
insb byte es:[edi], dx
or eax, dword [esi]
stc
dec edi
salc
inc ecx
ret
lea esp, [esp + 4]
cmp dword [eax], ebx
jmp 0x1011ed65
sub esp, 0xc
jmp 0x1011ede7
xor ecx, ecx
stc
lea esp, [esp + 0x3c]
mov dword [esp + 0x14], ecx
jmp 0x1011ed9d
jne 0x10092d87
sub esp, 0x1e
pushal
bsr ecx, esi
lea esp, [esp + 2]
jmp 0x1011edb3
lea esp, [esp + 0xc]
cmp dword [eax + ebx + 8], ecx
jmp 0x1011ee2c
mov ecx, 0x4d470671
jmp 0x1011ee6e
jbe 0x10092d87
mov dword [esp + 0x10], ecx
jmp 0x10092d9d
lea esp, [esp + 0xc]
add ecx, dword [esp + 0x10]
mov eax, 0x176b466f
jmp 0x1011ee8c
add ebp, 0xc
mov ecx, dword [ebp]
pop ebp
sub esp, 0xc
lea eax, [ebp*4]
jmp 0x1011ee3b
push ebp
mov ebp, ebx
lea ebp, [eax + ebp]
jmp 0x1011ee51
call fcn.100af8e3
jmp 0x1011ee9a
mov ax, word [esp]
mov eax, dword [ebp + 0xc]
push esi
lea esp, [esp + 4]
jmp 0x1011ee76
test eax, eax
je 0x10092d71
ror cx, cl
jmp 0x1011ef6b
add dword [esp + 0x10], 0x14
jmp 0x1011ef19
mov ecx, dword [esp + 0x14]
clc
jmp 0x1011eebf
mov eax, dword [0x59b9e04]
mov ecx, 0x47cb9d2b
lea ecx, [eax + ebx]
mov cl, bh
lea esp, [esp + 8]
jmp 0x1011eed5
cmp ecx, dword [eax + ebx + 8]
call fcn.1011ef03
bswap ecx
sub esp, 0x1f
pop dword [esp]
lea esp, [esp + 3]
jmp 0x1011ef48
lea esp, [esp + 0x18]
mov ecx, dword [esp + 0x18]
clc
stc
jmp 0x1011efb9
mov ecx, esi
jmp 0x1011ef93
inc dword [esp + 0x14]
xchg cx, ax
sub esp, 9
lea esp, [esp + 1]
jmp 0x1011eeee
push edi
jmp 0x1011efca
call fcn.100af7b5
dec bx
xchg ch, bl
lea ecx, [ebx*4]
jmp 0x1011ef7d
add ebx, 0xc
cmp ecx, dword [eax]
jb 0x10092de0
jae 0x10092db4
mov edi, eax
add edi, 0x7c
mov ecx, dword [edi]
pop edi
jmp 0x1011f440
mov eax, dword [0x59b9e80]
lea ecx, [eax + ebp]
jmp 0x1011f032
cmp ebx, esi
lea esp, [esp + 4]
jbe 0x1009330f
bsr ax, cx
jmp 0x1011eff4
xor eax, edi
sub esp, 0x12
mov ecx, eax
pushal
sets cl
jmp 0x1011f07a
xor eax, 0x59b9e80
xchg cl, ch
setg ch
bts cx, bp
jmp 0x1011f01c
lea esp, [esp + 2]
je 0x1009330f
push esp
push word [esp + 3]
lea esp, [esp + 2]
jmp 0x1011f00a
push ecx
push word [esp + 3]
lea esp, [esp + 2]
jmp 0x1011f0a1
lea esp, [esp + 2]
lea esp, [esp + 0x30]
add eax, 0xa0
mov ecx, dword [eax]
jmp 0x1011f064
pushal
pop dword [esp + 3]
jmp 0x1011f38a
xor ecx, eax
stc
lea esp, [esp + 4]
push 0x59b9e24
jmp 0x1011f08b
lea esp, [esp + 0x14]
mov dword [esp + 0x2c], ecx
test ecx, ecx
push bp
jmp 0x1011f04e
lea esp, [esp + 0x1c]
call ecx
mov cl, 0x41
bswap eax
call fcn.1011f244
xor ecx, edi
pushfd
pop word [esp]
lea esp, [esp + 2]
jmp 0x1011f279
mov ebx, dword [eax + 0x78]
sub esp, 0x16
lea esp, [esp + 2]
add ebx, esi
jmp 0x1011f0bf

Function at 0x1011ef03
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [esp], ecx
push word [esp + 1]
lea esp, [esp + 2]
jmp 0x1011ef38
lea esp, [esp + 4]
jb 0x10092d9d
jae 0x10092d87
Function at 0x101e9b18
Capabilities:
Execute anti-debugging instructions

Disassembly:
jmp 0x101e9b55
mov ebx, 0x57754d4d
lea ebp, [ecx*4]
pop si
add esp, 1
jmp 0x101e9b3f
bts edx, edi
add esp, 0
not bx
mov esi, eax
mov al, byte [esp]
rdtsc
jmp 0x101e9b9d
mov cl, ch
mov dh, ah
mov dword [esp], ecx
mov bh, byte [esp + 3]
not ch
neg bx
jmp 0x101e9b1a
cld
mov edx, esp
dec ebx
setle bl
mov edi, dword [esp]
setb dh
xchg dl, ch
xchg cl, bl
cmc
jmp 0x101e9b87

Function at 0x101e9e5d
Capabilities:
Execute anti-debugging instructions

Disassembly:
xchg cl, dl
mov ah, 0x74
cld
lea esp, [esp + 0x1b]
jmp 0x101e9e7d
Function at 0x101f01b5
Capabilities:
Execute anti-debugging instructions

Disassembly:
xchg dword [esp + 8], edi
lea esi, [0x6a3fc3b4]
pop word [esp + 6]
jmp 0x101f01c6
lea eax, [ebp*4]
rdtsc
mov eax, dword [esp + 4]
xchg dl, al
jmp 0x101f019f
bts ecx, ebx
mov cx, 0x13be
pop ax
xchg byte [esp + 8], dl
mov bp, 0xeed
xchg dword [esp], eax
jmp 0x101f020c
pop ecx
sub cx, 0x16c3
mov cx, word [esp]
sub ecx, edx
pop edx
pop si
jmp 0x101f01f6
Function at 0x101f07df
Capabilities:
Access peb ldr_data
Execute anti-debugging instructions
Parse pe header

Disassembly:
mov eax, dword fs:[0x30]
mov dword [esp + 0xc], edi
lea esp, [esp + 0xc]
jmp 0x101f07bf
Function at 0x40b32c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0041d940
push esi
mov esi, dword [ebp + 8]
cmp word [esi], 0
jne 0x40b34a
xor al, al
jmp 0x40b4b4
push ebx
push edi
push esi
call fcn.0040b4c6
push esi
call fcn.00422b33
pop ecx
push esi
mov edi, eax
call fcn.0040b4f2
test al, al
je 0x40b3dc
push esi
call fcn.0040b4c6
test al, al
je 0x40b393
lea eax, [edi + 4]
cmp dword [ebp + 0x10], eax
jbe 0x40b4b0
push dword [ebp + 0x10]
push str.__
push dword [ebp + 0xc]
call fcn.0040fab1
push dword [ebp + 0x10]
jmp 0x40b4a3
push 0x5c
pop eax
cmp word [esi], ax
jne 0x40b4b0
lea ebx, [esi + 2]
cmp word [ebx], ax
jne 0x40b4b0
mov esi, dword [ebp + 0x10]
lea eax, [edi + 6]
cmp esi, eax
jbe 0x40b4b0
push esi
push str.__
push dword [ebp + 0xc]
call fcn.0040fab1
push esi
push 0x4325e8
push dword [ebp + 0xc]
call fcn.0040fa89
push esi
push ebx
jmp 0x40b4a4
lea eax, [ebp - 0x1000]
mov ebx, 0x7ff
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x40b4b0
cmp eax, ebx
ja 0x40b4b0
movzx eax, word [esi]
push eax
call fcn.0040b5cd
test al, al
je 0x40b443
lea eax, [edi + 6]
mov edi, dword [ebp + 0x10]
cmp edi, eax
jbe 0x40b4b0
push edi
push str.__
push dword [ebp + 0xc]
call fcn.0040fab1
xor eax, eax
mov word [ebp - 0xffc], ax
lea eax, [ebp - 0x1000]
push edi
push eax
push dword [ebp + 0xc]
call fcn.0040fa89
jmp 0x40b4a2
push 0x800
lea eax, [ebp - 0x1000]
push eax
call fcn.0040aea5
lea eax, [ebp - 0x1000]
push eax
call fcn.00422b33
add edi, 4
add eax, edi
mov edi, dword [ebp + 0x10]
pop ecx
cmp edi, eax
jbe 0x40b4b0
push edi
push str.__
push dword [ebp + 0xc]
call fcn.0040fab1
push edi
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 0xc]
call fcn.0040fa89
cmp word [esi], 0x2e
jne 0x40b4a2
movzx eax, word [esi + 2]
push eax
call fcn.0040b5cd
test al, al
je 0x40b4a2
add esi, 4
push edi
push esi
push dword [ebp + 0xc]
call fcn.0040fa89
mov al, 1
jmp 0x40b4b2
xor al, al
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40c0ea
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
xor eax, eax
push ebx
push esi
mov esi, dword [esp + 0x10]
xor ebx, ebx
inc eax
mov cl, bl
cmp esi, eax
jbe 0x40c107
xor cl, byte [eax + edx]
inc eax
cmp eax, esi
jb 0x40c0ff
cmp cl, byte [edx]
jne 0x40c142
push esi
push edx
push 0xffffffffffffffff
call fcn.00405d7e
not eax
mov ecx, ebx
cmp dword [ecx + 0x43d02c], eax
jne 0x40c128
cmp dword [ecx + 0x43d028], esi
je 0x40c133
add ecx, 0xc
inc ebx
cmp ecx, 0x48
jb 0x40c118
jmp 0x40c142
imul eax, ebx, 0xc
mov ecx, dword [eax + 0x43d030]
mov eax, dword [esp + 0x14]
mov dword [eax], ecx
pop esi
pop ebx
ret 0xc
Function at 0x402b30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x548f20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
mov eax, ecx
push esi
push edi
push 8
mov dword [ebp - 0x10], eax
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004c821c
mov esi, eax
add esp, 4
test esi, esi
je 0x402b7f
push 1
mov dword [ebp - 4], 0
call fcn.004ca8d5
add esp, 4
mov dword [esi + 4], eax
jmp 0x402b81
xor esi, esi
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov ecx, dword [ebp - 0xc]
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
pop edi
pop esi
mov dword [edx], 0
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x402d50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x548f7f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push 0
mov dword [ebp - 0x10], esi
call fcn.004c9e43
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 6
test eax, eax
je 0x402ddb
push eax
push esi
call fcn.004ca9d5
mov ecx, dword [ebp - 0xc]
add esp, 8
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push str.bad_locale_name
call fcn.004ca5a7
int3
Function at 0x407380
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x54931d
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
mov ebx, ecx
push esi
push 8
mov dword [ebx + 0x30], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0x201
mov dword [ebx + 0x18], 6
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0xc], 0
call fcn.004c821c
mov esi, eax
add esp, 4
test esi, esi
je 0x407412
push 1
mov dword [ebp - 4], 0
call fcn.004ca8d5
add esp, 4
mov dword [esi + 4], eax
jmp 0x407414
xor esi, esi
mov eax, dword [ebp + 8]
mov dword [ebx + 0x30], esi
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], 0
push edi
mov edi, dword [esi + 4]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x55f634]
mov ecx, edi
call esi
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 1
push eax
call fcn.00402530
mov edi, eax
add esp, 4
mov ecx, dword [edi]
push 0x20
mov esi, dword [ecx + 0x20]
mov ecx, esi
call dword [0x55f634]
mov ecx, edi
call esi
mov edi, dword [ebp - 0x14]
mov byte [ebp - 0xd], al
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4074a4
mov edx, dword [edi]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x55f634]
mov ecx, edi
call esi
mov edi, eax
test edi, edi
je 0x4074a1
mov ecx, dword [edi]
push 1
mov esi, dword [ecx]
mov ecx, esi
call dword [0x55f634]
mov ecx, edi
call esi
mov al, byte [ebp - 0xd]
cmp dword [ebx + 0x38], 0
mov byte [ebx + 0x40], al
pop edi
jne 0x4074c1
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x10]
and eax, 0x13
or eax, 4
mov dword [ebx + 0xc], eax
and ecx, eax
jne 0x4074e2
cmp byte [ebp + 0xc], 0
je 0x4074d0
push ebx
call fcn.004caecb
add esp, 4
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x4074ee
mov esi, str.ios_base::badbit_set
jmp 0x4074fe
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.00407530
add esp, 8
lea ecx, [ebp - 0x30]
push eax
push esi
call fcn.004031d0
push 0x5826d8
lea eax, [ebp - 0x30]
push eax
call fcn.004e4900
int3
Function at 0x40a270
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
push ebx
push esi
push 0x80
lea eax, [ebp - 0xa4]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.004e43a0
push 0x561880
push str.cq_video.txt
call fcn.00504bca
add esp, 0x14
mov esi, eax
push 0
push 0x80
push 4
push 0
push 1
push SysReAllocString
push str.CQ_VIDEO.DAT
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40a347
push edi
nop
push 0
lea eax, [ebp - 4]
push eax
push 0x20
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x10]
mov edi, eax
lea eax, [ebp - 0xa4]
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push str.Controller0x_x_Test0x_x_Width_d_Height_d_BPP_d_Checksum0x_x__n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x20
test esi, esi
je 0x40a33c
lea eax, [ebp - 0xa4]
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a320
sub eax, edx
push esi
push eax
lea eax, [ebp - 0xa4]
push 1
push eax
call fcn.00504f19
add esp, 0x10
test edi, edi
je 0x40a346
cmp dword [ebp - 4], 0
jne 0x40a2d0
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00504888
add esp, 4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40ac10
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54952d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd0
push ebx
push 0x50
lea eax, [ebp - 0x8c]
xor bl, bl
push eax
push 0x561a64
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea ecx, [ebp - 0x3c]
call fcn.0040d590
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040d680
mov ecx, eax
cmp dword [ecx + 0x14], 0x10
jb 0x40ac6a
mov ecx, dword [ecx]
lea edx, [ebp - 0xdc]
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x40ac72
mov edx, dword [ebp - 0x10]
cmp edx, 0x10
jb 0x40acaf
mov ecx, dword [ebp - 0x24]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40aca5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40acf8
push edx
push ecx
call fcn.004c824c
add esp, 8
lea eax, [ebp - 0x8c]
push str.ALPHA
push eax
call fcn.004e5900
add esp, 8
test eax, eax
jne 0x40acdd
lea eax, [ebp - 0xdc]
push eax
call fcn.0050479c
add esp, 4
cmp eax, 0xff
jne 0x40acdf
mov bl, 1
lea ecx, [ebp - 0x3c]
call fcn.0040d640
mov ecx, dword [ebp - 0xc]
mov al, bl
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.004f1161
int3
Function at 0x40c3b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x549743
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push edi
push 0
push 0x80
push 3
push 0
xor bh, bh
mov dword [ebp - 4], 0
xor bl, bl
lea eax, [ebp + 0xc]
cmp dword [ebp + 0x20], 0x10
push 1
cmovae eax, dword [ebp + 0xc]
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40c490
push esi
mov esi, dword [ebp + 8]
nop dword [eax + eax]
push 0
lea eax, [ebp - 0x10]
push eax
push 0x20
lea eax, [ebp - 0x4c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, eax
mov eax, dword [ebp - 0x4c]
cmp eax, 0xffffffff
je 0x40c431
cmp eax, dword [esi]
jne 0x40c45b
mov eax, dword [ebp - 0x48]
cmp eax, dword [esi + 4]
jne 0x40c45b
mov eax, dword [ebp - 0x40]
cmp eax, dword [esi + 0xc]
jne 0x40c45b
mov eax, dword [ebp - 0x3c]
cmp eax, dword [esi + 0x10]
jne 0x40c45b
mov eax, dword [ebp - 0x44]
cmp eax, dword [esi + 8]
jne 0x40c45b
mov eax, dword [ebp - 0x38]
mov bl, 1
mov dword [esi + 0x14], eax
mov bh, bl
test ecx, ecx
je 0x40c46a
cmp dword [ebp - 0x10], 0
je 0x40c46a
cmp bl, 1
jne 0x40c410
test bl, bl
je 0x40c4e3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp + 0xc]
call fcn.00403550
mov ecx, dword [ebp - 0xc]
mov al, bh
pop esi
pop edi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x56079c
lea ecx, [ebp - 0x2c]
call fcn.00408370
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 2
push eax
push 0xd8
push 8
call fcn.004204a0
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00403550
push 0x14
call fcn.004c821c
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x40c530
push 0xf1dc4
mov ecx, eax
call fcn.00417f90
jmp 0x40c532
push dword [esi + 8]
push dword [esi + 0x10]
push dword [esi + 0xc]
push str._dx_dx_d
push 0x5a9a78
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x5a9a78
push 0xd9
push 8
call fcn.004204c0
push 0x14
call fcn.004c821c
add esp, 0x24
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x40c530
push 0xf1dc5
mov ecx, eax
call fcn.00417f90
jmp 0x40c532
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push 0x582dc0
push eax
mov byte [ebp - 4], 0
call fcn.004e4900
int3
Function at 0x40d8d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov ecx, dword [ebx + 0x10]
lea eax, [ebx + 0x41c]
test ecx, ecx
je 0x40d96e
mov esi, dword [ecx]
push 0
push 1
push eax
mov esi, dword [esi + 0x64]
push 0
push ecx
mov ecx, esi
call dword [0x55f634]
call esi
mov ecx, dword [ebx + 0x10]
mov edi, dword [ebx + 0x428]
mov dword [ebx], eax
mov eax, dword [ebx + 0x470]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x424]
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], eax
test ecx, ecx
je 0x40d989
mov eax, dword [ecx]
push dword [ebx + 0x440]
push ecx
mov esi, dword [eax + 0x80]
mov ecx, esi
call dword [0x55f634]
call esi
mov ecx, dword [ebx + 0x10]
mov dword [ebx], eax
test ecx, ecx
je 0x40d989
mov esi, dword [ecx]
lea eax, [ebx + 0x41c]
push 0
push 1
push eax
mov esi, dword [esi + 0x64]
push 0
push ecx
mov ecx, esi
call dword [0x55f634]
call esi
mov ecx, dword [ebx + 0x10]
mov dword [ebx], eax
jmp 0x40d989
mov eax, dword [ebx + 0x470]
mov edi, dword [ebx + 0x428]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x424]
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], eax
cmp dword [ebx], 0
jne 0x40d996
mov edi, dword [ebx + 0x440]
jmp 0x40d999
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x10], edi
test ecx, ecx
je 0x40d9bb
mov eax, dword [ecx]
push dword [ebx + 0x440]
push ecx
mov esi, dword [eax + 0x80]
mov ecx, esi
call dword [0x55f634]
call esi
mov dword [ebx], eax
mov esi, dword [ebp - 8]
imul esi, dword [ebp - 0x14]
mov eax, dword [ebx + 0x42c]
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
push dword [ebp + 0xc]
shr esi, 3
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x40da40
mov ecx, dword [ebp - 0x18]
test esi, esi
je 0x40da33
mov esi, edi
mov edi, dword [ebp - 8]
cmp ebx, 0xffffffff
je 0x40da1e
mov al, byte [esi]
push 0
mov byte [ebp - 1], al
lea eax, [ebp - 0x1c]
push eax
push 1
lea eax, [ebp - 1]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [esi], 0
inc esi
sub edi, 1
jne 0x40da01
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
add edi, ecx
sub eax, 1
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], eax
jne 0x40d9f8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40da60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov ecx, dword [ebx + 0x10]
lea eax, [ebx + 0x41c]
test ecx, ecx
je 0x40dafe
mov esi, dword [ecx]
push 0
push 1
push eax
mov esi, dword [esi + 0x64]
push 0
push ecx
mov ecx, esi
call dword [0x55f634]
call esi
mov ecx, dword [ebx + 0x10]
mov edi, dword [ebx + 0x428]
mov dword [ebx], eax
mov eax, dword [ebx + 0x470]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x424]
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], eax
test ecx, ecx
je 0x40db19
mov eax, dword [ecx]
push dword [ebx + 0x440]
push ecx
mov esi, dword [eax + 0x80]
mov ecx, esi
call dword [0x55f634]
call esi
mov ecx, dword [ebx + 0x10]
mov dword [ebx], eax
test ecx, ecx
je 0x40db19
mov esi, dword [ecx]
lea eax, [ebx + 0x41c]
push 0
push 1
push eax
mov esi, dword [esi + 0x64]
push 0
push ecx
mov ecx, esi
call dword [0x55f634]
call esi
mov ecx, dword [ebx + 0x10]
mov dword [ebx], eax
jmp 0x40db19
mov eax, dword [ebx + 0x470]
mov edi, dword [ebx + 0x428]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x424]
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], eax
cmp dword [ebx], 0
jne 0x40db26
mov edi, dword [ebx + 0x440]
jmp 0x40db29
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x10], edi
test ecx, ecx
je 0x40db4b
mov eax, dword [ecx]
push dword [ebx + 0x440]
push ecx
mov esi, dword [eax + 0x80]
mov ecx, esi
call dword [0x55f634]
call esi
mov dword [ebx], eax
mov esi, dword [ebp - 8]
imul esi, dword [ebp - 0x14]
mov eax, dword [ebx + 0x42c]
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
push dword [ebp + 0xc]
shr esi, 3
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x40dbd0
mov ecx, dword [ebp - 0x18]
test esi, esi
je 0x40dbc3
mov esi, edi
mov edi, dword [ebp - 8]
cmp ebx, 0xffffffff
je 0x40dbae
mov al, byte [esi]
push 0
mov byte [ebp - 1], al
lea eax, [ebp - 0x1c]
push eax
push 1
lea eax, [ebp - 1]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [esi], 0xff
inc esi
sub edi, 1
jne 0x40db91
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
add edi, ecx
sub eax, 1
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], eax
jne 0x40db88
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8