joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41be30
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
sub esp, 0x2c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebp
push esi
push edi
xor esi, esi
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x18], esi
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], esi
call ebx
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x40]
mov ebp, eax
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x18]
test esi, esi
rep stosd dword es:[edi], eax
jne 0x41be7e
pop edi
pop esi
pop ebp
mov eax, 0x80000065
pop ebx
add esp, 0x2c
ret
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
mov dword [esp + 0x40], edi
jne 0x41bea4
call fcn.0041bfe0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
push 0x2c
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x41becc
call fcn.0041bfe0
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push 0x24
push ecx
push 0
push esi
call edi
test eax, eax
je 0x41bfb4
mov eax, dword [esp + 0x1c]
cmp eax, 1
jne 0x41bf01
mov dword [esp + 0x10], 0x800009f0
jmp 0x41bfbd
cmp eax, 3
jne 0x41bf65
mov eax, 0xcccccccd
mul dword [esp + 0x30]
shr edx, 3
cmp edx, 0x3e8
jae 0x41bf21
mov edx, 0x3e8
jmp 0x41bf2e
cmp edx, 0x2710
jbe 0x41bf2e
mov edx, 0x2710
push edx
call fcn.0040aab0
add esp, 4
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push 0x24
push eax
push 0
push esi
call edi
test eax, eax
je 0x41bfb4
cmp dword [esp + 0x1c], 1
je 0x41bfbd
call ebx
sub eax, ebp
cmp eax, 0x7530
ja 0x41bfbd
cmp dword [esp + 0x1c], 3
je 0x41bf06
lea ecx, [esp + 0x18]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x41bfb4
cmp dword [esp + 0x1c], 1
je 0x41bfbd
mov edx, dword [esp + 0x30]
push edx
call fcn.0040aab0
add esp, 4
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push 0x24
push ecx
push 0
push esi
call edi
test eax, eax
je 0x41bfb4
call ebx
sub eax, ebp
cmp eax, 0x7530
ja 0x41bfbd
cmp dword [esp + 0x1c], 1
jne 0x41bf7e
jmp 0x41bfbd
call fcn.0041bfe0
mov dword [esp + 0x10], eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
mov edx, dword [esp + 0x40]
push edx
call esi
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
Function at 0x421400
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [0x43b66c]
mov ecx, dword [0x43b588]
mov edx, dword [0x43b590]
push esi
push edi
push str.Function_Entry
push 0x43d2ec
push 4
push 0x277
push eax
mov eax, dword [0x43b58c]
push ecx
push edx
push eax
push 1
mov dword [esp + 0x2c], 0
call fcn.0040ee40
mov esi, dword [esp + 0x34]
add esp, 0x24
test esi, esi
je 0x4214e9
mov edi, dword [esp + 0x18]
test edi, edi
je 0x4214e9
mov eax, dword [esp + 0x14]
cmp eax, 0xa
jb 0x4214d6
cmp eax, 0x3c
ja 0x4214d6
mov ecx, dword [esi + 0x54]
cmp ecx, 0xffffffff
jne 0x421481
mov esi, 0x80000b03
mov eax, 0x65
mov ecx, esi
mov edx, 0x28f
jmp 0x4214fa
lea edx, [esp + 8]
push 0
shl eax, 9
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esi + 0x54]
lea eax, [esp + 8]
push 0
push eax
push 0x200
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4214c1
mov esi, 0x80000b01
mov eax, 0x65
mov ecx, esi
mov edx, 0x2a1
jmp 0x4214fa
mov edx, dword [esi + 0x54]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x54], 0xffffffff
xor esi, esi
jmp 0x421522
mov esi, 0x80000b03
mov eax, 0x65
mov ecx, esi
mov edx, 0x283
jmp 0x4214fa
mov esi, 0x80000b03
mov eax, 0x66
mov ecx, esi
mov edx, 0x27d
push eax
mov eax, dword [0x43b66c]
push edx
mov edx, dword [0x43b588]
push eax
mov eax, dword [0x43b590]
push edx
mov edx, dword [0x43b58c]
push eax
push edx
push ecx
push esi
push 3
call fcn.0040fdd0
add esp, 0x24
mov eax, dword [0x43b66c]
mov ecx, dword [0x43b588]
mov edx, dword [0x43b590]
push esi
push str.Function_Exit
push str._s__Rc__0x_08X
push 4
push 0x2b0
push eax
mov eax, dword [0x43b58c]
push ecx
push edx
push eax
push 1
call fcn.0040ee40
add esp, 0x28
mov eax, esi
pop edi
pop esi
pop ecx
ret
Function at 0x421e40
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [0x43b67c]
mov ecx, dword [0x43b588]
push ebx
mov edx, dword [0x43b590]
push ebp
push esi
push edi
push str.Function_Entry
push 0x43d2ec
push 4
push 0x51f
push eax
mov eax, dword [0x43b58c]
push ecx
push edx
push eax
push 1
mov dword [esp + 0x34], 0
call fcn.0040ee40
mov esi, dword [esp + 0x3c]
add esp, 0x24
test esi, esi
je 0x421fd6
mov ebp, dword [esp + 0x24]
test ebp, ebp
je 0x421fd6
mov eax, dword [esi + 0x4c]
or edi, 0xffffffff
cmp eax, edi
jne 0x421eda
push 0
push 0
push 3
push 0
push 3
lea ecx, [esi + 0x60]
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, edi
mov dword [esi + 0x4c], eax
jne 0x421eda
mov esi, 0x80000b1a
mov eax, 0x65
mov ecx, esi
mov edx, 0x542
jmp 0x421fe7
mov edx, dword [esp + 0x20]
mov eax, dword [esi + 0x4c]
push 0
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, edi
jne 0x421f14
mov ecx, dword [esi + 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x4c], edi
mov esi, 0x80000b1d
mov eax, 0x65
mov ecx, esi
mov edx, 0x553
jmp 0x421fe7
mov ebx, dword [esp + 0x28]
mov eax, dword [esi + 0x4c]
lea edx, [esp + 0x10]
push 0
push edx
push ebx
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x421f8b
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x421f6b
mov bl, byte [esp + 0x1c]
test bl, 1
je 0x421f52
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x58]
push eax
push ebp
push ecx
push edx
call fcn.0042f120
add esp, 0x10
test bl, 8
je 0x421f64
mov eax, dword [esi + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x4c], edi
xor esi, esi
jmp 0x42200f
mov ecx, dword [esi + 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x4c], edi
mov esi, 0x80000b1d
mov eax, 0x65
mov ecx, esi
mov edx, 0x574
jmp 0x421fe7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
jne 0x421fb6
mov edx, dword [esi + 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x4c], edi
mov esi, 0x80000b1d
mov eax, 0x65
mov ecx, esi
mov edx, 0x587
jmp 0x421fe7
mov eax, dword [esi + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x4c], edi
mov esi, 0x80000af9
mov eax, 0x65
mov ecx, esi
mov edx, 0x597
jmp 0x421fe7
mov esi, 0x80000b03
mov eax, 0x66
mov ecx, esi
mov edx, 0x525
push eax
mov eax, dword [0x43b588]
push edx
mov edx, dword [0x43b67c]
push edx
mov edx, dword [0x43b590]
push eax
mov eax, dword [0x43b58c]
push edx
push eax
push ecx
push esi
push 3
call fcn.0040fdd0
add esp, 0x24
mov ecx, dword [0x43b67c]
mov edx, dword [0x43b588]
mov eax, dword [0x43b590]
push esi
push str.Function_Exit
push str._s__Rc__0x_08X
push 4
push 0x59f
push ecx
mov ecx, dword [0x43b58c]
push edx
push eax
push ecx
push 1
call fcn.0040ee40
add esp, 0x28
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x422050
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [0x43b680]
mov ecx, dword [0x43b588]
push ebx
mov edx, dword [0x43b590]
push ebp
push esi
push edi
push str.Function_Entry
push 0x43d2ec
push 4
push 0x5ca
push eax
mov eax, dword [0x43b58c]
push ecx
push edx
push eax
push 1
mov dword [esp + 0x34], 0
call fcn.0040ee40
mov esi, dword [esp + 0x3c]
add esp, 0x24
test esi, esi
je 0x4221e9
mov ebp, dword [esp + 0x24]
test ebp, ebp
je 0x4221e9
mov eax, dword [esi + 0x50]
or edi, 0xffffffff
cmp eax, edi
jne 0x4220ed
push 0
push 0
push 3
push 0
push 3
lea ecx, [esi + 0x178]
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, edi
mov dword [esi + 0x50], eax
jne 0x4220ed
mov esi, 0x80000b1b
mov eax, 0x65
mov ecx, esi
mov edx, 0x5ea
jmp 0x4221fa
mov edx, dword [esp + 0x20]
mov eax, dword [esi + 0x50]
push 0
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, edi
jne 0x422127
mov ecx, dword [esi + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x50], edi
mov esi, 0x80000b28
mov eax, 0x65
mov ecx, esi
mov edx, 0x5fb
jmp 0x4221fa
mov ebx, dword [esp + 0x28]
mov eax, dword [esi + 0x50]
lea edx, [esp + 0x10]
push 0
push edx
push ebx
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42219e
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x42217e
mov bl, byte [esp + 0x1c]
test bl, 1
je 0x422165
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x58]
push eax
push ebp
push ecx
push edx
call fcn.0042f120
add esp, 0x10
test bl, 8
je 0x422177
mov eax, dword [esi + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x50], edi
xor esi, esi
jmp 0x422222
mov ecx, dword [esi + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x50], edi
mov esi, 0x80000b28
mov eax, 0x65
mov ecx, esi
mov edx, 0x61b
jmp 0x4221fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
jne 0x4221c9
mov edx, dword [esi + 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x50], edi
mov esi, 0x80000b28
mov eax, 0x65
mov ecx, esi
mov edx, 0x62e
jmp 0x4221fa
mov eax, dword [esi + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x50], edi
mov esi, 0x80000af9
mov eax, 0x65
mov ecx, esi
mov edx, 0x63e
jmp 0x4221fa
mov esi, 0x80000b03
mov eax, 0x66
mov ecx, esi
mov edx, 0x5d0
push eax
mov eax, dword [0x43b588]
push edx
mov edx, dword [0x43b680]
push edx
mov edx, dword [0x43b590]
push eax
mov eax, dword [0x43b58c]
push edx
push eax
push ecx
push esi
push 3
call fcn.0040fdd0
add esp, 0x24
mov ecx, dword [0x43b680]
mov edx, dword [0x43b588]
mov eax, dword [0x43b590]
push esi
push str.Function_Exit
push str._s__Rc__0x_08X
push 4
push 0x646
push ecx
mov ecx, dword [0x43b58c]
push edx
push eax
push ecx
push 1
call fcn.0040ee40
add esp, 0x28
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x425a60
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
mov eax, dword [0x43b5e0]
mov ecx, dword [0x43b588]
mov edx, dword [0x43b590]
push ebp
push esi
push edi
push str.Function_Entry
push 0x43d2ec
push 4
push 0xd56
push eax
mov eax, dword [0x43b58c]
push ecx
push edx
push eax
push 1
call fcn.0040ee40
mov esi, dword [esp + 0x44]
add esp, 0x24
test esi, esi
je 0x425b1e
mov edi, dword [esp + 0x24]
test edi, edi
je 0x425b1e
mov ebp, dword [esp + 0x28]
cmp ebp, 0x27
jl 0x425b1e
xor ecx, ecx
xor eax, eax
mov dword [esp + 0xc], ecx
push ebx
mov dword [esp + 0x14], ecx
sub esi, 0x4427e4
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x1f]
mov dl, byte [esi + eax + 0x4427e4]
mov bl, byte [eax + 0x4427e4]
add dl, bl
mov bl, byte [eax + 0x4427d4]
xor dl, bl
mov bl, byte [eax + 0x4427c4]
sub dl, bl
inc eax
mov byte [ecx], dl
dec ecx
cmp eax, 0x10
jl 0x425ad3
push 1
push ebp
lea eax, [esp + 0x18]
push edi
push eax
call fcn.00424ed0
add esp, 0x10
test eax, eax
pop ebx
je 0x425b1a
mov esi, eax
mov ecx, 0xd73
jmp 0x425b2a
xor esi, esi
jmp 0x425b55
mov esi, 0x80000b03
mov ecx, 0xd5c
mov eax, esi
mov edx, dword [0x43b588]
push 0x65
push ecx
mov ecx, dword [0x43b5e0]
push ecx
mov ecx, dword [0x43b590]
push edx
mov edx, dword [0x43b58c]
push ecx
push edx
push eax
push esi
push 3
call fcn.0040fdd0
add esp, 0x24
mov eax, dword [0x43b5e0]
mov ecx, dword [0x43b588]
mov edx, dword [0x43b590]
push esi
push str.Function_Exit
push str._s__Rc__0x_08X
push 4
push 0xd7d
push eax
mov eax, dword [0x43b58c]
push ecx
push edx
push eax
push 1
call fcn.0040ee40
add esp, 0x28
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x10
ret
Function at 0x42ef90
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x15], eax
mov dword [esp + 5], ecx
mov dword [esp + 0x19], eax
mov dword [esp + 9], ecx
push ebx
push ebp
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x25], eax
mov dword [esp + 0x15], ecx
mov word [esp + 0x29], ax
mov word [esp + 0x19], cx
push esi
test ebp, ebp
push edi
mov byte [esp + 0x24], 0
mov byte [esp + 0x33], al
mov dword [esp + 0x10], 0x10
mov byte [esp + 0x14], al
mov byte [esp + 0x23], cl
jne 0x42efeb
pop edi
pop esi
pop ebp
mov eax, 0x80000065
pop ebx
add esp, 0x24
ret
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x42f000
pop edi
pop esi
pop ebp
mov eax, 0x80000066
pop ebx
add esp, 0x24
ret
mov esi, dword [esp + 0x40]
test esi, esi
jne 0x42f015
pop edi
pop esi
pop ebp
mov eax, 0x80000067
pop ebx
add esp, 0x24
ret
mov ebx, dword [esp + 0x44]
test ebx, ebx
jne 0x42f02a
pop edi
pop esi
pop ebp
mov eax, 0x80000068
pop ebx
add esp, 0x24
ret
cmp ebx, 0x10
jae 0x42f0a8
mov dl, bl
push 1
mov al, dl
push 2
mov ah, al
lea ecx, [esp + 0x18]
mov edx, eax
push 1
shl edx, 0x10
mov dx, ax
push ecx
mov dword [esp + 0x24], edx
lea eax, [esp + 0x24]
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
lea edx, [esp + 0x34]
push edx
push 0x10
push eax
push 0
push 0
push 1
push edi
push ebp
call fcn.004120c0
add esp, 0x30
test eax, eax
jne 0x42f111
test ebx, ebx
jbe 0x42f10f
lea ecx, [esp + 0x24]
lea eax, [esi + ebx]
sub ecx, esi
mov esi, ebx
mov dl, byte [ecx + eax - 1]
mov bl, byte [eax - 1]
dec eax
xor bl, dl
dec esi
mov byte [eax], bl
jne 0x42f08f
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret
jbe 0x42f0e0
push 1
push 2
lea eax, [esp + 0x18]
push 1
push eax
push esi
push 0x10
push esi
push 0
push 0
push 1
push edi
push ebp
mov dword [esp + 0x40], 0x10
call fcn.004120c0
add esp, 0x30
test eax, eax
jne 0x42f111
sub ebx, 0xc
add esi, 0xc
cmp ebx, 0x10
ja 0x42f0aa
push 1
push 2
lea ecx, [esp + 0x18]
lea esi, [esi + ebx - 0x10]
push 1
push ecx
push esi
push 0x10
push esi
push 0
push 0
push 1
push edi
push ebp
mov dword [esp + 0x40], 0x10
call fcn.004120c0
add esp, 0x30
test eax, eax
jne 0x42f111
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x42f120
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x19], eax
mov dword [esp + 9], ecx
mov dword [esp + 0x1d], eax
mov dword [esp + 0xd], ecx
mov dword [esp + 0x21], eax
push ebx
mov word [esp + 0x29], ax
push ebp
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x19], ecx
mov byte [esp + 0x2f], al
mov eax, 0x10
mov word [esp + 0x1d], cx
push esi
test ebp, ebp
push edi
mov byte [esp + 0x28], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov byte [esp + 0x18], 0
mov byte [esp + 0x27], cl
jne 0x42f181
pop edi
pop esi
pop ebp
mov eax, 0x80000065
pop ebx
add esp, 0x28
ret
mov edi, dword [esp + 0x40]
test edi, edi
jne 0x42f196
pop edi
pop esi
pop ebp
mov eax, 0x80000066
pop ebx
add esp, 0x28
ret
mov esi, dword [esp + 0x44]
test esi, esi
jne 0x42f1ab
pop edi
pop esi
pop ebp
mov eax, 0x80000067
pop ebx
add esp, 0x28
ret
mov ebx, dword [esp + 0x48]
test ebx, ebx
jne 0x42f1c0
pop edi
pop esi
pop ebp
mov eax, 0x80000068
pop ebx
add esp, 0x28
ret
cmp ebx, eax
jae 0x42f23c
mov dl, bl
push 1
mov cl, dl
push 2
mov ch, cl
push 1
mov edx, ecx
shl edx, 0x10
mov dx, cx
lea ecx, [esp + 0x34]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
lea edx, [esp + 0x20]
push edx
push ecx
lea edx, [esp + 0x2c]
push eax
push edx
push 0
push 0
push 1
push edi
push ebp
call fcn.004120c0
add esp, 0x30
test eax, eax
jne 0x42f2bc
test ebx, ebx
jbe 0x42f2ba
lea ecx, [esp + 0x28]
lea eax, [esi + ebx]
sub ecx, esi
mov esi, ebx
mov dl, byte [ecx + eax - 1]
mov bl, byte [eax - 1]
dec eax
xor bl, dl
dec esi
mov byte [eax], bl
jne 0x42f223
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret
lea eax, [ebx - 4]
xor edx, edx
mov ecx, 0xc
div ecx
test edx, edx
mov dword [esp + 0x3c], edx
jbe 0x42f27b
push 1
push 2
lea edx, [esp + 0x18]
lea eax, [esi + ebx - 0x10]
push 1
push edx
push eax
push 0x10
push eax
push 0
push 0
push 1
push edi
push ebp
call fcn.00412170
add esp, 0x30
test eax, eax
jne 0x42f2bc
sub ebx, dword [esp + 0x3c]
cmp ebx, 0x10
jb 0x42f2ba
lea esi, [esi + ebx - 0x10]
push 1
push 2
lea eax, [esp + 0x18]
push 1
push eax
push esi
push 0x10
push esi
push 0
push 0
push 1
push edi
push ebp
mov dword [esp + 0x40], 0x10
call fcn.00412170
add esp, 0x30
test eax, eax
jne 0x42f2bc
sub ebx, 0xc
sub esi, 0xc
cmp ebx, 0x10
jae 0x42f284
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x42f3e0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x20]
xor ebx, ebx
cmp edi, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
je 0x42f51b
mov ebp, dword [esp + 0x24]
cmp ebp, ebx
je 0x42f51b
push 1
push 0x10000
call fcn.00431053
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x42f42c
mov dword [esp + 0x10], 0x80000af2
jmp 0x42f484
push ebx
push ebx
push 3
push ebx
push 3
push 0x80000000
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
call edi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x42f452
mov dword [esp + 0x10], 0x80000b17
jmp 0x42f484
push 0
push 0
push 2
push 0
push 3
push 0x40000000
push ebp
call edi
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x42f49d
mov dword [esp + 0x10], 0x80000b18
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call edi
cmp ebp, 0xffffffff
je 0x42f484
push ebp
call edi
test esi, esi
je 0x42f491
push esi
call fcn.00430c60
add esp, 4
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov ecx, 0x4000
xor eax, eax
mov edi, esi
push eax
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
push eax
push 0x10000
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42f473
mov eax, dword [esp + 0x14]
test eax, eax
je 0x42f473
lea ecx, [esp + 0x18]
push 0
push ecx
push eax
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42f50e
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
cmp edx, eax
jne 0x42f50e
mov ecx, 0x4000
xor eax, eax
mov edi, esi
push eax
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
push eax
push 0x10000
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42f4bf
jmp 0x42f473
mov dword [esp + 0x10], 0x80000afa
jmp 0x42f473
pop edi
pop esi
pop ebp
mov eax, 0x80000b03
pop ebx
add esp, 0xc
ret
Function at 0x43519d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4446b8
cmp edx, dword [eax]
je 0x4351bf
add eax, 8
inc ecx
cmp eax, 0x444748
jl 0x4351b0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4446b8]
jne 0x4352ed
mov eax, dword [0x445848]
cmp eax, 1
je 0x4352c7
test eax, eax
jne 0x4351f0
cmp dword [0x444074], 1
je 0x4352c7
cmp edx, 0xfc
je 0x4352ed
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x435227
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00436bc0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00436b00
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x43526a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00436b00
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x43bcec
push edi
call fcn.004369c0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00436bc0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00436bd0
lea eax, [ebp - 0xa0]
push 0x43bccc
push eax
call fcn.00436bd0
push dword [esi + 0x4446bc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00436bd0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004377c9
add esp, 0x2c
pop edi
jmp 0x4352ed
lea eax, [ebp + 8]
lea esi, [esi + 0x4446bc]
push 0
push eax
push dword [esi]
call fcn.00436b00
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 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x409e8c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x409e9b
pop dword [ebp - 0xc]
mov eax, 0x9133d569
sub eax, 0x90f336ce
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0xc46ee3e0
add dword [ebp - 0x1c], 0x89e3616b
mov dword [ebp - 0x18], 0xf9d7d935
add dword [ebp - 0x18], 0x385b7310
mov dword [ebp - 0x14], 0x3b5ce49d
add dword [ebp - 0x14], 0x10ef5f91
mov dword [ebp - 0x10], 0xe42ae89
sub dword [ebp - 0x10], 0xe42ae89
lea eax, [ebp - 0x1c]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0x8393a0c8
sub dword [ebp - 0x1c], 0xf213772
mov dword [ebp - 0x18], 0xa1ed5b0e
add dword [ebp - 0x18], 0x9f7f0667
mov dword [ebp - 0x14], 0x85ccae43
add dword [ebp - 0x14], 0xdda2be29
mov dword [ebp - 0x10], 0x9f2388e4
add dword [ebp - 0x10], 0x60dc771c
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0x30ef86b4
sub eax, 0x30aeb668
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x3a626
push 0
call eax
mov ecx, 0xf4f7e3fd
sub ecx, 0xf4f798ff
xor esi, esi
add esi, eax
mov edx, 0x7e35817d
sub edx, 0x7df3d17d
add edx, dword [ebp - 0xc]
mov edi, 0xf3764218
add edi, 0xde9bdb7b
xor dword [ebp - 4], ebx
mov ebx, dword [edx]
sub dword [ebp - 4], ebx
add ebx, edi
xor dword [ebp - 4], eax
mov dword [esi], ebx
add esi, 4
add edx, 0xf0b8ff08
sub edx, 0xf0b8ff04
loop 0x409fba
add eax, 0x41b1cb
sub eax, 0x409300
mov ebx, eax
add eax, 0x7f4ae340
add eax, 0x80b51cc5
mov ecx, 0xdcef2aa4
sub ecx, 0xdcaf2aa4
add ecx, dword [ebp - 0xc]
call ebx
leave
ret