joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4121e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x20]
push ebx
push esi
push edi
mov byte [ebp - 0x20], al
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
xor eax, eax
push fcn.004121c0
push ebp
push 0x4135b0
push dword fs:[eax]
mov dword fs:[eax], esp
test byte [ebp - 0x20], 0xff
je 0x41230a
movzx eax, byte [ebp - 0x20]
sub eax, 0xffffffc0
mov word [ebp - 8], ax
mov word [ebp - 6], 0x3a
mov word [ebp - 4], 0
mov word [ebp - 2], 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetFullPathNameW
mov esi, eax
lea edx, [esi - 1]
mov eax, dword [ebp - 0x1c]
call fcn.0040b080
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
test edx, edx
jne 0x41226f
mov edx, 0x458a40
push edx
push esi
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetFullPathNameW
mov ebx, eax
test ebx, ebx
jne 0x4122c1
call sub.kernel32.dll_GetLastError
call fcn.00404270
lea eax, [ebp - 0x10]
call fcn.00409e90
movzx eax, byte [ebp - 0x20]
sub eax, 0xffffffc0
lea edx, [ebp - 0x14]
call fcn.0040a330
mov edx, dword [ebp - 0x14]
mov ecx, 0x448a1c
lea eax, [ebp - 0x10]
call fcn.0040a1c0
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
call fcn.0040aa70
jmp 0x412358
mov eax, esi
mov edx, 0
sub eax, 1
sbb edx, 0
mov ecx, ebx
xor edi, edi
cmp edx, edi
jne 0x4122da
cmp eax, ecx
je 0x4122e4
mov eax, dword [ebp - 0x1c]
mov edx, ebx
call fcn.0040b080
cmp byte [0x445530], 0
jne 0x412358
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
lea edx, [ebp - 0x18]
call fcn.0040b5d0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
call fcn.0040aab0
lea esi, [esi]
jmp 0x412358
push 0
push 0
call sub.kernel32.dll_GetCurrentDirectoryW
mov esi, eax
lea edx, [esi - 1]
mov eax, dword [ebp - 0x1c]
call fcn.0040b080
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
test eax, eax
jne 0x41232e
mov eax, 0x458a40
push eax
push esi
call sub.kernel32.dll_GetCurrentDirectoryW
cmp byte [0x445530], 0
jne 0x412358
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
lea edx, [ebp - 0x18]
call fcn.0040b5d0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
call fcn.0040aab0
mov esi, esi
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.004121c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412730
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x114]
push ebx
push esi
push edi
mov dword [ebp - 0x10c], 0
mov dword [0x4589a0], 0
mov dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp + eax - 0x108], 0
mov dword [ebp - 0x110], eax
mov ecx, eax
xor edx, edx
mov eax, ebp
call fcn.00412910
mov eax, dword [ebp - 0x110]
lea ecx, [eax + 1]
mov eax, dword [0x4589a0]
mov edx, dword [eax]
lea eax, [ebp - 0x108]
call fcn.00403810
call sub.kernel32.dll_GetCommandLineA
mov dword [0x445330], eax
mov ebx, eax
jmp 0x4128d3
add ebx, 1
movzx eax, byte [ebx]
sub eax, 1
cmp eax, 0x20
jb 0x4127b8
cmp byte [ebx], 0
je 0x4128dc
nop
mov byte [ebp - 0x114], 0
mov edi, ebx
mov dword [ebp - 0x110], 0
jmp 0x412833
mov al, byte [ebx]
cmp al, 1
jb 0x412828
sub al, 0x20
jbe 0x4127f8
sub al, 2
je 0x41280c
jmp 0x412828
mov al, byte [ebp - 0x114]
test al, al
je 0x412838
add dword [ebp - 0x110], 1
jmp 0x412830
cmp byte [ebx + 1], 0x22
je 0x412823
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x412830
add ebx, 1
jmp 0x412830
add dword [ebp - 0x110], 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x4127e8
test dword [ebp - 0x10c], 0xffffffff
je 0x4128cc
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x10c]
mov eax, ebp
call fcn.00412910
mov byte [ebp - 0x114], 0
mov ebx, edi
mov eax, dword [0x4589a0]
mov edx, dword [ebp - 0x10c]
mov esi, dword [eax + edx*4]
jmp 0x4128c3
mov al, byte [ebx]
cmp al, 1
jb 0x4128b8
sub al, 0x20
jbe 0x412888
sub al, 2
je 0x41289c
jmp 0x4128b8
mov al, byte [ebp - 0x114]
test al, al
je 0x4128c8
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
jmp 0x4128c0
cmp byte [ebx + 1], 0x22
je 0x4128b3
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x4128c0
add ebx, 1
jmp 0x4128c0
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x412878
mov byte [esi], 0
nop
add dword [ebp - 0x10c], 1
cmp byte [ebx], 0
jne 0x4127bb
mov ebx, dword [ebp - 0x10c]
mov dword [0x458990], ebx
lea edx, [ebx + 1]
shl edx, 2
mov eax, 0x4589a0
call fcn.00410000
mov eax, dword [0x4589a0]
mov dword [eax + ebx*4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x420d20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x26c]
push ebx
push esi
mov dword [ebp - 4], eax
mov byte [ebp - 8], dl
mov bl, cl
mov edx, 0x44c6b8
lea eax, [ebp - 0x268]
call fcn.0040de60
xor eax, eax
push fcn.00420d00
push ebp
push 0x4135b0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test eax, eax
jne 0x420d63
mov eax, 0x458a40
push eax
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
jne 0x420dab
call sub.kernel32.dll_GetLastError
cmp eax, 0xa1
jbe 0x420d7f
clc
jmp 0x420d86
bt dword [0x44bd00], eax
jb 0x420d9f
mov eax, ebp
call fcn.00420e50
test al, al
je 0x420d9f
mov byte [ebp - 0x26c], 1
jmp 0x420e30
mov byte [ebp - 0x26c], 0
jmp 0x420e30
mov eax, esi
and eax, 0x10
movzx edx, byte [ebp - 8]
cmp eax, dword [edx*4 + 0x446850]
sete byte [ebp - 0x26c]
mov al, bl
and al, byte [ebp - 0x26c]
je 0x420e30
and esi, 0x400
je 0x420e30
lea ebx, [ebp - 0x268]
mov edx, 0x44c6b8
mov eax, ebx
call fcn.0040df20
mov edx, ebx
mov eax, dword [ebp - 4]
xor cl, cl
call fcn.004209c0
test eax, eax
je 0x420e04
sub eax, 1
je 0x420e1c
jmp 0x420e28
mov dl, byte [ebp - 8]
mov eax, dword [ebp - 0x268]
xor cl, cl
call fcn.00420d20
mov byte [ebp - 0x26c], al
jmp 0x420e30
mov byte [ebp - 0x26c], 1
jmp 0x420e30
mov byte [ebp - 0x26c], 0
nop
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00420d00
mov al, byte [ebp - 0x26c]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x421040
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edx
test eax, eax
jne 0x42104e
mov eax, 0x458a40
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
je 0x42105c
xor ebx, ebx
jmp 0x421063
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x421090
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x34]
push ebx
push esi
push edi
test al, al
jne 0x4210a8
mov byte [ebp - 4], 0x5c
mov byte [ebp - 3], 0
jmp 0x4210bf
and eax, 0xff
add eax, 0x40
mov byte [ebp - 4], al
mov byte [ebp - 3], 0x3a
mov byte [ebp - 2], 0x5c
mov byte [ebp - 1], 0
cmp dword [0x459f80], 0
je 0x4210fb
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
push eax
call dword [0x459f80]
test eax, eax
je 0x4210ed
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x34], eax
mov edi, dword [ebp - 0x1c]
jmp 0x421146
mov dword [ebp - 0x34], 0xffffffff
mov edi, 0xffffffff
jmp 0x421146
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
test eax, eax
je 0x42113a
mov eax, dword [ebp - 8]
mul dword [ebp - 0x14]
mov ebx, eax
mov eax, dword [ebp - 0xc]
xor esi, esi
mov ecx, ebx
imul ecx, esi
imul edx, eax
add ecx, edx
mul ebx
add edx, ecx
mov dword [ebp - 0x34], eax
mov edi, edx
jmp 0x421146
mov dword [ebp - 0x34], 0xffffffff
mov edi, 0xffffffff
mov edx, edi
mov eax, dword [ebp - 0x34]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x421190
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
push ebx
push esi
push edi
mov edi, eax
mov esi, edx
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
xor eax, eax
push fcn.00421180
push ebp
push 0x4135b0
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoW
mov ebx, eax
test ebx, ebx
jle 0x421200
lea edx, [ebx - 1]
lea eax, [ebp - 4]
call fcn.0040b080
cmp ebx, 1
jle 0x4211f0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoW
mov ebx, eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
xor dx, dx
call fcn.0040a950
jmp 0x42120b
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00408780
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.00421180
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x421610
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
push ebx
push esi
mov dword [ebp - 0x10], 0
xor eax, eax
push fcn.00421600
push ebp
push 0x4135b0
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea esi, [esi]
add ebx, 1
lea eax, [ebx*4 + 0x459f1c]
xor edx, edx
call fcn.00408780
mov dword [ebx*4 + 0x459f3c], 0xffffffff
cmp ebx, 7
jl 0x421638
call sub.kernel32.dll_GetThreadLocale
mov esi, eax
push 0xb
lea eax, [ebp - 0xc]
push eax
push 0x100b
push esi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x4216c4
lea esi, [esi]
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
xor cx, cx
mov edx, 0xa
call fcn.00409170
mov eax, dword [ebp - 0x10]
mov edx, 1
call fcn.004182a0
mov ebx, eax
sub eax, 3
cmp eax, 3
jae 0x4216c4
push 4
push ebx
push esi
mov eax, 0x4214e0
push eax
call sub.kernel32.dll_EnumCalendarInfoA
push 3
push ebx
push esi
mov eax, 0x421570
push eax
call sub.kernel32.dll_EnumCalendarInfoA
nop
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00421600
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x421d10
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x1c]
push ebx
push esi
push edi
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
xor edx, edx
push fcn.00421ce0
push ebp
push 0x4135b0
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0xc]
call fcn.00417f20
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 4]
call fcn.00408780
lea eax, [ebp - 4]
mov cl, 1
mov dx, 1
call fcn.00409d10
mov eax, dword [ebp - 0x18]
xor edx, edx
call fcn.00408780
call sub.kernel32.dll_GetEnvironmentStringsA
mov dword [ebp - 0x1c], eax
mov ebx, eax
jmp 0x421e1c
lea ecx, [ebp - 8]
mov eax, ebx
xor dx, dx
call fcn.004090d0
mov eax, dword [ebp - 8]
test eax, eax
je 0x421da7
mov eax, dword [eax - 4]
mov edi, eax
lea eax, [ebp - 8]
xor cl, cl
mov dx, 1
call fcn.00409d10
mov edx, dword [ebp - 8]
mov ecx, 1
mov al, 0x3d
call fcn.004096b0
mov esi, eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [esi - 1]
mov eax, dword [ebp - 8]
mov edx, 1
call fcn.00409550
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.00417f20
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.004092f0
test eax, eax
jne 0x421e14
push dword [ebp - 0x18]
mov eax, dword [ebp - 8]
test eax, eax
je 0x421e03
mov eax, dword [eax - 4]
sub eax, esi
mov ecx, eax
lea edx, [esi + 1]
mov eax, dword [ebp - 8]
call fcn.00409550
jmp 0x421e25
lea eax, [ebx + edi]
add eax, 1
mov ebx, eax
cmp byte [ebx], 0
jne 0x421d90
push dword [ebp - 0x1c]
call sub.kernel32.dll_FreeEnvironmentStringsA
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00421ce0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x421e60
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x94]
mov dword [0x459f80], 0
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
mov eax, dword [ebp - 0x84]
mov dword [0x459de0], eax
mov eax, dword [ebp - 0x90]
mov dword [0x459df0], eax
mov eax, dword [ebp - 0x8c]
mov dword [0x459e00], eax
mov eax, dword [ebp - 0x88]
mov dword [0x459e10], eax
mov edx, 0x459e21
lea eax, [ebp - 0x80]
mov ecx, pe_nt_image_headers32
call fcn.00403810
lea eax, [ebp - 0x80]
call fcn.00404700
mov byte [0x459e20], al
mov eax, str.kernel32
push eax
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x459f90], eax
test eax, eax
je 0x421f00
mov eax, str.GetDiskFreeSpaceExA
push eax
push dword [0x459f90]
call sub.kernel32.dll_GetProcAddress
mov dword [0x459f80], eax
nop
cmp dword [0x459df0], 6
jae 0x421f14
mov dword [0x446110], 0
nop
cmp dword [0x459df0], 6
jb 0x421f30
cmp dword [0x459e00], 1
jb 0x421f30
mov dword [0x446120], 2
mov esp, ebp
pop ebp
ret
Function at 0x423940
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x118]
push ebx
push esi
push edi
mov esi, eax
mov edi, edx
mov dword [ebp - 0x118], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x114], eax
mov al, byte [ebp + 8]
mov byte [ebp - 0x110], al
mov dword [ebp - 0xc], 0
xor eax, eax
push fcn.00423930
push ebp
push 0x4135b0
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp - 0x114]
push dword [ebp - 0x118]
push edi
call sub.kernel32.dll_FindResourceA
mov dword [esi + 0x10], eax
test eax, eax
jne 0x423a50
mov al, byte [ebp - 0x110]
test al, al
je 0x423a19
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.00404cb0
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.00409000
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.00409d10
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xb
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x44cdc0
call fcn.0041fa60
mov edx, 0x4239aa
mov ecx, ebp
call fcn.00413470
jmp 0x423a50
mov eax, dword [ebp - 0x118]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 6
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x44cdc0
call fcn.0041fa60
mov edx, 0x423a19
mov ecx, ebp
call fcn.00413470
push dword [esi + 0x10]
push edi
call sub.kernel32.dll_LoadResource
mov dword [esi + 0x14], eax
test eax, eax
jne 0x423b14
mov al, byte [ebp - 0x110]
test al, al
je 0x423add
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.00404cb0
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.00409000
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.00409d10
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xb
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x44cdc0
call fcn.0041fa60
mov edx, 0x423a6e
mov ecx, ebp
call fcn.00413470
jmp 0x423b14
mov eax, dword [ebp - 0x118]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 6
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x44cdc0
call fcn.0041fa60
mov edx, 0x423add
mov ecx, ebp
call fcn.00413470
push dword [esi + 0x10]
push edi
call sub.kernel32.dll_SizeofResource
mov ebx, eax
push dword [esi + 0x14]
call sub.kernel32.dll_LockResource
mov edx, eax
mov eax, esi
mov ecx, ebx
call fcn.00423300
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00423930
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4311e0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x24]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov byte [ebp - 0xc], cl
push 4
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call sub.kernel32.dll_GetLocaleInfoW
mov dword [ebp - 0x1c], eax
cmp eax, 2
jle 0x43128a
mov eax, dword [ebp - 0x1c]
sub eax, 2
test eax, eax
jl 0x4312a6
mov dword [ebp - 0x20], 0xffffffff
lea esi, [esi]
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
mov dx, word [ebp + edx*2 - 0x18]
mov word [ebp - 0x24], dx
mov edx, dword [ebp - 0x20]
mov dx, word [ebp + edx*2 - 0x18]
cmp dx, 0x20
jb 0x4312a6
sub dx, 0x20
je 0x431280
sub dx, 0x80
je 0x431280
sub dx, 0x1f62
jb 0x4312a6
sub dx, 1
jbe 0x431280
sub dx, 6
je 0x431280
sub dx, 0x26
jne 0x4312a6
nop
jmp 0x431280
cmp eax, dword [ebp - 0x20]
jg 0x431228
lea esi, [esi]
jmp 0x4312a6
cmp dword [ebp - 0x1c], 2
jne 0x43129a
mov ax, word [ebp - 0x18]
mov word [ebp - 0x24], ax
jmp 0x4312a6
mov al, byte [ebp - 0xc]
call fcn.0040adb0
mov word [ebp - 0x24], ax
mov ax, word [ebp - 0x24]
sub ax, 0x7f
jbe 0x431324
sub ax, 0x21
je 0x431338
sub ax, 0x17
je 0x431344
sub ax, 0x222
je 0x431350
sub ax, 0x392
je 0x431358
sub ax, 1
je 0x431360
sub ax, 0x1996
je 0x431368
sub ax, 1
je 0x431370
sub ax, 6
je 0x431378
sub ax, 0xb
je 0x431388
sub ax, 0x1b
je 0x431380
sub ax, 0x367
je 0x431390
jmp 0x431398
mov ax, word [ebp - 0x24]
call fcn.0040ae20
mov byte [ebp - 0x10], al
jmp 0x4313a0
mov byte [ebp - 0x10], 0x20
jmp 0x4313a0
mov byte [ebp - 0x10], 0x2e
jmp 0x4313a0
mov byte [ebp - 0x10], 0x27
jmp 0x4313a0
mov byte [ebp - 0x10], 0x2c
jmp 0x4313a0
mov byte [ebp - 0x10], 0x27
jmp 0x4313a0
mov byte [ebp - 0x10], 0x20
jmp 0x4313a0
mov byte [ebp - 0x10], 0x20
jmp 0x4313a0
mov byte [ebp - 0x10], 0x20
jmp 0x4313a0
mov byte [ebp - 0x10], 0x20
jmp 0x4313a0
mov byte [ebp - 0x10], 0x2d
jmp 0x4313a0
mov byte [ebp - 0x10], 0x27
jmp 0x4313a0
mov al, byte [ebp - 0xc]
mov byte [ebp - 0x10], al
mov esi, esi
mov al, byte [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x404ecb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp byte [ecx + 0x14], 0
jne 0x43e46d
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004260f2
add esp, 0x10
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ecx + 0x10]
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
mov edx, dword [ecx]
push eax
push dword [ebp + 8]
push ecx
call dword [edx + 0xc]
mov eax, dword [ebp - 4]
jmp 0x404ef1
Function at 0x421461
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov al, byte [0x4c7283]
push ebx
push esi
push edi
mov esi, ecx
mov byte [ebp - 1], al
push 0x8000
push esi
mov edi, edx
call fcn.004251f6
pop ecx
push eax
call fcn.00425024
cmp dword [edi + 0xc], 0xb
mov ebx, eax
pop ecx
pop ecx
je 0x4569b7
lea ecx, [ebp - 0x18]
call fcn.00405a78
mov ecx, edi
call fcn.00409851
lea eax, [ebp - 0x18]
push eax
push dword [edi + 8]
call fcn.004059d5
push dword [ebp - 0x18]
push 0x492d40
push esi
call fcn.004253f5
add esp, 0xc
mov dword [ebp - 8], eax
cmp byte [ebp - 1], 0
jne 0x4569d7
lea ecx, [ebp - 0x18]
call fcn.004058c4
mov edi, dword [ebp - 8]
push esi
call fcn.004255ba
pop ecx
cmp ebx, 0xffffffff
je 0x4214ff
push ebx
push esi
call fcn.004251f6
pop ecx
push eax
call fcn.00425024
pop ecx
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x4000
jmp 0x4214e7
push esi
mov ecx, edi
call fcn.00468c9e
push eax
push 1
call fcn.00468c5b
push eax
call fcn.00425373
add esp, 0x10
mov edi, eax
jmp 0x4214da
mov ecx, edi
call fcn.00409851
mov eax, dword [edi + 8]
push dword [eax]
call dword [0x490248]
jmp 0x4214cf
Function at 0x46027c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [ebx]
push 2
pop edx
mov esi, dword [ecx + edi]
lea eax, [ecx + 4]
mov dword [ebx], eax
xor ecx, ecx
mov dword [ebp + 8], esi
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004218c6
mov ecx, dword [ebx]
add esi, esi
add ecx, edi
mov edi, eax
push esi
push ecx
push edi
call fcn.00421950
add dword [ebx], esi
xor eax, eax
mov ecx, dword [ebp + 8]
add esp, 0x10
mov word [esi + edi], ax
test ecx, ecx
jle 0x4602d7
xor word [edi + eax*2], cx
inc eax
cmp eax, ecx
jl 0x4602ce
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x465090
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov eax, ecx
xor esi, esi
mov dword [ebp - 4], eax
mov byte [0x4c72b7], 0
mov ebx, edx
test edi, edi
je 0x4650e2
mov byte [0x4c72b8], 1
call dword [0x490180]
mov dword [ebp - 0xc], eax
xor ecx, ecx
lea eax, [ebp + 0x10]
mov dword [ebp - 8], edi
push eax
push ecx
lea eax, [ebp - 0xc]
push eax
push 0x465572
push ecx
push ecx
call fcn.0042499e
mov esi, eax
add esp, 0x18
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
push eax
call dword [0x4906b8]
mov edi, eax
test esi, esi
je 0x46510d
push 0xffffffffffffffff
push esi
mov byte [0x4c72b8], 0
call dword [0x49016c]
push esi
call dword [0x49035c]
cmp byte [0x4c72b7], 1
jne 0x46511b
or eax, 0xffffffff
jmp 0x46511d
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x468ce8
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
dec dword [0x4c5190]
jne 0x468cf5
call fcn.00468dcf
mov eax, dword [0x4c8ef0]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4c8ef0], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
shr eax, 1
ret

Function at 0x468d2d
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
dec dword [0x4c5190]
jne 0x468d3f
call fcn.00468dcf
mov eax, dword [0x4c8ef0]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4c8ef0], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
mov dword [ebp - 4], eax
fild dword [ebp - 4]
jns 0x468d82
fadd qword [0x4bcad8]
fstp qword [ebp - 8]
fld qword [ebp - 8]
fmul qword [0x4bcab0]
mov esp, ebp
pop ebp
ret

Function at 0x468d92
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
xor esi, esi
mov dword [0x4c8530], ecx
inc esi
mov ecx, 0x4c8530
mov edx, esi
mov eax, dword [ecx]
shr eax, 0x1e
xor eax, dword [ecx]
imul eax, eax, 0x6c078965
add eax, edx
inc edx
mov dword [ecx + 4], eax
add ecx, 4
cmp ecx, 0x4c8eec
jl 0x468da3
mov dword [0x4c5190], esi
mov dword [0x4c8518], esi
pop esi
ret