joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43b700
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov ebx, ecx
mov ecx, 0xe3
push esi
push edi
lea edi, [ebx + 0x9c4]
mov edx, dword [edi + 4]
lea edi, [edi + 4]
xor edx, dword [edi - 4]
and edx, 0x7fffffff
xor edx, dword [edi - 4]
mov eax, edx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr edx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x630]
xor eax, edx
mov dword [edi - 0x9c4], eax
sub ecx, 1
jne 0x43b710
lea esi, [ebx + 0xd50]
mov edi, 0x18c
mov ecx, dword [esi + 4]
lea esi, [esi + 4]
xor ecx, dword [esi - 4]
and ecx, 0x7fffffff
xor ecx, dword [esi - 4]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi - 0xd50]
xor eax, ecx
mov dword [esi - 0x9c4], eax
sub edi, 1
jne 0x43b752
mov ecx, dword [ebx + 0x1380]
xor ecx, dword [ebx + 4]
and ecx, 0x7fffffff
xor ecx, dword [ebx + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx + 0x634]
xor eax, ecx
mov dword [ebx + 0x9c0], eax
mov dword [ebx], edi
pop edi
pop esi
pop ebx
ret

Function at 0x43ef0e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.0044b776
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x43ef45
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.0043ef66
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x442b18
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x442b5d
call fcn.0044b776
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x442b5d
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x442b79
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0044bf1b
mov ebx, eax
test edi, edi
je 0x442b77
test esi, esi
je 0x442b77
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4435a2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x443660
cmp dword [esi + 0x20], 0
je 0x443660
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x443660
cmp dword [ebp + 8], 0
je 0x443660
xor eax, eax
mov ebx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov edi, eax
call fcn.0044b776
push 0x5e3b20
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x443631
mov edi, dword [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x443660
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 8], eax
push dword [ebp - 4]
push ebx
push esi
call fcn.0045551d
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x443651
test edi, edi
je 0x443651
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
je 0x44365c
mov ecx, esi
call fcn.00443345
mov eax, ebx
jmp 0x443662
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x447b83
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5d9b1d
call fcn.00571fdd
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x447ba9
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x447c08
call fcn.0044826d
push eax
lea ecx, [ebp - 0x10]
call fcn.0040bd60
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call fcn.00571fa0
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.00598710
push eax
call fcn.0040a4a0
add esp, 0x14
test esi, esi
je 0x447bfb
push esi
call fcn.0059877c
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040a650
mov eax, ebx
call fcn.00571fa6
ret 8
Function at 0x457060
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
je 0x45707a
mov edi, dword [esi + 0xc]
jmp 0x4570ba
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x457093
call fcn.00449dfe
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4570a8
call fcn.00449dfe
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4570ba
call fcn.00449dfe
call fcn.0044b776
cmp dword [eax + 0x3c], 0
je 0x4570cf
push edi
mov ecx, ebx
call fcn.004566f4
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004572ac
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x4570f8
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x457104
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x46f260
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.00447acd
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x46f29c
call fcn.0046f482
mov dword [esi + 0xc], 1
jmp 0x46f2a1
call fcn.0046f482
cmp dword [esi], 0
je 0x46f2ea
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x46f2c4
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.00442bee
jmp 0x46f2d5
push 0xff
mov ecx, esi
call fcn.0040bd20
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0043dea8
jmp 0x46f30e
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x46f30e
push dword [esi]
push dword [ebp - 4]
call fcn.0044e25d
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x46f3d7
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.0046f482
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x46f41f
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00442bee
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0043dea8
jmp 0x46f42a
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0044e25d
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4ac746
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
test esi, esi
jne 0x4ac75f
call fcn.0044b776
mov esi, dword [eax + 0xc]
push 0x62003c
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x4ac7b5
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4ac7b4
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x4ac795
xor esi, esi
jmp 0x4ac7ab
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.004ac7bd
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x5750d6
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x5ddd94
call fcn.00572011
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x5751f3
cmp byte [ebx + 0x3e], 0
je 0x5751f3
mov eax, dword [ebx]
mov edi, 0xffff
push edi
mov esi, dword [eax + 0xc]
mov ecx, esi
call fcn.00571fa0
mov ecx, ebx
call esi
movzx eax, ax
cmp di, ax
sete al
test al, al
je 0x575122
xor al, al
jmp 0x5751f5
xor eax, eax
mov dword [ebp - 0x14], 0xf
push eax
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
call fcn.00406500
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov edx, ecx
cmp eax, 0x10
jae 0x575152
lea edx, [ebp - 0x28]
mov ecx, edx
mov edi, dword [ebx + 0x38]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
add eax, edx
mov esi, dword [edi]
push eax
push ecx
lea eax, [ebx + 0x40]
mov ecx, dword [esi + 0x20]
push eax
call fcn.00571fa0
mov ecx, edi
call dword [esi + 0x20]
sub eax, 0
je 0x575187
sub eax, 1
je 0x57518b
dec eax
sub eax, 1
je 0x5751e1
xor bl, bl
jmp 0x5751e3
mov byte [ebx + 0x3e], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
mov edx, ecx
cmp eax, 0x10
jae 0x57519b
lea edx, [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
sub esi, edx
je 0x5751c3
cmp eax, 0x10
jae 0x5751aa
lea ecx, [ebp - 0x28]
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.005953de
add esp, 0x10
cmp esi, eax
jne 0x575183
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
cmp byte [ebx + 0x3e], 0
je 0x5751e1
test esi, esi
jne 0x575146
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00406db0
jmp 0x575140
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00406470
mov al, bl
jmp 0x5751f5
mov al, 1
call fcn.00571fbb
ret
Function at 0x58af40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5deee8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x649fe8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
mov edx, 2
test edi, edi
mov eax, 1
cmove edi, eax
xor ecx, ecx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043b805
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
push esi
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x58afd4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x58afd4
push 0x60fdd0
push dword [ebp + 0xc]
push eax
call fcn.0058be10
add esp, 0xc
jmp 0x58afed
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x58afed
mov dword [edi], 0
mov byte [edi + 4], 0
call fcn.00404cd0
mov dword [edi + 8], eax
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
cmp word [esi], ax
je 0x58b01f
mov eax, esi
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x58b010
sub eax, edx
sar eax, 1
push eax
push esi
mov ecx, edi
call fcn.00409e30
push esi
call fcn.0043b800
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x5a99b7
Capabilities:
Read file on windows

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

Function at 0x5a99c2
Capabilities:
Read file on windows

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

Function at 0x5af242
Capabilities:
Set environment variable

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

Function at 0x5b7986
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
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.0043ac2f
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.0043ac2f
push esi
push 1
lea edx, [esp + 0x24]
push 4
push edx
call fcn.0043ac2f
mov eax, dword [esp + 0x2c]
push eax
call fcn.0043a7ea
mov ecx, dword [esp + 0x30]
push esi
push 1
push ecx
push eax
mov dword [esp + 0x64], eax
call fcn.0043ac2f
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.0043ac2f
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.0043aea7
mov ecx, dword [esp + 0x48]
add esp, 4
pop ebp
pop ebx
xor ecx, esp
call fcn.0043a6a2
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.0043b7b1
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x54]
push edx
call fcn.0043b8ca
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.0043a6a2
add esp, 0x14c
ret
mov ecx, dword [esp + 0x14c]
pop edi
pop esi
xor ecx, esp
or eax, 0xffffffff
call fcn.0043a6a2
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.0043b7b1
lea ecx, [esp + 0x20]
push ecx
push str.C:OIDD
call fcn.0043b8ca
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.0043a6a2
add esp, 0x14c
ret
mov ecx, dword [esp + 0x14c]
pop edi
pop esi
xor ecx, esp
or eax, 0xffffffff
call fcn.0043a6a2
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.0043b7b1
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x54]
push edx
call fcn.0043b8ca
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.0043a6a2
add esp, 0x14c
ret
mov ecx, dword [esp + 0x14c]
pop edi
pop esi
xor ecx, esp
or eax, 0xffffffff
call fcn.0043a6a2
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.0044bfeb
add esp, 0xc
xor ebx, ebx
test eax, eax
jne 0x403d22
lea eax, [esi + 3]
push eax
call fcn.0043b7e5
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.0043a6a2
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.0043a6a2
add esp, 0x44
ret