joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5b6900
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x61f418
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x5b6939
inc eax
mov dword [esi + 0x10], eax
jmp 0x5b6a4c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x5b694d
mov eax, 0xffffffc7
jmp 0x5b6a4e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x5b695e
cmp dword [esi + 8], eax
jne 0x5b694d
cmp dword [esi + 8], eax
jne 0x5b6977
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x5b6977
mov eax, 0xffffffc7
jmp 0x5b6a4e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x5b698b
push eax
mov ecx, ebx
call fcn.005b6130
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.0058b770
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x5b69bc
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.0058b790
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.005b58a0
test eax, eax
mov dword [esp + 0x38], eax
je 0x5b69ef
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x659a78
call fcn.0058b970
mov eax, dword [esp + 0x38]
jmp 0x5b6a4e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.005b6760
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x5b6a33
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.005b6780
mov esi, eax
test esi, esi
jne 0x5b6a63
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.005b6760
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x5b6a05
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x659a78
call fcn.0058b970
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x659a78
call fcn.0058b970
mov eax, esi
jmp 0x5b6a4e

Function at 0x5bb410
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x5bb470
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x5bb470
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x5bb470
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x5bb470
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x5bb4b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x5c6fa0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x61fd08
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.006188ba
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.005c6900
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.006187e8
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.006150d4
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.006150d4
push 1
push 0
push 0
mov ecx, esi
call fcn.0061507c
push 1
push 0
push 1
mov ecx, esi
call fcn.0061507c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0061892c
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x5c7120
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x61fd28
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.006188ba
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.005c6900
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.006187e8
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 0x5c71e4
cmp dword [esp + 0x40], 1
jne 0x5c71e2
cmp ecx, eax
jge 0x5c71e4
mov eax, ecx
cmp eax, 0xc8
jge 0x5c71f0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.005c6fa0
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.0061892c
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x5c79f0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x61fdd3
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.0061350f
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_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.00618b62
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0061a07e
test eax, eax
je 0x5c7b0c
mov ecx, dword [esp + 0x3c]
call fcn.00618b8f
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 0x5c7ad0
push edi
mov ecx, esi
call fcn.006161ed
mov ecx, esi
call fcn.005c7cb0
cmp dword [esp + 0x38], 1
jne 0x5c7b05
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.00616328
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 0x5c9d20
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x5c9d53
push esi
call fcn.005d7fa0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x5c9d4c
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 0x5c9dd9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x5c9dc2
mov eax, dword [esi + 8]
test eax, eax
je 0x5c9d77
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 0x5c9dbe
cmp eax, 2
je 0x5c9dc2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x5c9d6a
cmp eax, 3
je 0x5c9d9d
cmp eax, 1
jne 0x5c9d6a
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 0x5c9d6a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x5c9d6a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.005c9e00
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x5c9de8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.005c9e00
add esp, 4
pop esi
ret

Function at 0x5ca670
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x5ca691
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x5ca691
mov eax, dword [eax + 0x44]
test eax, eax
je 0x5ca691
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x5e9310
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
sub esp, 0x348
push ebx
push esi
push edi
mov edi, ecx
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov esi, eax
lea eax, [esp + 0xc]
push 7
and esi, 0xffff
push eax
push 0x1004
push esi
call ebx
lea ecx, [esp + 0xc]
push ecx
call fcn.005feb88
add esp, 4
lea edx, [esp + 0x14c]
mov dword [edi + 4], eax
push 0x104
push edx
push 0x1002
push esi
call ebx
lea eax, [esp + 0x14c]
lea ecx, [edi + 0xc]
push eax
call fcn.00612073
lea ecx, [esp + 0xc]
push 7
push ecx
push 5
push esi
call ebx
lea edx, [esp + 0xc]
push edx
call fcn.005feb88
add esp, 4
mov dword [edi + 0x10], eax
lea eax, [esp + 0x3c]
push 0x64
push eax
push 0x1003
push esi
call ebx
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [edi + 0x14]
call fcn.00612073
lea edx, [esp + 0x3c]
push 0x64
push edx
push 0x20
push esi
call ebx
lea eax, [esp + 0x3c]
lea ecx, [edi + 8]
push eax
call fcn.00612073
lea ecx, [esp + 0x14]
push 7
push ecx
push 0x14
push esi
call ebx
lea edx, [esp + 0x14]
lea ecx, [edi + 0x18]
push edx
call fcn.00612073
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
lea ecx, [esp + 0x250]
push 0x104
and eax, 0xffff
push ecx
push eax
call sub.VERSION.dll_VerLanguageNameA
cmp eax, 0x104
ja 0x5e9414
lea edx, [esp + 0x250]
lea ecx, [edi + 0x1c]
push edx
call fcn.00612073
lea eax, [esp + 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
cmp eax, 0xffffffff
je 0x5e944f
lea ecx, [esp + 0xa4]
lea edx, [esp + 0x1c]
push ecx
push 0x741a70
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x1c]
lea ecx, [edi + 0x20]
push eax
call fcn.00612073
pop edi
pop esi
pop ebx
add esp, 0x348
ret
Function at 0x5eb600
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x5eb649
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x5ebac0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x620730
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.005eb670
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.005eb6f0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.005eb6f0
lea ecx, [esi + 0xc]
call fcn.00611ec1
lea ecx, [esi + 0x10]
call fcn.00611ec1
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.005ecc80
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.005ecc80
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.005ecc80
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00611f36
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00611f36
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x5ece70
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x5eced6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x5eced6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x5eceb7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x5edea0
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x741ebc]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x5edeb3
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x5edef4
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x741f64]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x5edf26
mov bl, byte [esp + ecx + 0x4c]
jmp 0x5edf2a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x5edf1b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x5edf48
mov bl, byte [esp + ecx + 0x4c]
jmp 0x5edf4c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x5edf3d
xor ecx, ecx
mov eax, 0x741ecc
xor ebx, ebx
mov bl, byte [ecx + 0x741f74]
cmp byte [esp + ebx + 0x14], 0
je 0x5edf77
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x741f8c]
cmp byte [esp + ebx + 0x14], 0
je 0x5edf8e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x5edf5e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x5edee7
lea edx, [esp + 0x84]
push edx
call fcn.005edfd0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x6142ea
Capabilities:
Get graphical window text

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

Function at 0x6159d8
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 0x615a1a
call fcn.0061b41d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x615a1a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x615a11
xor eax, eax
jmp 0x615a22
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00615a28
pop edi
pop esi
pop ebx
ret 4

Function at 0x61b94d
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 0x61b97b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x61b999
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0061b8b3
jmp 0x61b999
mov eax, dword [esi + 0x14]
test eax, eax
je 0x61b999
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0061b8b3
test edi, edi
mov eax, edi
jne 0x61b983
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4010e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40111f
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push str.CreateFileA___d_r_n
call fcn.00401ce3
add esp, 8
call esi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [edi]
mov eax, dword [ebp + 8]
push 0
lea ecx, [ebp - 4]
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401154
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push str.ReadFile___d_r_n
call fcn.00401ce3
add esp, 8
call esi
pop esi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x40117c
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push str.CloseHandle___d_r_n
call fcn.00401ce3
add esp, 8
call esi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov dword [edi], ecx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401190
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4011cf
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push str.CreateFileA___d_r_n
call fcn.00401ce3
add esp, 8
call esi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [edi]
mov eax, dword [ebp + 8]
push 0
lea ecx, [ebp - 4]
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x401204
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push str.WriteFile___d_r_n
call fcn.00401ce3
add esp, 8
call esi
pop esi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x40122c
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push str.CloseHandle___d_r_n
call fcn.00401ce3
add esp, 8
call esi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov dword [edi], ecx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4014a0
Capabilities:
Compress data via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
push ebx
push esi
push edi
push 0x100000
call fcn.00401def
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], eax
push eax
lea edi, [ebp - 0xc]
mov eax, ebx
mov dword [ebp - 0xc], 0x100000
call fcn.004010e0
mov esi, eax
add esp, 8
test esi, esi
je 0x4014ef
push esi
push ebx
push str.LoadFile__s__d_r_n
call fcn.00401ce3
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.RtlCompressBuffer
push esi
call edi
push str.RtlDecompressBuffer
push esi
mov dword [ebp - 8], eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x1000
push 0x10000
push 0
mov dword [ebp - 0x18], eax
call esi
mov edi, dword [ebp - 0xc]
push 4
mov dword [ebp - 0x10], eax
push 0x1000
lea eax, [edi + 0x10]
push eax
push 0
call esi
mov ecx, dword [ebp - 0x10]
push ecx
lea edx, [ebp - 0x14]
push edx
push 0
mov esi, eax
mov eax, dword [ebp - 4]
push edi
lea ebx, [esi + 0x10]
push ebx
push edi
push eax
push 2
call dword [ebp - 8]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x1c]
push ecx
push edx
push ebx
push edi
push eax
push 2
call dword [ebp - 0x18]
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x24]
mov dword [esi + 8], edi
mov dword [esi], eax
mov dword [esi + 4], eax
mov edx, dword [ebp - 0x14]
mov dword [esi + 0xc], edx
mov ebx, dword [ebp - 0x14]
add ebx, 0x10
xor edi, edi
mov dword [ebp - 0xc], ebx
mov ecx, eax
mov edx, eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
test ebx, ebx
jle 0x4015fa
jmp 0x4015aa
mov edx, dword [ebp - 0x10]
mov ebx, ecx
shr ebx, 3
lea ecx, [ecx + ebx - 0x11111111]
mov ebx, edx
shr ebx, 5
lea edx, [edx + ebx - 0x22222222]
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 8]
shl edx, 7
mov ebx, 0x33333333
sub ebx, edx
add dword [ebp - 8], ebx
mov edx, dword [ebp - 4]
shl edx, 9
mov ebx, 0x44444444
sub ebx, edx
add dword [ebp - 4], ebx
mov dl, cl
add dl, byte [ebp - 0x10]
inc edi
add dl, byte [ebp - 8]
add dl, byte [ebp - 4]
xor byte [edi + esi - 1], dl
cmp edi, dword [ebp - 0xc]
jl 0x4015a7
mov dword [esi], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x424]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str..plg
lea edx, [ebp - 0x424]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
lea edi, [ebp - 0xc]
lea eax, [ebp - 0x424]
call fcn.00401190
add esp, 4
test eax, eax
je 0x401653
push eax
lea eax, [ebp - 0x424]
push eax
push str.SaveFile__s__d_r_n
call fcn.00401ce3
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
push ecx
push str.make__d_bytes_ok____r_n
call fcn.00401ce3
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401670
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00408fb0
push ebx
push esi
push edi
push 4
push 0x1000
push 0x100000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, dword [ebp + 8]
mov ebx, eax
push ebx
lea edi, [ebp - 4]
mov eax, esi
mov dword [ebp - 4], 0x100000
call fcn.004010e0
mov edi, eax
add esp, 4
test edi, edi
je 0x4016cc
push edi
push esi
push str.LoadFile__s__d_r_n
call fcn.00401ce3
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 4]
xor esi, esi
mov eax, 0x3f
test edi, edi
jle 0x40170b
lea ebx, [ebx]
mov ecx, eax
shl ecx, 7
mov edx, 0xffffffe9
sub edx, ecx
add eax, edx
mov ecx, eax
shr ecx, 0x18
mov edx, eax
shr edx, 0x10
add cl, dl
mov edx, eax
shr edx, 8
add cl, dl
add cl, al
xor byte [esi + ebx], cl
inc esi
cmp esi, edi
jl 0x4016e0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x1004]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str..xor
lea edx, [ebp - 0x1004]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
lea edi, [ebp - 4]
lea eax, [ebp - 0x1004]
call fcn.00401190
mov esi, eax
add esp, 4
test esi, esi
je 0x401764
push esi
lea eax, [ebp - 0x1004]
push eax
push str.SaveFile__s__d_r_n
call fcn.00401ce3
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
push ecx
push str.make__d_bytes_ok____r_n
call fcn.00401ce3
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405da8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40e440]
jne 0x405db2
repz ret
jmp fcn.00407f4f