joyce8/EMBER2024-capa huggingface dataset:
Function at 0x440ed0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46def8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.00467022
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00440870
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00466f50
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00463814
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00463814
push 1
push 0
push 0
mov ecx, esi
call fcn.004637bc
push 1
push 0
push 1
mov ecx, esi
call fcn.004637bc
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00467094
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x441050
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46df18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00467022
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00440870
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00466f50
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x441114
cmp dword [esp + 0x40], 1
jne 0x441112
cmp ecx, eax
jge 0x441114
mov eax, ecx
cmp eax, 0xc8
jge 0x441120
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00440ed0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00467094
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x4418a0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46df83
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00461c34
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004672ca
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004687e6
test eax, eax
je 0x4419bc
mov ecx, dword [esp + 0x3c]
call fcn.004672f7
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x441980
push edi
mov ecx, esi
call fcn.0046495b
mov ecx, esi
call fcn.00441b20
cmp dword [esp + 0x38], 1
jne 0x4419b5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00464a96
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x4443e0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x444413
push esi
call fcn.004474d0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44440c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x444499
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x444482
mov eax, dword [esi + 8]
test eax, eax
je 0x444437
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44447e
cmp eax, 2
je 0x444482
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44442a
cmp eax, 3
je 0x44445d
cmp eax, 1
jne 0x44442a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44442a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44442a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004444c0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4444a8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004444c0
add esp, 4
pop esi
ret

Function at 0x462a2a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x462a62
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.00460ade
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00460ab6
jmp 0x462a6e
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x464118
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 0x46415a
call fcn.00469bf0
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46415a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x464151
xor eax, eax
jmp 0x464162
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00464168
pop edi
pop esi
pop ebx
ret 4

Function at 0x46a120
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 0x46a14e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46a16c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046a086
jmp 0x46a16c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46a16c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046a086
test edi, edi
mov eax, edi
jne 0x46a156
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x404465
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4044a4
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4044a4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4044a4
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4044a4
cmp dword [ecx + 0x74], 0xe
jbe 0x4044a4
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x410648
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x420548
push 0x420540
push str.FlsAlloc
push 0x1f
call fcn.00410564
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41067c
push dword [ebp + 8]
mov ecx, esi
call dword [0x41e15c]
call esi
jmp 0x410682
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4106c6
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x420558
push 0x420550
push str.FlsGetValue
push 0x21
call fcn.00410564
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4106fd
push dword [ebp + 8]
mov ecx, esi
call dword [0x41e15c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x410705
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x420560
push 0x420558
push str.FlsSetValue
push 0x22
call fcn.00410564
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41073f
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41e15c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x413e1b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x426fc0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x413e5b
cmp byte [ebx], 0xa
jne 0x413e5b
or byte [edi + eax + 0x28], 4
jmp 0x413e60
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x413f5f
mov dl, byte [eax]
cmp dl, 0x1a
je 0x413f42
inc eax
cmp dl, 0xd
je 0x413e8c
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x413eb2
cmp eax, ecx
jae 0x413ec0
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x413e74
jmp 0x413f5f
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x413f3d
cmp dword [ebp - 0x10], 0
je 0x413f3d
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x426fc0]
test byte [eax + edi + 0x28], 0x48
je 0x413f17
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x413f02
mov byte [esi], dl
jmp 0x413f13
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x426fc0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x413f5f
cmp byte [ebp - 1], 0xa
jne 0x413f26
cmp esi, ebx
jne 0x413f26
mov byte [esi], 0xa
jmp 0x413f5e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00419819
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x413f5f
mov byte [esi], 0xd
jmp 0x413f5e
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x426fc0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x413f5c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x413f5f
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x413f68
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x426fc0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x413fae
cmp word [ebx], dx
jne 0x413fae
or byte [eax + edi + 0x28], 4
jmp 0x413fb3
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x414116
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4140f6
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x413ff4
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41402a
cmp eax, edx
jae 0x414038
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x413fcf
jmp 0x414116
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4140f1
cmp dword [ebp - 0x18], 0
je 0x4140f1
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x426fc0]
test byte [eax + edi + 0x28], 0x48
je 0x4140c7
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x41408b
mov word [esi], cx
jmp 0x4140c2
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x426fc0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x426fc0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x426fc0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x414116
pop eax
cmp word [ebp - 4], ax
jne 0x4140d7
cmp esi, ebx
jne 0x4140d7
mov word [esi], ax
jmp 0x414113
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00419819
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x414116
push 0xd
pop eax
jmp 0x4140d2
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x426fc0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x414110
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x414116
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41599c
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 0x415a39
push ebx
push esi
call fcn.00415965
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.0041172a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4159e6
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x415a38
push edi
push eax
call fcn.0041164c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x415a06
call fcn.00410411
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x415a37
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041172a
add esp, 0x20
test eax, eax
jne 0x415a25
push edi
call fcn.00410411
jmp 0x415a2d
push ebx
call fcn.00410411
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 0x41a9e5
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.0041a961
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x41ab54
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x41ab54
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x41ab09
jg 0x41aa41
test eax, eax
je 0x41aaff
push 1
push 0x1000
call fcn.004103b4
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x41aa64
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x41aaf6
push 0x8000
push ebx
call fcn.0040f27e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x41aa8d
jg 0x41aa88
cmp ecx, 0x1000
jb 0x41aa8d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004137a4
add esp, 0x10
cmp eax, 0xffffffff
je 0x41aad2
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 0x41aa88
jl 0x41aab9
test ecx, ecx
jne 0x41aa7a
push dword [ebp - 0xc]
push ebx
call fcn.0040f27e
push esi
call fcn.00410411
add esp, 0xc
xor ebx, ebx
jmp 0x41ab62
cmp byte [edi + 0x24], 0
je 0x41aae9
cmp dword [edi + 0x20], 5
jne 0x41aae9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x41aaf4
mov ebx, dword [edi + 0x18]
jmp 0x41aaf6
xor ebx, ebx
push esi
call fcn.00410411
pop ecx
jmp 0x41ab62
test ecx, ecx
jg 0x41aacb
jl 0x41ab09
test eax, eax
jae 0x41aacb
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00419819
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x41ab29
cmp byte [edi + 0x1c], 0
je 0x41aacb
jmp 0x41ab5a
push ebx
call fcn.00415e52
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x41aacb
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 0x41ab62
cmp byte [edi + 0x1c], 0
je 0x41ab5f
mov ebx, dword [edi + 0x18]
jmp 0x41ab62
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00419819
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41c9f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41ca1d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41ca1d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402680
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.0042bb70
add esp, 0x10
cmp dword [esp + 0x44], 0
je 0x403801
lea edx, [esp + 4]
push edx
push str.C:OIDD
call fcn.0042b71f
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.0042b71f
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.00429e93
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.00429e93
add esp, 0x10c
ret
mov ecx, dword [esp + 0x110]
pop esi
pop edi
xor ecx, esp
or eax, 0xffffffff
call fcn.00429e93
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.00429e93
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.00429e93
add esp, 0x10c
ret
mov ecx, dword [esp + 0x110]
pop esi
pop edi
xor ecx, esp
or eax, 0xffffffff
call fcn.00429e93
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