joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47cde8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xcc
mov eax, dword [0x58005c]
xor eax, esp
mov dword [esp + 0xc8], eax
push ebx
push esi
push edi
mov eax, 0xc0
push eax
lea eax, [esp + 0x14]
push 0
push eax
call fcn.004821f0
add esp, 0xc
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x28]
push eax
push 0x20
push 1
call dword [sym.imp.KERNEL32.dll_RtlCaptureStackBackTrace]
cmp ax, 3
jbe 0x47cf38
and dword [esp + 0xc], 0
mov dword [esp + 0xc], ebp
mov eax, dword [esp + 0xc]
lea edi, [esp + 0x10]
push 0x5915f8
mov eax, dword [eax]
mov esi, dword [eax]
add esi, 8
mov dword [esp + 0x10], esi
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x5915f0]
mov esi, 0xc0
mov ecx, dword [0x5915ec]
xor ebx, ebx
sub eax, ecx
cdq
idiv esi
test eax, eax
je 0x47ceed
xor edi, edi
mov eax, dword [esp + 0x20]
lea esi, [edi + ecx]
cmp dword [esi + 0x10], eax
jne 0x47ced7
lea edx, [esp + 0x10]
xor ecx, ecx
mov eax, dword [esi + ecx*4]
cmp eax, dword [edx + ecx*4]
jne 0x47ced1
inc ecx
cmp ecx, 4
jne 0x47ce92
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
xor edx, edx
mov eax, dword [esi + 0xbc]
push 0xa
pop edi
div edi
mov dword [esi + edx*4 + 0x94], ecx
inc dword [esi + 0xbc]
push 0x5915f8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
jmp 0x47cf3a
mov ecx, dword [0x5915ec]
mov eax, dword [0x5915f0]
mov esi, 0xc0
sub eax, ecx
inc ebx
cdq
add edi, esi
idiv esi
cmp ebx, eax
jb 0x47ce80
call dword [sym.imp.KERNEL32.dll_GetTickCount]
inc dword [esp + 0xcc]
mov dword [esp + 0xa4], eax
mov eax, dword [0x5915f0]
cmp eax, dword [0x5915f4]
je 0x47cf26
push 0x30
mov edi, eax
lea esi, [esp + 0x14]
pop ecx
mov eax, 0xc0
rep movsd dword es:[edi], dword [esi]
add dword [0x5915f0], eax
jmp 0x47cec2
lea ecx, [esp + 0x10]
push ecx
push eax
mov ecx, 0x5915ec
call fcn.0047d0d6
jmp 0x47cec2
xor al, al
mov ecx, dword [esp + 0xd4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047f860
mov esp, ebp
pop ebp
ret

Function at 0x47d6c6
Capabilities:
Read .ini file

Disassembly:
push 0x810
mov eax, 0x4b3337
call fcn.004803aa
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x818], edi
xor ebx, ebx
lea eax, [ebp - 0x810]
push 0x800
mov dword [ebp - 4], ebx
push ebx
mov dword [ebp - 0x81c], edi
push eax
mov dword [ebp - 0x814], ebx
call fcn.004821f0
add esp, 0xc
lea eax, [ebp - 0x810]
push esi
push 0x400
push eax
push 0x4cb568
push str.CrashRptVersion
push str.Settings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x810]
mov ecx, edi
push eax
call fcn.004781ee
push ecx
push ecx
mov dword [ebp - 4], ebx
mov ecx, edi
mov dword [ebp - 0x814], 1
call fcn.0047db30
mov eax, edi
call fcn.00480359
ret
Function at 0x47d91f
Capabilities:
Create directory
Get file attributes

Disassembly:
push 8
mov eax, 0x4b341d
call fcn.00480377
and dword [ebp - 4], 0
call fcn.004775c8
push eax
lea ecx, [ebp - 0x10]
call fcn.0047845e
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jle 0x47d95f
push 0x3a
push eax
call fcn.00480fcb
pop ecx
pop ecx
mov ecx, eax
mov eax, dword [ebp + 8]
test ecx, ecx
jne 0x47d964
or ecx, 0xffffffff
jmp 0x47d968
sub ecx, eax
sar ecx, 1
test ecx, ecx
lea edi, [ecx + 2]
cmovs edi, ecx
test edi, edi
js 0x47d9bd
cmp edi, dword [eax - 0xc]
jge 0x47d9bd
lea eax, [eax + edi*2]
push 0x5c
push eax
call fcn.00480fcb
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x47d9bd
sub edi, dword [ebp + 8]
sar edi, 1
js 0x47d9c0
push edi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 8]
call fcn.0047daeb
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0047814e
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.004775a2
jmp 0x47d9cc
or edi, 0xffffffff
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.0047814e
mov esi, dword [ebp - 0x10]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x47d9e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x47da02
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x47da02
cmp edi, 0xffffffff
je 0x47da04
mov eax, dword [ebp + 8]
inc edi
jmp 0x47d970
xor ebx, ebx
lea ecx, [esi - 0x10]
call fcn.004775a2
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004775a2
mov eax, ebx
call fcn.00480345
ret

Function at 0x49c06b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0049bee1

Function at 0x4a1a44
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004a1597
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
mov ecx, 0x42142fa2
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x55046a
nop
nop
nop
test eax, eax
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x10001000
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x10001071
mov ecx, dword [ebp - 4]
cmp dword [ecx + 8], 0
je 0x10001071
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
jne 0x1000105a
jmp 0x10001071
mov eax, dword [ebp - 4]
add eax, 0xc
push eax
push 0x40
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x10001ee0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10006bf8
push 0x10003be3
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x100080c0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, edx
mov esi, ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
push 0x40
push 5
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub edi, esi
sub edi, 5
mov byte [esi], 0xe9
mov dword [esi + 1], edi
mov eax, 5
mov dword [ebp - 0x28], eax
cmp eax, 5
jae 0x10001f4f
mov byte [esi + eax], 0x90
inc eax
jmp 0x10001f40
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x20]
push 5
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x10001f6a
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10003c12
mov esp, ebp
pop ebp
ret
Function at 0x10003410
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x1000342e
push 0
push 0
push 0
push 0x100033f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc

Function at 0x100037a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], 0
mov ebx, dword fs:[0x30]
mov ebx, dword [ebx + 0xc]
mov ebx, dword [ebx + 0x14]
mov ebx, dword [ebx]
mov ebx, dword [ebx]
mov ebx, dword [ebx + 0x10]
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x261c441d
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e3d0
mov ecx, 0x13ee6e0a
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219

Function at 0x42e000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
mov ecx, 0x3bab5e71
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e024
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x7a2d613f
nop
test eax, eax
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..rsrc
nop
mov ebx, 0x40de38
mov ecx, 0x122a4ab9
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
mov ecx, 0x15503254
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219

Function at 0x432006
Capabilities:
Encode data using xor

Disassembly:
call 0x43200c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x10001000
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000f999
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push edi
mov ebx, ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 0
mov edi, dword [ebp + 8]
push 0
push 0
mov dword [ebp - 0x10], 4
mov eax, dword [edi]
sub eax, 4
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
mov dword [edi], eax
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp + 8]
push 0
push 0
lea ecx, [eax + eax]
mov eax, dword [edi]
sub eax, ecx
mov dword [ebp - 0x10], ecx
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [edi], eax
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x14], 7
cmp dword [ebx + 0x14], 8
mov dword [ebx + 0x10], 0
jb 0x100010a1
mov eax, dword [ebx]
jmp 0x100010a3
mov eax, ebx
xor ecx, ecx
mov word [eax], cx
mov dword [ebp - 4], ecx
mov ecx, dword [ebx + 0x10]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], 1
cmp eax, ecx
ja 0x100010d9
mov dword [ebx + 0x10], eax
cmp dword [ebx + 0x14], 8
jb 0x100010cf
mov ecx, dword [ebx]
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x100010e5
mov ecx, ebx
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x100010e5
sub eax, ecx
mov ecx, ebx
push 0
push eax
call fcn.10002250
cmp dword [ebx + 0x14], 8
jb 0x100010ef
mov eax, dword [ebx]
jmp 0x100010f1
mov eax, ebx
push 0
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp - 0x10]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebx + 0x14], 8
jb 0x1000110e
mov eax, dword [ebx]
jmp 0x10001110
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10001113
mov ecx, dword [ebx + 0x10]
sub eax, edx
sar eax, 1
cmp eax, ecx
ja 0x10001166
mov dword [ebx + 0x10], eax
cmp dword [ebx + 0x14], 8
jb 0x1000114c
mov ecx, dword [ebx]
xor edx, edx
pop edi
mov word [ecx + eax*2], dx
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, ebx
xor edx, edx
pop edi
mov word [ecx + eax*2], dx
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
sub eax, ecx
mov ecx, ebx
push 0
push eax
call fcn.10002250
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x10001a20
Capabilities:
Create thread
Terminate process

Disassembly:
push 0
push 0
push 0
push 0x10001800
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
call fcn.1000753c
int3
Function at 0x10003570
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000fbb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
push esi
mov esi, ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x21c]
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 0x104
cmovae eax, dword [ebp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x10003620
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp word [ebp - 0x21c], ax
jne 0x100035f3
xor ecx, ecx
lea eax, [ebp - 0x21c]
push ecx
push eax
mov ecx, esi
call fcn.10001cc0
jmp 0x1000362b
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10003600
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.10001cc0
jmp 0x1000362b
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.10001b30
mov eax, dword [ebp + 0x1c]
cmp eax, 8
jb 0x1000363d
inc eax
push eax
push dword [ebp + 8]
call fcn.10002080
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x433001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x667e1cdf
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x575945cb
nop
nop
nop
test eax, eax
nop
je 0x433084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x402683
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0
jne 0x402695
xor eax, eax
pop esi
add esp, 0xc
ret 8
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ebx
push edi
lea edi, [esi + 0x24]
push edi
lea eax, [esp + 0x24]
push eax
mov eax, dword [esi + 4]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x402726
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
cmp eax, 0x3e5
jne 0x402709
mov edx, dword [esi + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
push 1
lea ecx, [esp + 0x28]
push ecx
push edi
push edx
call ebx
test eax, eax
jne 0x402725
call ebp
mov ecx, dword [esi + 4]
cmp eax, 0x3e4
jne 0x402714
push 1
lea eax, [esp + 0x28]
push eax
push edi
push ecx
call ebx
test eax, eax
je 0x4026e0
mov eax, dword [esp + 0x24]
pop ebp
pop edi
pop ebx
pop esi
add esp, 0xc
ret 8
mov ecx, dword [esi + 4]
mov dword [esp + 0x24], 0
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
pop ebp
mov eax, dword [esp + 0x20]
pop edi
pop ebx
pop esi
add esp, 0xc
ret 8

Function at 0x4037a0
Capabilities:
Create directory

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xc]
sub esp, 0x30
push esi
mov esi, dword [esp + 0x3c]
push eax
push str.C:OIDD_s
push ecx
push esi
call fcn.0042bb90
add esp, 0x10
cmp dword [esp + 0x44], 0
je 0x403801
lea edx, [esp + 4]
push edx
push str.C:OIDD
call fcn.0042b73f
add esp, 8
test eax, eax
je 0x4037f8
push 0
push str.C:OIDD
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4037f8
or eax, 0xffffffff
pop esi
add esp, 0x30
ret 0x10
xor eax, eax
pop esi
add esp, 0x30
ret 0x10
lea eax, [esp + 4]
push eax
push esi
call fcn.0042b73f
add esp, 8
neg eax
sbb eax, eax
pop esi
add esp, 0x30
ret 0x10

Function at 0x4039a0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10c
mov eax, dword [0x44d6b0]
xor eax, esp
mov dword [esp + 0x108], eax
push edi
push 1
push 0x104
lea eax, [esp + 0x10]
push eax
push str.initkey.dat
mov edi, ecx
call fcn.004037a0
test eax, eax
je 0x4039ea
or eax, 0xffffffff
pop edi
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.00429eb3
add esp, 0x10c
ret
push esi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x403a43
push 0
lea edx, [esp + 0xc]
push edx
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]
pop esi
xor eax, eax
pop edi
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.00429eb3
add esp, 0x10c
ret
mov ecx, dword [esp + 0x110]
pop esi
pop edi
xor ecx, esp
or eax, 0xffffffff
call fcn.00429eb3
add esp, 0x10c
ret
Function at 0x403a60
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10c
mov eax, dword [0x44d6b0]
xor eax, esp
mov dword [esp + 0x108], eax
push edi
push 0
push 0x104
lea eax, [esp + 0x10]
push eax
push str.initkey.dat
mov edi, ecx
call fcn.004037a0
test eax, eax
je 0x403aaa
or eax, 0xffffffff
pop edi
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.00429eb3
add esp, 0x10c
ret
push esi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x403b03
push 0
lea edx, [esp + 0xc]
push edx
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]
pop esi
xor eax, eax
pop edi
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.00429eb3
add esp, 0x10c
ret
mov ecx, dword [esp + 0x110]
pop esi
pop edi
xor ecx, esp
or eax, 0xffffffff
call fcn.00429eb3
add esp, 0x10c
ret

Function at 0x404630
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
xor eax, eax
test edx, edx
jbe 0x404666
mov ecx, dword [esp + 4]
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 + 0x4415e8]
inc ecx
sub edx, 1
movzx eax, ax
jne 0x404640
pop edi
pop esi
ret

Function at 0x4046e0
Capabilities:
Read file on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x20]
lea ebx, [edi + 4]
push ebx
lea eax, [esp + 0x24]
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 0x404787
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x40477c
mov edx, dword [edi]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
push 1
lea ecx, [esp + 0x28]
push ecx
push ebx
push edx
call ebp
test eax, eax
jne 0x404777
nop
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi]
mov dword [esp + 0x20], eax
cmp eax, 0x3e4
jne 0x404766
add esi, dword [esp + 0x24]
push 1
lea eax, [esp + 0x28]
push eax
push ebx
push ecx
call ebp
test eax, eax
je 0x404730
add esi, dword [esp + 0x24]
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0xc
ret 8
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
add esi, dword [esp + 0x24]
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0xc
ret 8
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
Function at 0x4047a0
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
mov ecx, dword [esp + 0x20]
lea edi, [esi + 0x18]
push edi
lea eax, [esp + 0x24]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [esp + 0x20]
test eax, eax
jne 0x404834
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x40483f
mov ecx, dword [esi + 0x28]
push 0x3e8
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4047f9
pop edi
xor ebx, ebx
pop esi
mov eax, ebx
pop ebx
add esp, 0xc
ret 8
mov eax, dword [esi]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
push 0
lea edx, [esp + 0x28]
push edx
push edi
push eax
call ebp
test eax, eax
jne 0x404833
add ebx, dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e4
jne 0x404833
mov edx, dword [esi]
push 0
lea ecx, [esp + 0x28]
push ecx
push edi
push edx
call ebp
test eax, eax
je 0x404811
pop ebp
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0xc
ret 8
mov edx, dword [esi]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret 8