joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5860fc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x60e890]
mov ecx, dword [ebp + 0xc]
push ebx
xor ebx, ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
xor esi, esi
cmp eax, ebx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x10], ebx
mov word [ebp - 0xc], 0x72
mov word [ebp - 0xa], 0x62
mov word [ebp - 8], bx
je 0x586251
cmp ecx, ebx
je 0x586251
lea ecx, [ebp - 0xc]
push ecx
push eax
call sub.msvcrt.dll__wfopen
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0x2c], eax
je 0x586251
push edi
push eax
push 6
lea eax, [ebp - 0x28]
push 4
push eax
call sub.msvcrt.dll_fread
add esp, 0x10
cmp eax, 6
jne 0x586233
cmp dword [ebp - 0x28], ebx
je 0x586233
cmp dword [ebp - 0x24], ebx
je 0x586233
cmp dword [ebp - 0x20], ebx
je 0x586233
cmp dword [ebp - 0x14], ebx
je 0x5861a0
mov eax, dword [ebp - 0x1c]
imul eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x28]
jne 0x586233
push 0x2c
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
je 0x5861b7
mov ecx, eax
call fcn.00585ea3
mov esi, eax
jmp 0x5861b9
xor esi, esi
cmp esi, ebx
jne 0x5861c4
mov edi, 0x8007000e
jmp 0x586238
cmp dword [ebp - 0x14], ebx
push dword [ebp - 0x20]
mov ecx, esi
push dword [ebp - 0x24]
je 0x5861de
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.0047d6bd
jmp 0x5861e6
push dword [ebp - 0x28]
call fcn.0047d6bd
mov edi, eax
cmp edi, ebx
mov eax, dword [esi]
jge 0x5861f7
push 1
mov ecx, esi
call dword [eax + 0x4c]
jmp 0x586238
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp - 0x28]
push ebx
push esi
call dword [eax + 0x28]
mov edi, eax
cmp edi, ebx
jl 0x586238
mov eax, dword [ebp - 0x20]
imul eax, dword [ebp - 0x24]
push dword [ebp - 0x2c]
shl eax, 2
push dword [ebp - 0x28]
push eax
push dword [ebp - 0x10]
call sub.msvcrt.dll_fread
add esp, 0x10
cmp dword [ebp - 0x28], eax
jne 0x586233
mov eax, dword [ebp - 0x30]
mov dword [eax], esi
xor edi, edi
jmp 0x586238
mov edi, 0x8876086c
cmp dword [ebp - 0x10], ebx
je 0x586243
mov eax, dword [esi]
push esi
call dword [eax + 0x2c]
push dword [ebp - 0x2c]
call sub.msvcrt.dll_fclose
pop ecx
mov eax, edi
pop edi
jmp 0x586256
mov eax, 0x8876086c
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.005f059d
leave
ret 8
Function at 0x586f09
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
xor esi, esi
cmp dword [ebp + 8], esi
mov dword [ebp - 8], esi
je 0x58707b
cmp dword [ebp + 0xc], esi
je 0x58707b
push 0x4213b0
push dword [ebp + 8]
call sub.msvcrt.dll_fopen
cmp eax, esi
pop ecx
pop ecx
mov dword [ebp + 8], eax
je 0x58707b
push ebx
push eax
push 8
lea eax, [ebp - 0x2c]
push 4
push eax
call sub.msvcrt.dll_fread
add esp, 0x10
cmp eax, 8
je 0x586f64
mov ebx, 0x8876086c
jmp 0x58706d
cmp dword [ebp - 0x2c], esi
push edi
je 0x587059
cmp dword [ebp - 0x28], esi
je 0x587059
cmp dword [ebp - 0x24], esi
je 0x587059
cmp dword [ebp - 0x18], esi
je 0x586f95
mov eax, dword [ebp - 0x20]
imul eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x2c]
jne 0x587059
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
push 0x38
mov dword [ebp - 4], eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
je 0x586fb3
mov ecx, eax
call fcn.00586e58
mov esi, eax
test esi, esi
mov dword [ebp - 8], esi
jne 0x586fc4
mov ebx, 0x8007000e
jmp 0x58705e
push dword [ebp - 0x18]
mov ecx, esi
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.0047d6bd
mov ebx, eax
test ebx, ebx
jl 0x58705e
mov ecx, dword [esi + 0x20]
push dword [ebp + 8]
mov eax, dword [esi + 0x18]
push dword [ebp - 4]
mov dword [ebp - 0xc], ecx
mov ebx, dword [esi + 0x1c]
lea ecx, [edi + 1]
imul ecx, dword [ebp - 0x24]
imul ecx, dword [ebp - 0x28]
shl ecx, 2
push ecx
push eax
call sub.msvcrt.dll_fread
add esp, 0x10
cmp dword [ebp - 4], eax
jne 0x587059
push dword [ebp + 8]
mov eax, edi
push dword [ebp - 0x2c]
shl eax, 2
push eax
push ebx
call sub.msvcrt.dll_fread
add esp, 0x10
cmp dword [ebp - 0x2c], eax
jne 0x587059
cmp dword [ebp - 4], 1
je 0x587050
push dword [ebp + 8]
push dword [ebp - 0x2c]
push 4
push dword [ebp - 0xc]
call sub.msvcrt.dll_fread
add esp, 0x10
cmp dword [ebp - 0x2c], eax
jne 0x587059
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
xor ebx, ebx
jmp 0x58706c
mov ebx, 0x8876086c
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x58706c
mov eax, dword [ecx]
push 1
call dword [eax + 0x44]
pop edi
push dword [ebp + 8]
call sub.msvcrt.dll_fclose
pop ecx
mov eax, ebx
pop ebx
jmp 0x587080
mov eax, 0x8876086c
pop esi
leave
ret 8
Function at 0x58708a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x60e890]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
xor esi, esi
cmp eax, esi
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x18], esi
mov word [ebp - 0xc], 0x72
mov word [ebp - 0xa], 0x62
mov word [ebp - 8], si
je 0x587218
cmp ecx, esi
je 0x587218
lea ecx, [ebp - 0xc]
push ecx
push eax
call sub.msvcrt.dll__wfopen
cmp eax, esi
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
je 0x587218
push ebx
push eax
push 8
lea eax, [ebp - 0x38]
push 4
push eax
call sub.msvcrt.dll_fread
add esp, 0x10
cmp eax, 8
je 0x587101
mov ebx, 0x8876086c
jmp 0x58720a
cmp dword [ebp - 0x38], esi
push edi
je 0x5871f6
cmp dword [ebp - 0x34], esi
je 0x5871f6
cmp dword [ebp - 0x30], esi
je 0x5871f6
cmp dword [ebp - 0x24], esi
je 0x587132
mov eax, dword [ebp - 0x2c]
imul eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x38]
jne 0x5871f6
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0x1c]
push 0x38
mov dword [ebp - 0x14], eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
je 0x587150
mov ecx, eax
call fcn.00586e58
mov esi, eax
test esi, esi
mov dword [ebp - 0x18], esi
jne 0x587161
mov ebx, 0x8007000e
jmp 0x5871fb
push dword [ebp - 0x24]
mov ecx, esi
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call fcn.0047d6bd
mov ebx, eax
test ebx, ebx
jl 0x5871fb
mov ecx, dword [esi + 0x20]
push dword [ebp - 0x10]
mov eax, dword [esi + 0x18]
push dword [ebp - 0x14]
mov dword [ebp - 0x3c], ecx
mov ebx, dword [esi + 0x1c]
lea ecx, [edi + 1]
imul ecx, dword [ebp - 0x30]
imul ecx, dword [ebp - 0x34]
shl ecx, 2
push ecx
push eax
call sub.msvcrt.dll_fread
add esp, 0x10
cmp dword [ebp - 0x14], eax
jne 0x5871f6
push dword [ebp - 0x10]
mov eax, edi
push dword [ebp - 0x38]
shl eax, 2
push eax
push ebx
call sub.msvcrt.dll_fread
add esp, 0x10
cmp dword [ebp - 0x38], eax
jne 0x5871f6
cmp dword [ebp - 0x14], 1
je 0x5871ed
push dword [ebp - 0x10]
push dword [ebp - 0x38]
push 4
push dword [ebp - 0x3c]
call sub.msvcrt.dll_fread
add esp, 0x10
cmp dword [ebp - 0x38], eax
jne 0x5871f6
mov eax, dword [ebp - 0x40]
mov dword [eax], esi
xor ebx, ebx
jmp 0x587209
mov ebx, 0x8876086c
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x587209
mov eax, dword [ecx]
push 1
call dword [eax + 0x44]
pop edi
push dword [ebp - 0x10]
call sub.msvcrt.dll_fclose
pop ecx
mov eax, ebx
pop ebx
jmp 0x58721d
mov eax, 0x8876086c
mov ecx, dword [ebp - 4]
pop esi
call fcn.005f059d
leave
ret 8
Function at 0x588a3a
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x5f104d
call fcn.005f0098
push ecx
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
lea ecx, [esi + 0x10]
mov dword [ebp - 0x10], esi
mov dword [esi], 0x421410
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
call fcn.0058888d
fld1
xor ebx, ebx
fstp dword [esi + 0x20]
inc ebx
lea ecx, [esi + 0x74]
mov dword [ebp - 4], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], 0x3ba3d70a
mov dword [esi + 0x6c], edi
call fcn.00594c3e
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x4c], ebx
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x594c3e
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x5f12fe
call fcn.005f0098
push ecx
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi], ebx
lea ecx, [esi + 0x10]
mov dword [ebp - 4], ebx
call fcn.00582532
lea ecx, [esi + 0x20]
mov byte [ebp - 4], 1
call fcn.00582532
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call fcn.00582532
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 3
call fcn.0059302e
lea ecx, [esi + 0x50]
mov byte [ebp - 4], 4
call fcn.0059317e
lea ecx, [esi + 0x60]
mov byte [ebp - 4], 5
call fcn.0059317e
lea ecx, [esi + 0x70]
mov byte [ebp - 4], 6
call fcn.00594bed
or dword [esi + 0x90], 0xffffffff
or dword [esi + 0x94], 0xffffffff
or dword [esi + 0x98], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x9c], ebx
mov dword [esi + 0xa0], ebx
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xa8], ebx
mov byte [esi + 0xac], bl
mov byte [esi + 0xad], bl
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x5b2d83
Capabilities:
Delete file

Disassembly:
mov edi, edi
push esi
push edi
mov edi, dword [sym.imp.kernel32.dll_CloseHandle]
mov esi, ecx
push dword [esi + 0x30]
mov dword [esi], 0x422d88
call edi
push dword [esi + 0x34]
call edi
mov eax, dword [esi + 0x38]
cmp eax, 0xffffffff
je 0x5b2daa
push eax
call edi
mov al, byte [esi + 0x48]
test al, 0x40
je 0x5b2dc0
test al, al
js 0x5b2dcd
push dword [esi + 0xc]
call dword [sym.imp.kernel32.dll_DeleteFileW]
jmp 0x5b2dcd
test al, al
js 0x5b2dcd
push dword [esi + 0xc]
call dword [sym.imp.kernel32.dll_DeleteFileA]
push dword [esi + 0xc]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [esi + 8]
pop ecx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esi + 0x20]
call fcn.005b12b5
pop edi
lea ecx, [esi + 0x10]
pop esi
jmp fcn.005b08be
Function at 0x5b3378
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, ecx
push edi
mov dword [esi], 0x422cec
call fcn.0047d6bd
lea ebx, [esi + 0x30]
mov ecx, ebx
call fcn.0047d6bd
push dword [esi + 0x3c]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov edi, dword [esi + 0x48]
test edi, edi
je 0x5b33b4
push dword [edi + 0xc]
call sub.msvcrt.dll_free
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
mov edi, dword [esi + 0x4c]
test edi, edi
je 0x5b33cb
push dword [edi + 0xc]
call sub.msvcrt.dll_free
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
mov eax, dword [esi + 0x50]
xor edi, edi
cmp eax, edi
je 0x5b3415
cmp dword [eax], edi
jbe 0x5b33fe
mov eax, dword [esi + 0x50]
mov eax, dword [eax + 0xc]
push dword [eax + edi*4]
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov eax, dword [esi + 0x50]
mov eax, dword [eax + 0xc]
push dword [eax + edi*4]
call sub.msvcrt.dll_free
mov eax, dword [esi + 0x50]
inc edi
cmp edi, dword [eax]
pop ecx
jb 0x5b33d8
mov edi, dword [esi + 0x50]
test edi, edi
je 0x5b3415
push dword [edi + 0xc]
call sub.msvcrt.dll_free
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
mov edi, dword [esi + 0x54]
test edi, edi
je 0x5b342c
push dword [edi + 0xc]
call sub.msvcrt.dll_free
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
cmp byte [esi + 0x5c], 0
je 0x5b3442
cmp dword [esi + 0x44], 1
jne 0x5b3450
push dword [esi + 0x2c]
call fcn.0047d6bd
jmp 0x5b3450
cmp dword [esi + 0x44], 1
jne 0x5b3450
push dword [esi + 0x2c]
call fcn.0047d6bd
push dword [esi + 0x2c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [esi + 8]
pop ecx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, ebx
call fcn.005b3f5f
lea ecx, [esi + 0x1c]
call fcn.005b1275
pop edi
lea ecx, [esi + 0xc]
pop esi
pop ebx
jmp fcn.005b08be

Function at 0x5bc800
Capabilities:
Check for software breakpoints

Disassembly:
cmp dword [esi + 0x14], 0xcc
je 0x5bc823
mov eax, dword [esi + 0x1a8]
push esi
call dword [eax]
mov dword [esi + 0x8c], 0
mov dword [esi + 0x14], 0xcc
mov ecx, dword [esi + 0x1a8]
mov eax, dword [ecx + 8]
test eax, eax
je 0x5bc849
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x30
call dword [eax]
mov edx, dword [esi + 0x1a8]
mov eax, dword [edx + 8]
test eax, eax
jne 0x5bc830
mov edx, dword [esi + 0x44]
xor eax, eax
test edx, edx
setne al
add eax, 0xcd
mov dword [esi + 0x14], eax
mov eax, 1
ret
Function at 0x405a03
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x405a12
pop dword [ebp - 0x20]
mov eax, 0x405a12
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x952b7bdd
sub dword [ebp - 0x30], 0x46d93692
mov dword [ebp - 0x2c], 0xf858d5ef
add dword [ebp - 0x2c], 0x39da7656
mov dword [ebp - 0x28], 0x9ac3c009
sub dword [ebp - 0x28], 0x4e777bdb
mov dword [ebp - 0x24], 0xeb5e6128
sub dword [ebp - 0x24], 0xeb5e6128
lea eax, [ebp - 0x30]
push eax
mov eax, 0xf8b5d23c
sub eax, 0xf8755138
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0xf6abe58b
add dword [ebp - 0x30], 0x7dc683cb
mov dword [ebp - 0x2c], 0x754752c3
add dword [ebp - 0x2c], 0xcc250eb2
mov dword [ebp - 0x28], 0x5cac8a6b
sub dword [ebp - 0x28], 0xf93d1dff
mov dword [ebp - 0x24], 0x941fb266
add dword [ebp - 0x24], 0x6be04d9a
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, 0xbd8d1907
sub eax, 0xbd4c9807
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x349a4
push 0
call eax
mov ecx, 0x4b2cc2a4
add ecx, 0xb4d37bd9
mov edi, eax
mov ebx, 0x46e400
add ebx, dword [ebp - 0x20]
mov edx, 0xa4f37369
sub dword [ebp - 8], ecx
mov esi, dword [ebx]
xor dword [ebp - 0x10], ebx
sub esi, edx
add dword [ebp - 0xc], esi
mov dword [edi], esi
sub dword [ebp - 0x14], edi
add edi, 0xf7abc78e
sub edi, 0xf7abc78a
add ebx, 0xbe3b076f
add ebx, 0x41c4f895
loop 0x405b23
add eax, 0xecc7
mov ebx, eax
add eax, 0xc18bd7f0
add eax, 0x3e742815
mov ecx, 0x1f03da41
add ecx, 0xe13c25bf
add ecx, dword [ebp - 0x20]
call ebx
leave
ret

Function at 0x405cce
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x425f30
push esi
call fcn.00406212
push esi
call fcn.00405c71
mov edi, eax
test edi, edi
jne 0x405cef
xor eax, eax
jmp 0x405d47
push edi
call fcn.004064a6
test byte [0x42a258], 0x80
je 0x405d0c
mov ax, word [edi]
test ax, ax
je 0x405ceb
cmp ax, 0x5c
je 0x405ceb
sub edi, esi
sar edi, 1
jmp 0x405d26
call fcn.00406555
test eax, eax
je 0x405d20
test byte [eax], 0x10
je 0x405ceb
push esi
call fcn.00405c12
push esi
call sub.kernel32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405d12
call fcn.00405bc6
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405dc2
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405de1
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405de7
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.kernel32.dll_CreateFileW]
ret 0xc
Function at 0x4068db
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4068ff
xor eax, eax
test eax, eax
je 0x406912
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406912
xor ecx, ecx
jmp 0x406915
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406a38
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43110c], 0
push esi
jne 0x406a6f
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406a49
mov dword [ecx*4 + 0x431108], eax
inc ecx
cmp ecx, 0x100
jl 0x406a44
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406aa0
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x431108]
xor eax, esi
inc ecx
dec edx
jne 0x406a82
pop edi
not eax
pop esi
ret 0xc

Function at 0x405630
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
adc dword [0x698e0c11], ecx
xor bl, al
sub esi, dword [edi]
pop es
adc dword [esi + ecx*4], ecx
imul esi, dword [edx], 0x7372bd8
jb 0x405632
push es
add byte [eax + 0x6f], dh
jo 0x4056b0
xor al, byte [eax]
add byte [edx], cl
sub al, 0x28
pop es
jb 0x40563f
push es
add byte [eax + 0x6f], dh
add byte cs:[eax], al
or bl, byte [eax]
outsd dx, dword [esi]
xor eax, dword [eax]
add byte [edx], cl
adc ecx, dword [ecx]
add bh, byte [ebx + 0xa]
add byte [eax], al
add al, 0x11
or dword [esi], edx
lcall 0x346f, 0x9a170911
add byte [eax], al
or ch, byte [ebx]
add dl, byte [esi]
sub al, byte [esi]
pop ss
pop eax
or al, byte [esi]
add ecx, dword [esi - 0x29ac097]
invalid
add byte [eax + 0x28], dh
sbb byte [eax], al
add byte [edx], cl
jge 0x4056c6
add byte [eax], al
add al, 2
jnp 0x4056cc
add byte [eax], al
add al, 0x28
xor eax, 0x2d0a0000
or al, 2
jnp 0x4056d9
or ch, byte [0xd7b020c]
add byte [eax], al
add al, 0x28
add byte ss:[eax], al
or ah, byte [esi]
add bh, byte [ebx + 6]
add byte [eax], al
add al, 0x28
add byte [eax + ebp], al
and al, byte [eax]
add byte [edx], cl
sub eax, 0x77b0229
add byte [eax], al
add al, 0x6f
aaa
add byte [eax], al
or bl, byte [edi]
rdmsr
sbb al, byte [edx]
jnp 0x4056fd
add byte [eax], al
add al, 0x6f
cmp byte [eax], al
add byte [edx], cl
sub al, 0xd
add bh, byte [ebx + 8]
add byte [eax], al
add al, 0x6f
or eax, 0x87b02
add byte [edi + ebp*2], al
cmp byte [eax], al
add byte [edx], cl
sub eax, 0x22a1602
jnp 0x405719
add byte [eax], al
add al, 0x72
sysret
cmp dword [eax], eax
add byte [edx], cl
sub eax, 0x97b0211
add byte [eax], al
add al, 0x72
sysret
Function at 0x10001527
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x3d8]
sub esp, 0x458
mov eax, dword [0x10047578]
xor eax, ebp
mov dword [ebp + 0x3d4], eax
mov eax, dword [ebp + 0x3e4]
push ebx
push esi
mov esi, dword [ebp + 0x3e0]
push edi
push esi
mov dword [ebp - 0x78], eax
call dword [sym.imp.GDI32.dll_SaveDC]
push 2
push esi
mov dword [ebp - 0x74], eax
call dword [sym.imp.GDI32.dll_SetGraphicsMode]
push 1
xor ebx, ebx
push ebx
push esi
call dword [sym.imp.GDI32.dll_ModifyWorldTransform]
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.GDI32.dll_SetViewportOrgEx]
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.GDI32.dll_SetWindowOrgEx]
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x58
push esi
call edi
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
push 0x5a
push esi
fstp dword [ebp - 0x70]
call edi
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
fstp dword [ebp - 0x6c]
fld dword [ebp - 0x70]
fmul qword [0x10038a48]
fld qword [0x10038a40]
fdiv st(1), st(0)
fxch st(1)
call fcn.1001d980
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x3e8]
imul eax, eax, 0xa
mov dword [ebp - 0x70], eax
fild dword [ebp - 0x70]
fmul dword [ebp - 0x6c]
fdivrp st(1)
call fcn.1001d980
mov dword [ebp - 0x7c], eax
push 1
lea eax, [ebp - 0x80]
push eax
push esi
call dword [sym.imp.GDI32.dll_DPtoLP]
fild dword [ebp - 0x7c]
fabs
fdiv qword [0x10038a38]
fadd qword [0x10038a30]
call fcn.1001d980
neg eax
cmp dword [ebp + 0x3ec], ebx
mov dword [ebp - 0x68], eax
setne al
mov byte [ebp - 0x53], al
mov eax, dword [ebp + 0x3f0]
neg eax
sbb eax, eax
and eax, 0x2bc
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov byte [ebp - 0x54], bl
mov dword [ebp - 0x52], ebx
mov word [ebp - 0x4e], bx
mov dword [ebp - 0x58], eax
push 0x400
lea eax, [ebp - 0x2c]
push eax
push 0x1002
push 0x800
call dword [sym.imp.kernel32.dll_GetLocaleInfoA]
push 5
lea eax, [ebp - 0x2c]
push 0x100389dc
push eax
call fcn.10029501
add esp, 0xc
test eax, eax
lea eax, [ebp - 0x4c]
je 0x10001671
push dword [ebp - 0x78]
jmp 0x10001676
push 0x100389e4
push 0x20
push eax
call fcn.10029501
add esp, 0xc
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push dword [ebp - 0x74]
mov edi, eax
push esi
call dword [sym.imp.GDI32.dll_RestoreDC]
mov ecx, dword [ebp + 0x3d4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001d742
add ebp, 0x3d8
leave
ret 0x14