joyce8/EMBER2024-capa huggingface dataset:
Function at 0x54b940
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x6d13dc]
xor edx, edx
cmp eax, edx
jne 0x54b966
xor eax, eax
mov byte [eax + 0x6d12dc], al
inc eax
cmp eax, 0x100
jl 0x54b94e
mov dword [0x6d13dc], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x6d12dc
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x54b9f7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x54b9ca
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x54b998
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x54ba70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x54bac3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x54baaa
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x552440
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5b0dde
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.00552d60
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x65144c
call fcn.0059efda
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x5524d3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0059efda
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x5524cc
push 0
mov ecx, eax
call fcn.00549570
mov dword [esi + 0xc], eax
jmp 0x5524d5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x5524d5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x577e50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret

Function at 0x577f80
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x6e35e8]
sub esp, 0x138
test eax, eax
je 0x577fac
push 0x118
push eax
lea eax, [esp + 8]
push eax
call fcn.00561110
add esp, 0xc
mov byte [esp + 0x118], 0
jmp 0x577fbc
lea ecx, [esp]
push ecx
push 0x118
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push ebp
push esi
push edi
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x577fe1
lea eax, [esp + 0xc]
dec eax
cmp byte [eax + ecx], 0x5c
jne 0x577fe1
dec ecx
test ecx, ecx
jg 0x577fd6
mov esi, dword [esp + 0x148]
mov byte [esp + ecx + 0xc], 0
lea edx, [esp + 0xc]
push edx
push str._s_sqlite_
push esi
call fcn.0056252f
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
lea eax, [edi + esi]
push eax
push 0xf
call fcn.00587890
add esp, 0x14
mov ecx, 0xf
xor eax, eax
xor edx, edx
mov al, byte [edi + esi]
mov ebp, 0x3e
div ebp
inc edi
dec ecx
mov dl, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [edi + esi - 1], dl
jne 0x57801e
push esi
mov byte [edi + esi], 0
call fcn.00577e50
add esp, 4
test eax, eax
jne 0x577fed
pop edi
pop esi
pop ebp
add esp, 0x138
ret

Function at 0x5780c0
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
test esi, esi
push edi
jle 0x57810b
mov ebx, dword [esp + 0x14]
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [esp + 0x18]
mov ecx, dword [ebx]
lea eax, [esp + 0x1c]
push 0
push eax
push esi
push edi
push ecx
call ebp
test eax, eax
je 0x57810b
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jbe 0x5780fc
sub esi, ecx
add edi, ecx
test esi, esi
jg 0x5780da
test eax, eax
je 0x57810b
cmp esi, ecx
jg 0x57810b
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 0xd
pop ebx
ret

Function at 0x5781b0
Capabilities:
Get file size

Disassembly:
mov ecx, dword [esp + 4]
lea eax, [esp + 4]
push esi
push eax
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov eax, dword [esp + 8]
push 1
push 0
push 0
push eax
call fcn.005607a0
mov ecx, eax
xor eax, eax
add ecx, esi
pop esi
adc edx, eax
mov eax, dword [esp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
xor eax, eax
ret

Function at 0x5781f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x5781fd
xor eax, eax
pop esi
ret
call fcn.00578240
test eax, eax
jne 0x57821c
push edi
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
cmp ecx, 0x104
jbe 0x57821c
pop esi
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x57822c
xor eax, eax
pop esi
ret
and al, 0x10
xor ecx, ecx
cmp al, 0x10
pop esi
sete cl
mov eax, ecx
ret
Function at 0x57d930
Capabilities:
Enumerate pe sections

Disassembly:
push esi
mov esi, dword [esp + 8]
mov cl, byte [esi + 0x41]
mov eax, dword [esi + 0x18]
test cl, cl
jne 0x57d94d
mov eax, dword [esp + 0xc]
pop esi
mov dword [eax], 1
xor eax, eax
ret
mov ecx, dword [esi + 0x1c]
xor edx, edx
inc ecx
mov word [esi + 0x3a], 0
mov dword [esi + 0x1c], ecx
mov dx, word [eax + 0x14]
cmp ecx, edx
jl 0x57da0a
mov cl, byte [eax + 4]
test cl, cl
jne 0x57d9a8
mov edx, dword [eax + 0x44]
xor ecx, ecx
mov cl, byte [eax + 8]
lea eax, [ecx + edx + 8]
push eax
call fcn.0057c3d0
push eax
push esi
call fcn.0057d570
add esp, 0xc
test eax, eax
jne 0x57da28
push esi
call fcn.0057d5d0
mov ecx, dword [esp + 0x10]
add esp, 4
mov dword [ecx], 0
pop esi
ret
push eax
call fcn.0057da30
add esp, 4
test eax, eax
jne 0x57d9db
push esi
call fcn.0057da70
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
xor edx, edx
add esp, 4
mov dx, word [eax + 0x14]
cmp ecx, edx
jl 0x57d9ed
push eax
call fcn.0057da30
add esp, 4
test eax, eax
je 0x57d9b5
mov eax, dword [esp + 0xc]
mov dword [eax], 1
mov byte [esi + 0x41], 0
xor eax, eax
pop esi
ret
mov ecx, dword [esp + 0xc]
mov dword [ecx], 0
mov dl, byte [eax + 6]
test dl, dl
je 0x57da1b
push ecx
push esi
call fcn.0057d930
add esp, 8
pop esi
ret
mov ecx, dword [esp + 0xc]
mov dword [ecx], 0
mov cl, byte [eax + 4]
test cl, cl
je 0x57da1f
xor eax, eax
pop esi
ret
push esi
call fcn.0057d5d0
add esp, 4
pop esi
ret
Function at 0x584b50
Capabilities:
Reference sql statements

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
cmp edi, 2
jl 0x584bd3
mov ebx, dword [esp + 0x10]
xor eax, eax
xor ecx, ecx
xor edx, edx
mov al, byte [ebx + edi - 1]
mov dl, byte [ebx]
mov cl, byte [eax + 0x654e94]
mov eax, ecx
xor ecx, ecx
mov cl, byte [edx + 0x654e94]
lea eax, [eax + eax*2]
shl ecx, 2
xor eax, ecx
mov ecx, 0x7f
xor eax, edi
cdq
idiv ecx
xor eax, eax
mov al, byte [edx + str._QhZ]
mov esi, eax
dec esi
js 0x584bd3
xor ecx, ecx
mov cl, byte [esi + 0x6555f4]
cmp ecx, edi
jne 0x584bc6
xor edx, edx
push edi
mov dx, word [esi*2 + 0x655668]
push ebx
add edx, 0x6552f0
push edx
call fcn.005704b0
add esp, 0xc
test eax, eax
je 0x584bdc
xor eax, eax
mov al, byte [esi + 0x655580]
mov esi, eax
dec esi
jns 0x584b9b
pop edi
pop esi
mov eax, 0x1b
pop ebx
ret
xor eax, eax
pop edi
mov al, byte [esi + 0x65574c]
pop esi
pop ebx
ret
Function at 0x5a167c
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x5a16b4
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0059f6f4
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0059f6cc
jmp 0x5a16c0
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x5a2e77
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x5a2eb9
call fcn.005a91a4
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x5a2eb9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x5a2eb0
xor eax, eax
jmp 0x5a2ec1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005a2ec7
pop edi
pop esi
pop ebx
ret 4

Function at 0x5a96d4
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x5a9702
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5a9720
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.005a963a
jmp 0x5a9720
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5a9720
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.005a963a
test edi, edi
mov eax, edi
jne 0x5a970a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x423542
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x423551
pop dword [ebp - 0x44]
mov eax, 0xeb5bbfd1
sub eax, 0xeb198a80
sub dword [ebp - 0x44], eax
push 0x40
push 0x1000
push 0x51f54
push 0
mov eax, 0x80fbfb5a
add eax, 0x7f48b756
add eax, dword [ebp - 0x44]
call dword [eax]
mov ecx, 0x5ae18814
sub ecx, 0x5ae138f1
mov esi, eax
mov edi, 0x918683ed
add edi, 0x6ec20a13
add edi, dword [ebp - 0x44]
mov ebx, 0xcedd1d93
sub ebx, 0xcad7cd9
add dword [ebp - 0x28], eax
mov edx, dword [edi]
sub dword [ebp - 0x40], 0xb8600a18
sub edx, ebx
add dword [ebp - 0x40], 0x4a336471
mov dword [esi], edx
xor dword [ebp - 0x38], 0x6472a28a
add esi, 4
add edi, 4
loop 0x4235b0
add eax, 0x683db5ec
sub eax, 0x683c868d
mov ebx, eax
add eax, 0x9daf8924
sub eax, 0x9daf891f
mov ecx, 0x5ab52ea
sub ecx, 0x56b52ea
add ecx, dword [ebp - 0x44]
call ebx
leave
ret

Function at 0x4400c9
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46c6d0
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x44010c
push str.SystemFunction040
push dword [0x46c6d0]
call edi
push str.SystemFunction041
push dword [0x46c6d0]
mov dword [0x46c6c0], eax
call edi
mov dword [0x46c6c4], eax
jmp 0x440111
mov eax, dword [0x46c6c4]
cmp dword [0x46c6c0], 0
je 0x440122
test eax, eax
jne 0x4401c9
push 0x46c6d4
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x4401d3
push str.CryptProtectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c0], 0
mov dword [0x46c6c8], eax
jne 0x440187
test eax, eax
jne 0x440187
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x440171
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x440178
mov esi, 0x80004005
push esi
push 0x28
push str.c:_agent_work138_s_srclibsdutilcryputil.cpp
call fcn.004038f5
jmp 0x4401d3
push str.CryptUnprotectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c4], 0
mov dword [0x46c6cc], eax
jne 0x4401c9
test eax, eax
jne 0x4401c9
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4401bd
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4401c4
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x44017b
mov dword [0x46c6d8], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x1e3300
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x1f904c]
xor eax, ebp
mov dword [ebp + 0x190], eax
push esi
xor esi, esi
mov dword [ebp - 0x80], esi
cmp ebx, esi
je 0x1e33f1
cmp edi, esi
je 0x1e33f1
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x1e3336
sub eax, edx
sar eax, 1
je 0x1e33f1
xor eax, eax
push 0x206
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push esi
push eax
call fcn.001e9820
add esp, 0xc
cmp dword [ebp + 0x19c], esi
jne 0x1e3397
cmp dword [0x1fa070], 3
jne 0x1e3397
mov esi, 0x104
push esi
lea eax, [ebp - 0x78]
push eax
call dword [fcn.001f3024]
push 0x1f4f7c
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.001e5d64
add esp, 0xc
jmp 0x1e33a7
lea eax, [ebp - 0x78]
push eax
mov esi, 0x104
push esi
call dword [fcn.001f30d8]
push edi
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.001e5d64
and dword [ebp - 0x7c], 0
push 0x1f4f80
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.001e6047
add esp, 0x18
cmp dword [ebp - 0x7c], 0
je 0x1e33f1
push dword [ebp - 0x7c]
xor esi, esi
inc esi
push esi
push 0x200
push ebx
call fcn.001e633a
push dword [ebp - 0x7c]
call fcn.001e63ce
add esp, 0x14
mov dword [ebp - 0x80], esi
mov ecx, dword [ebp + 0x190]
mov eax, dword [ebp - 0x80]
xor ecx, ebp
pop esi
call fcn.001e5ce6
add ebp, 0x194
leave
ret

Function at 0x1e349c
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x1f904c]
xor eax, ebp
mov dword [ebp + 0x18c], eax
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push eax
xor esi, esi
call fcn.001e9820
and dword [ebp - 0x80], esi
add esp, 0xc
test edi, edi
je 0x1e3530
lea eax, [ebp - 0x7c]
push eax
mov esi, 0x104
push esi
call dword [fcn.001f30d8]
push 0x1f4f60
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.001e5d64
push 0x1f4fa0
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.001e6047
xor esi, esi
add esp, 0x18
inc esi
cmp dword [ebp - 0x80], 0
je 0x1e3530
push dword [ebp - 0x80]
push esi
push 0x200
push edi
call fcn.001e65ac
push dword [ebp - 0x80]
call fcn.001e63ce
add esp, 0x14
mov ecx, dword [ebp + 0x18c]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.001e5ce6
add ebp, 0x190
leave
ret
Function at 0x1e4540
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ecx
push 0x1f720c
push eax
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0
call fcn.001e6047
add esp, 0xc
test eax, eax
je 0x1e4564
xor eax, eax
pop ecx
ret
mov edx, dword [esp]
push ebx
push ebp
push esi
push edi
push 2
push 0
push edx
call fcn.001e6bd2
mov eax, dword [esp + 0x1c]
push eax
call fcn.001e6df4
mov ecx, dword [esp + 0x20]
push 0
push 0
push ecx
mov edi, eax
call fcn.001e6bd2
mov edx, dword [esp + 0x38]
lea ebp, [edi + edx]
push ebp
call fcn.001e69bc
mov esi, eax
mov eax, dword [esp + 0x30]
push eax
push 1
push edi
push esi
call fcn.001e633a
mov ecx, dword [esp + 0x40]
push ecx
call fcn.001e63ce
mov eax, dword [esp + 0x50]
lea ebx, [esi + edi]
call fcn.001e4620
mov edx, dword [esp + 0x4c]
push 0x1f7214
push edx
lea eax, [esp + 0x4c]
push eax
call fcn.001e6047
add esp, 0x40
test eax, eax
je 0x1e45e5
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0x10]
push ecx
push 1
push ebp
push esi
call fcn.001e65ac
mov edx, dword [esp + 0x20]
push edx
call fcn.001e63ce
add esp, 0x14
test esi, esi
je 0x1e460d
push esi
call fcn.001e6a86
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x1e47b2
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x324
mov eax, dword [0x1f904c]
xor eax, esp
mov dword [esp + 0x320], eax
push 0x103
lea eax, [esp + 0x11d]
push 0
push eax
mov byte [esp + 0x124], 0
call fcn.001e9820
push 0x103
lea ecx, [esp + 0x25]
push 0
push ecx
mov byte [esp + 0x2c], 0
call fcn.001e9820
push 0x103
lea edx, [esp + 0x239]
push 0
push edx
mov byte [esp + 0x240], 0
call fcn.001e9820
mov eax, dword [0x1f721c]
mov ecx, dword [0x1f7220]
mov dx, word [0x1f7224]
mov dword [esp + 0x24], eax
mov al, byte [0x1f7226]
add esp, 0x24
mov dword [esp + 4], ecx
lea ecx, [esp + 0x118]
mov byte [esp + 0xa], al
xor eax, eax
push ecx
push 0x104
mov word [esp + 0x10], dx
mov dword [esp + 0x13], eax
mov dword [esp + 0x17], eax
mov byte [esp + 0x1b], al
call dword [0x1f3040]
lea eax, [esp]
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1e4723
push esi
push edi
lea edi, [esp + 0x120]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1e4738
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x104
lea edx, [esp + 0x20]
mov ecx, eax
push edx
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
call dword [0x1f3044]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x228]
push 0x104
push ecx
call fcn.001e6e62
lea edx, [esp + 0x230]
push 0x5c
push edx
call fcn.001e6940
add esp, 0x14
test eax, eax
je 0x1e4790
mov byte [eax], 0
lea eax, [esp + 0x120]
push 0x1f7228
push eax
call fcn.001e6f8e
mov esi, eax
add esp, 8
test esi, esi
je 0x1e48ed
push esi
push 1
push 9
push 0x1f722c
call fcn.001e65ac
push esi
push 1
push 5
push 0x1f7238
call fcn.001e65ac
lea eax, [esp + 0x3c]
add esp, 0x20
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1e47d7
push esi
sub eax, edx
push 1
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.001e65ac
push esi
push 1
push 2
push 0x1f7240
call fcn.001e65ac
push esi
push 1
push 0xa
push 0x1f7244
call fcn.001e65ac
lea eax, [esp + 0x4c]
add esp, 0x30
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1e4816
push esi
sub eax, edx
push 1
push eax
lea edx, [esp + 0x28]
push edx
call fcn.001e65ac
push esi
push 1
push 0xf
push 0x1f7250
call fcn.001e65ac
push esi
push 1
push 7
push 0x1f7260
call fcn.001e65ac
lea eax, [esp + 0x254]
add esp, 0x30
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1e4858
push esi
sub eax, ecx
push 1
push eax
lea eax, [esp + 0x230]
push eax
call fcn.001e65ac
push esi
push 1
push 3
push 0x1f7268
call fcn.001e65ac
push esi
push 1
push 5
push 0x1f726c
call fcn.001e65ac
lea eax, [esp + 0x150]
add esp, 0x30
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1e48a0
push esi
sub eax, edx
push 1
push eax
lea ecx, [esp + 0x12c]
push ecx
call fcn.001e65ac
push esi
push 1
push 1
push 0x1f7274
call fcn.001e65ac
push esi
call fcn.001e63ce
add esp, 0x24
push 0
push 0
push 0
lea edx, [esp + 0x12c]
push edx
push 0x1f7278
push 0
call dword [0x1f3170]
mov ecx, dword [esp + 0x328]
pop edi
pop esi
xor ecx, esp
call fcn.001e5ce6
add esp, 0x324
ret
Function at 0x1e5bc0
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x100c
call fcn.001f0460
mov eax, dword [0x1f904c]
xor eax, esp
mov dword [esp + 0x1008], eax
mov edx, dword [edi]
mov eax, dword [esp + 0x1010]
push ebx
push ebp
mov ebp, dword [0x1f31d4]
xor ebx, ebx
push ebx
push 4
lea ecx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x1c], eax
call ebp
cmp eax, 4
je 0x1e5c18
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1008]
xor ecx, esp
call fcn.001e5ce6
add esp, 0x100c
ret
cmp dword [esp + 8], ebx
jbe 0x1e5c57
push esi
nop
mov ecx, dword [edi]
push 0
push 0x1000
lea eax, [esp + 0x1c]
push eax
push ecx
call ebp
mov esi, eax
test esi, esi
je 0x1e5c56
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
push eax
push esi
lea ecx, [esp + 0x1c]
push 1
push ecx
call fcn.001e65ac
add ebx, esi
add esp, 0x10
cmp ebx, dword [esp + 0xc]
jb 0x1e5c20
pop esi
mov edx, dword [esp + 0xc]
mov eax, dword [edx]
push eax
call fcn.001e63ce
mov ecx, dword [esp + 0x1014]
add esp, 4
cmp ebx, dword [esp + 8]
pop ebp
sbb eax, eax
pop ebx
xor ecx, esp
inc eax
call fcn.001e5ce6
add esp, 0x100c
ret
Function at 0x4070bd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40d468
cmp edx, dword [eax]
je 0x4070df
add eax, 8
inc ecx
cmp eax, 0x40d4f8
jl 0x4070d0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40d468]
jne 0x40720d
mov eax, dword [0x40e498]
cmp eax, 1
je 0x4071e7
test eax, eax
jne 0x407110
cmp dword [0x40d39c], 1
je 0x4071e7
cmp edx, 0xfc
je 0x40720d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407147
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00404340
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00404190
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40718a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00404190
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40b5ec
push edi
call fcn.00408c50
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00404340
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00404350
lea eax, [ebp - 0xa0]
push 0x40b5cc
push eax
call fcn.00404350
push dword [esi + 0x40d46c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00404350
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00408bc2
add esp, 0x2c
pop edi
jmp 0x40720d
lea eax, [ebp + 8]
lea esi, [esi + 0x40d46c]
push 0
push eax
push dword [esi]
call fcn.00404190
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 0x401010
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 3
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 4
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
add eax, 5
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 6
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 7
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
add eax, 8
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 9
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 0xa
mov dword [ebp - 4], edx
push 0x4e20
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]