joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5f7606
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.005f7582
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x5f7775
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x5f7775
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x5f772a
jg 0x5f7662
test eax, eax
je 0x5f7720
push 1
push 0x1000
call fcn.005f41ac
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x5f7685
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x5f7717
push 0x8000
push ebx
call fcn.005ef8a1
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x5f76ae
jg 0x5f76a9
cmp ecx, 0x1000
jb 0x5f76ae
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.005f3c50
add esp, 0x10
cmp eax, 0xffffffff
je 0x5f76f3
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x5f76a9
jl 0x5f76da
test ecx, ecx
jne 0x5f769b
push dword [ebp - 0xc]
push ebx
call fcn.005ef8a1
push esi
call fcn.005f06b6
add esp, 0xc
xor ebx, ebx
jmp 0x5f7783
cmp byte [edi + 0x24], 0
je 0x5f770a
cmp dword [edi + 0x20], 5
jne 0x5f770a
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x5f7715
mov ebx, dword [edi + 0x18]
jmp 0x5f7717
xor ebx, ebx
push esi
call fcn.005f06b6
pop ecx
jmp 0x5f7783
test ecx, ecx
jg 0x5f76ec
jl 0x5f772a
test eax, eax
jae 0x5f76ec
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.005f4e96
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x5f774a
cmp byte [edi + 0x1c], 0
je 0x5f76ec
jmp 0x5f777b
push ebx
call fcn.005ed73b
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x5f76ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x5f7783
cmp byte [edi + 0x1c], 0
je 0x5f7780
mov ebx, dword [edi + 0x18]
jmp 0x5f7783
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.005f4e96
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5f7c33
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x69ee98]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x5f7c76
call fcn.005daf99
mov dword [eax], 0xf
call fcn.005dafac
mov dword [eax], 0xd
call fcn.005daeae
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005d4ba5
leave
ret
test eax, eax
jne 0x5f7c7d
inc eax
jmp 0x5f7c6a
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x5f7c68
xor eax, eax
cmp ecx, 1
setne al
jmp 0x5f7c6a
Function at 0x5f9a66
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x5f9b03
push ebx
push esi
call fcn.005f9a2f
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.005f26e4
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x5f9ab0
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5f9b02
push edi
push eax
call fcn.005f126c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x5f9ad0
call fcn.005f06b6
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5f9b01
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.005f26e4
add esp, 0x20
test eax, eax
jne 0x5f9aef
push edi
call fcn.005f06b6
jmp 0x5f9af7
push ebx
call fcn.005f06b6
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x5f9b06
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x5f9b17
pop esi
ret
push ebx
push edi
push esi
call fcn.005f9a2f
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.005f126c
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x5f9b3f
push ebx
push esi
push edi
call fcn.005d6ef0
add esp, 0xc
push 0
call fcn.005f06b6
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x5fa299
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005f9db4

Function at 0x5fe8b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x5fe8dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5fe8dd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4a1fd6
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x16556a98
mov edi, 0x3d5004e7
sahf
xlatb
mov dl, 0x3b
fdivrp st(6)
pop ebp
rol dword [0x62ed5d89], 1
dec edi
mov byte [0x333e3fc4], al
push 0x9c9e972c
and byte [0x98b6a5e3], 0x56
push eax
in eax, dx
and byte [ebp + 0x7de99f70], ch
sbb dword [edi - 0xb], 0x5e
cld
xchg esp, eax
test byte [ebx - 0x7916c5f8], bh
cli
inc ebx
pop ecx
in eax, dx
call 0x42417fc6
fistp word [esi]
leave
dec ecx
mov ebp, 0x4ba1b273
xor bh, bl
add byte [edi], ah
jae 0x4a1f7d
mov eax, dword [0xdf304b]
daa
imul byte [edi - 0x10]
fstp st(4)
dec edi
outsd dx, dword [esi]
sar dword [ecx + 0x1885565f], cl
lahf
aaa
xor dh, byte [eax - 0x73]
jne 0x4a1fbb
inc eax
or esp, dword [edi + 0x76]
sal ecx, 0x27
mov cl, 0x15
jo 0x4a1fc9
imul esp, dword [edx], 0x3c
lodsd eax, dword [esi]
xchg eax, esi
inc esp
and dword [ebx + edi*2], ebp
aaa
pop esi
mov bl, 1
sbb ah, ch
mov esi, 0xdc1ac9a2
rcr dword [eax - 0x46c060f8], 0x2a
out dx, eax
cli
fadd dword [ebx - 0x47ddc637]
or esp, esp
pop ebx
inc eax
cmpsb byte [esi], byte es:[edi]
int3
Function at 0x4018a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x40
mov eax, dword [0x45d1ac]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push ebp
push esi
push 1
lea ebx, [edi + 0x14]
push 4
push ebx
mov dword [esp + 0x20], 0
call fcn.0043abdf
mov eax, dword [ebx]
mov ebp, 1
inc eax
add esp, 0x10
cmp eax, ebp
jle 0x4019e1
lea esp, [esp]
xor eax, eax
push esi
push 1
lea ecx, [esp + 0x28]
push 0x24
push ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
call fcn.0043abdf
push esi
push 1
lea edx, [esp + 0x24]
push 4
push edx
call fcn.0043abdf
mov eax, dword [esp + 0x2c]
push eax
call fcn.0043a79a
mov ecx, dword [esp + 0x30]
push esi
push 1
push ecx
push eax
mov dword [esp + 0x64], eax
call fcn.0043abdf
mov ecx, dword [edi + 0xc]
mov eax, dword [edi + 8]
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
add esp, 0x34
push 0
lea ebx, [ebp*4]
add ecx, ebx
push ecx
lea ecx, [esp + 0x28]
push ecx
push eax
call edx
test eax, eax
je 0x40197c
mov eax, dword [edi + 0x2c]
push 0
push str.DirectSound
push str.Not_Sound_Buffer_Create
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [edi + 0xc]
mov ebx, dword [ebx + ecx]
mov edx, dword [ebx]
push 0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [edx + 0x2c]
push eax
push 0
push ebx
call ecx
xor ebx, ebx
cmp dword [esp + 0x28], ebx
jbe 0x4019d4
nop
push esi
push 1
lea edx, [esp + 0x13]
push 1
push edx
call fcn.0043abdf
mov eax, dword [esp + 0x20]
mov cl, byte [esp + 0x1b]
mov byte [ebx + eax], cl
inc ebx
add esp, 0x10
cmp ebx, dword [esp + 0x28]
jb 0x4019b0
mov edx, dword [edi + 0x14]
inc ebp
inc edx
cmp ebp, edx
jl 0x4018e0
push esi
call fcn.0043ae57
mov ecx, dword [esp + 0x48]
add esp, 4
pop ebp
pop ebx
xor ecx, esp
call fcn.0043a652
add esp, 0x40
ret

Function at 0x401d10
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
cmp dword [esi + 0xc], 0
jne 0x401d1f
xor eax, eax
add esp, 0x14
ret
mov ecx, dword [esi + 4]
push ebx
push edi
lea edi, [esi + 0x24]
push edi
lea eax, [esp + 0xc]
push eax
push 4
push 0x460bcc
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x401daa
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
cmp eax, 0x3e5
jne 0x401d8d
mov eax, dword [esi + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
push 1
lea edx, [esp + 0x10]
push edx
push edi
push eax
call ebx
test eax, eax
jne 0x401da9
call ebp
mov edx, dword [esi + 4]
cmp eax, 0x3e4
jne 0x401d98
push 1
lea ecx, [esp + 0x10]
push ecx
push edi
push edx
call ebx
test eax, eax
je 0x401d67
mov eax, dword [esp + 0xc]
pop ebp
pop edi
pop ebx
add esp, 0x14
ret
mov edx, dword [esi + 4]
mov dword [esp + 0xc], 0
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
pop ebp
mov eax, dword [esp + 8]
pop edi
pop ebx
add esp, 0x14
ret
Function at 0x402d30
Capabilities:
Read file on windows

Disassembly:
mov ecx, dword [0x460078]
mov edx, dword [0x46008c]
push esi
mov dword [ecx + 0x1aa0], edx
mov esi, ecx
mov dword [edx + 0x34], 0x402a10
mov dword [edx + 0x30], ecx
sub esi, eax
mov dl, byte [eax]
mov byte [esi + eax], dl
inc eax
test dl, dl
jne 0x402d51
pop esi
jmp 0x403820
sub esp, 0x14c
mov eax, dword [0x45d1ac]
xor eax, esp
mov dword [esp + 0x144], eax
push esi
push edi
push str.initkey.dat
push str.C:OIDD_s
lea eax, [esp + 0x48]
push 0x104
push eax
mov edi, ecx
call fcn.0043b761
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x54]
push edx
call fcn.0043b87a
add esp, 0x18
test eax, eax
jne 0x4038bc
push eax
push 0x80
push 3
push eax
push eax
push 0x80000000
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4038bc
push 0
lea ecx, [esp + 0x10]
push ecx
push 0x11
add edi, 0xb
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.0043a652
add esp, 0x14c
ret
mov ecx, dword [esp + 0x14c]
pop edi
pop esi
xor ecx, esp
or eax, 0xffffffff
call fcn.0043a652
add esp, 0x14c
ret

Function at 0x403750
Capabilities:
Create directory
Write file on windows

Disassembly:
sub esp, 0x14c
mov eax, dword [0x45d1ac]
xor eax, esp
mov dword [esp + 0x144], eax
push esi
push edi
push str.initkey.dat
push str.C:OIDD_s
lea eax, [esp + 0x48]
push 0x104
push eax
mov edi, ecx
call fcn.0043b761
lea ecx, [esp + 0x20]
push ecx
push str.C:OIDD
call fcn.0043b87a
add esp, 0x18
test eax, eax
je 0x4037a8
push 0
push str.C:OIDD
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x403800
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea edx, [esp + 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x403800
push 0
lea eax, [esp + 0x10]
push eax
push 0x11
add edi, 0xb
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.0043a652
add esp, 0x14c
ret
mov ecx, dword [esp + 0x14c]
pop edi
pop esi
xor ecx, esp
or eax, 0xffffffff
call fcn.0043a652
add esp, 0x14c
ret
Function at 0x403820
Capabilities:
Read file on windows

Disassembly:
mov ecx, dword [0x460078]
mov edx, dword [0x46008c]
push esi
mov dword [ecx + 0x1aa0], edx
mov esi, ecx
mov dword [edx + 0x34], 0x402a10
mov dword [edx + 0x30], ecx
sub esi, eax
mov dl, byte [eax]
mov byte [esi + eax], dl
inc eax
test dl, dl
jne 0x402d51
pop esi
jmp 0x403820
sub esp, 0x14c
mov eax, dword [0x45d1ac]
xor eax, esp
mov dword [esp + 0x144], eax
push esi
push edi
push str.initkey.dat
push str.C:OIDD_s
lea eax, [esp + 0x48]
push 0x104
push eax
mov edi, ecx
call fcn.0043b761
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x54]
push edx
call fcn.0043b87a
add esp, 0x18
test eax, eax
jne 0x4038bc
push eax
push 0x80
push 3
push eax
push eax
push 0x80000000
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4038bc
push 0
lea ecx, [esp + 0x10]
push ecx
push 0x11
add edi, 0xb
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.0043a652
add esp, 0x14c
ret
mov ecx, dword [esp + 0x14c]
pop edi
pop esi
xor ecx, esp
or eax, 0xffffffff
call fcn.0043a652
add esp, 0x14c
ret

Function at 0x403c30
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
test edx, edx
jbe 0x403c5e
push esi
push edi
movsx edi, byte [ecx]
mov esi, eax
shr esi, 8
xor esi, edi
shl eax, 8
and esi, 0xff
xor ax, word [esi*2 + 0x4572a0]
inc ecx
sub edx, 1
movzx eax, ax
jne 0x403c38
pop edi
pop esi
ret

Function at 0x403c60
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
test edx, edx
jbe 0x403c8e
push esi
push edi
movsx edi, byte [ecx]
mov esi, eax
shr esi, 8
xor esi, edi
shl eax, 8
and esi, 0xff
xor ax, word [esi*2 + 0x4572a0]
inc ecx
sub edx, 1
movzx eax, ax
jne 0x403c68
pop edi
pop esi
movzx eax, ax
xor ecx, ecx
cmp dword [esp + 4], eax
sete cl
mov eax, ecx
ret
Function at 0x403ca0
Capabilities:
Create thread

Disassembly:
sub esp, 0x44
mov eax, dword [0x45d1ac]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
mov ebp, dword [0x46008c]
push esi
push 3
mov esi, ecx
push 0x4574a0
push esi
call fcn.0044bf9b
add esp, 0xc
xor ebx, ebx
test eax, eax
jne 0x403d22
lea eax, [esi + 3]
push eax
call fcn.0043b795
add esp, 4
cmp eax, 0xa
jl 0x403d22
mov dl, byte [0x4574a8]
mov ecx, dword [str.._]
mov eax, esi
mov byte [esp + 0x40], dl
mov dword [esp + 0x3c], ecx
mov edx, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x403cf8
push edi
lea edi, [esp + 0x40]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x403d07
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [esp + 0x40]
pop edi
push ebx
push 0x40000000
push 3
push ebx
push ebx
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp], eax
cmp eax, 0xffffffff
jne 0x403d57
pop esi
mov dword [ebp], ebx
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0043a652
add esp, 0x44
ret
lea ecx, [esp + 0x20]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCommState]
mov eax, dword [esp + 0x28]
and eax, 0xfffff7fd
or eax, 1
lea edx, [esp + 0x20]
mov dword [esp + 0x28], eax
mov eax, dword [ebp]
push edx
push eax
mov dword [esp + 0x28], 0x1c
mov dword [esp + 0x2c], 0x4b00
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3b], bl
mov byte [esp + 0x3a], 8
call dword [sym.imp.KERNEL32.dll_SetCommState]
mov edx, dword [ebp]
lea ecx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetCommTimeouts]
mov ecx, dword [ebp]
lea eax, [esp + 0xc]
push eax
push ecx
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_SetCommTimeouts]
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebx
push ebx
push 1
push ebx
call esi
push ebx
push ebx
push 1
push ebx
mov dword [ebp + 0x14], eax
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
mov dword [ebp + 0x10], ebx
call esi
lea edx, [ebp + 0x2c]
push edx
push ebx
push ebp
push 0x403f90
push ebx
push ebx
mov dword [ebp + 0x28], eax
mov dword [ebp + 0x18], ebx
mov dword [ebp + 0x1c], ebx
mov dword [ebp + 0x20], ebx
mov dword [ebp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esp + 0x4c]
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0043a652
add esp, 0x44
ret
Function at 0x403e40
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push ebx
push esi
lea ebx, [edi + 4]
push ebx
lea eax, [esp + 0xc]
push eax
mov eax, dword [edi]
push ecx
push edx
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403ed5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x403ecd
mov edx, dword [edi]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
push 1
lea ecx, [esp + 0x10]
push ecx
push ebx
push edx
call ebp
test eax, eax
jne 0x403ec8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi]
mov dword [esp + 0x10], eax
cmp eax, 0x3e4
jne 0x403eb7
add esi, dword [esp + 0xc]
push 1
lea eax, [esp + 0x10]
push eax
push ebx
push ecx
call ebp
test eax, eax
je 0x403e84
add esi, dword [esp + 0xc]
pop ebp
mov eax, esi
pop esi
pop ebx
add esp, 0x14
ret
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
add esi, dword [esp + 0xc]
pop ebp
mov eax, esi
pop esi
pop ebx
add esp, 0x14
ret
mov eax, dword [esp + 8]
pop esi
pop ebx
add esp, 0x14
ret

Function at 0x403ee0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
push ebx
push edi
lea edi, [esi + 0x18]
push edi
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [esp + 8]
test eax, eax
jne 0x403f66
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x403f6e
mov ecx, dword [esi + 0x28]
push 0x3e8
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x403f2b
xor ebx, ebx
pop edi
mov eax, ebx
pop ebx
add esp, 0x14
ret
mov eax, dword [esi]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
push 0
lea edx, [esp + 0x10]
push edx
push edi
push eax
call ebp
test eax, eax
jne 0x403f65
add ebx, dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e4
jne 0x403f65
mov edx, dword [esi]
push 0
lea ecx, [esp + 0x10]
push ecx
push edi
push edx
call ebp
test eax, eax
je 0x403f43
pop ebp
pop edi
mov eax, ebx
pop ebx
add esp, 0x14
ret
mov edx, dword [esi]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
pop edi
xor eax, eax
pop ebx
add esp, 0x14
ret

Function at 0x404da0
Capabilities:
Read file on windows

Disassembly:
push ecx
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
lea ecx, [esp + 4]
push ecx
push 4
lea edx, [esi + 0x3e0]
push edx
push eax
mov dword [esi + 0x3cc], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor ecx, ecx
mov eax, 0x300
mov edx, 2
mul edx
seto cl
mov dword [esi + 0x424], 0
neg ecx
or ecx, eax
push ecx
call fcn.0043aeee
mov dword [esi + 0x3e8], eax
add esp, 8
ret
Function at 0x404e10
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0xc]
push edi
push 0x45712c
push eax
mov dword [esp + 0x18], 0
call fcn.0043a928
mov edi, eax
add esp, 8
test edi, edi
je 0x404f4b
push ebx
push esi
push edi
push 1
lea ebx, [ebp + 0x3e0]
push 4
push ebx
call fcn.0043abdf
mov eax, dword [ebx]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043aeee
xor esi, esi
add esp, 0x14
cmp dword [ebx], esi
mov dword [ebp + 0x3e4], eax
jle 0x404f1f
push edi
push 1
lea eax, [esp + 0x18]
push 4
push eax
call fcn.0043abdf
push 1
push 0xfffffffffffffffc
push edi
call fcn.0043bd0c
mov eax, dword [esp + 0x2c]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043aeee
mov ecx, dword [ebp + 0x3e4]
mov dword [ecx + esi*4], eax
mov edx, dword [esp + 0x30]
mov ecx, dword [ebp + 0x3e4]
push edi
lea eax, [edx + edx]
mov edx, dword [ecx + esi*4]
push 1
push eax
push edx
call fcn.0043abdf
add esp, 0x30
test esi, esi
jl 0x404ee5
cmp esi, dword [ebx]
jge 0x404ee5
mov eax, dword [ebp + 0x3e4]
mov ecx, dword [eax + esi*4]
movzx eax, word [ecx + 4]
jmp 0x404eea
mov eax, 0xffffffce
movsx edx, word [esp + 0x18]
cmp edx, eax
jge 0x404f16
test esi, esi
jl 0x404f0a
cmp esi, dword [ebx]
jge 0x404f0a
mov eax, dword [ebp + 0x3e4]
mov ecx, dword [eax + esi*4]
movzx eax, word [ecx + 4]
jmp 0x404f0f
mov eax, 0xffffffce
movzx edx, ax
mov dword [esp + 0x18], edx
inc esi
cmp esi, dword [ebx]
jl 0x404e75
movsx eax, word [esp + 0x18]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043aeee
push edi
mov dword [ebp + 0x3e8], eax
call fcn.0043ae57
add esp, 8
pop esi
pop ebx
push 0x500
push 0x300
push 0
push 0
add ebp, 0x3f8
push ebp
call dword [sym.imp.USER32.dll_SetRect]
pop edi
pop ebp
pop ecx
ret 4

Function at 0x4050b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
mov ebx, eax
cmp ebx, dword [esi + 0x3e0]
jge 0x405132
mov eax, dword [esi + 0x3cc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 4
push eax
mov byte [esi + 0x428], 0
mov dword [esi + 0x424], ebx
call edi
dec ebx
test ebx, ebx
jle 0x405131
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [ecx]
mov eax, dword [esi + 0x3cc]
push 0
lea ecx, [esp + 0x14]
push ecx
push 4
lea edx, [esp + 0x18]
push edx
push eax
call ebp
mov ecx, dword [esi + 0x3cc]
push 1
push 0
push 0xfffffffffffffffc
push ecx
call edi
mov edx, dword [esp + 0xc]
mov ecx, dword [esi + 0x3cc]
push 1
push 0
lea eax, [edx + edx]
push eax
push ecx
call edi
sub ebx, 1
jne 0x4050f0
pop ebp
pop edi
pop ebx
add esp, 8
ret