joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401540
Capabilities:
Create thread

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x432e48
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateEventA]
push esi
xor ebx, ebx
push edi
mov edi, dword [esp + 0x54]
push ebx
mov esi, ecx
push ebx
push 1
push ebx
mov dword [esi + 0xc], ebx
mov word [esi + 0x3c], di
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
call ebp
cmp eax, ebx
mov dword [esi + 0x20], eax
je 0x40170c
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
call ebp
cmp eax, ebx
mov dword [esi + 0x34], eax
je 0x40170c
mov eax, dword [0x48014c]
mov dword [esp + 0x54], eax
cmp di, 0xa
mov dword [esp + 0x4c], ebx
jae 0x4015c7
and edi, 0xffff
lea ecx, [esp + 0x54]
push edi
push str.COM_d
push ecx
jmp 0x4015d8
and edi, 0xffff
lea edx, [esp + 0x54]
push edi
push str..COM_d
push edx
call fcn.00424f86
add esp, 0xc
lea edi, [esi + 8]
lea eax, [esp + 0x54]
mov ecx, edi
push eax
call fcn.00427546
mov edi, dword [edi]
push ebx
push 0x40000080
push 3
push ebx
push ebx
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
or ebp, 0xffffffff
mov dword [esi + 4], eax
cmp eax, ebp
je 0x4016ff
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetCommMask]
mov ecx, dword [esi + 4]
push 0x2000
push 0x2000
push ecx
call dword [sym.imp.KERNEL32.dll_SetupComm]
mov edx, dword [esi + 4]
push 0xf
push edx
call dword [sym.imp.KERNEL32.dll_PurgeComm]
mov edi, dword [esp + 0x58]
mov eax, 0x4b00
xor edx, edx
mov ecx, dword [esi + 4]
div edi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], eax
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetCommTimeouts]
mov eax, dword [esi + 4]
lea edx, [esp + 0x28]
push edx
push eax
mov dword [esp + 0x30], 0x1c
call dword [sym.imp.KERNEL32.dll_GetCommState]
mov ecx, dword [esp + 0x30]
mov edx, dword [esi + 4]
and ecx, 0xffffffcf
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x28]
push ecx
push edx
mov byte [esp + 0x42], 8
mov byte [esp + 0x43], bl
mov byte [esp + 0x44], bl
call dword [sym.imp.KERNEL32.dll_SetCommState]
test eax, eax
jne 0x4016c2
push ebx
push ebx
push str.Fail__
call fcn.0042dc62
jmp 0x4016ff
mov al, byte [esp + 0x5c]
mov dword [esi + 0xc], 1
cmp al, bl
jne 0x401710
lea eax, [esp + 0x10]
push eax
push ebx
push esi
push 0x401960
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [esi + 0x38], eax
jne 0x401710
push ebx
push ebx
push str.CreateThread_Fail__
call fcn.0042dc62
mov ecx, esi
call fcn.00401740
lea ecx, [esp + 0x54]
mov dword [esp + 0x4c], ebp
call fcn.0042740d
xor eax, eax
jmp 0x401722
lea ecx, [esp + 0x54]
mov dword [esp + 0x4c], ebp
call fcn.0042740d
mov eax, 1
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret 0xc
Function at 0x401780
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x20]
push edi
lea edi, [esi + 0x24]
push edi
push eax
mov eax, dword [esi + 4]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x401816
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
cmp eax, 0x3e5
jne 0x4017fa
mov edx, dword [esi + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
lea ecx, [esp + 0x24]
push 1
push ecx
push edi
push edx
call ebx
test eax, eax
jne 0x401816
call ebp
cmp eax, 0x3e4
jne 0x401802
mov ecx, dword [esi + 4]
lea eax, [esp + 0x24]
push 1
push eax
push edi
push ecx
call ebx
test eax, eax
je 0x4017d1
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
mov dword [esp + 0x24], 0
mov ecx, dword [esi + 4]
lea edx, [esp + 0x10]
lea eax, [esp + 0x20]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8

Function at 0x401830
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ClearCommError]
push esi
mov esi, ecx
lea eax, [esp + 0x14]
push edi
lea ecx, [esp + 0x14]
mov edx, dword [esi + 4]
push eax
push ecx
push edx
call ebp
mov eax, dword [esp + 0x1c]
test eax, eax
mov dword [esp + 0x10], eax
jbe 0x4018ee
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
lea edi, [esi + 0x10]
lea eax, [esp + 0x10]
push edi
push eax
mov eax, dword [esi + 4]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4018ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4018d2
mov edx, dword [esi + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
lea ecx, [esp + 0x10]
push 1
push ecx
push edi
push edx
call ebx
test eax, eax
jne 0x4018ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e4
jne 0x4018da
mov ecx, dword [esi + 4]
lea eax, [esp + 0x10]
push 1
push eax
push edi
push ecx
call ebx
test eax, eax
je 0x4018a5
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
mov dword [esp + 0x10], 0
mov ecx, dword [esi + 4]
lea edx, [esp + 0x18]
lea eax, [esp + 0x14]
push edx
push eax
push ecx
call ebp
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
Function at 0x403520
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
or eax, 0xffffffff
mov edx, dword [ecx]
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x403558
push ebx
push edi
lea edi, [ecx]
mov ecx, eax
xor ebx, ebx
mov bl, byte [edx]
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [esi + ecx*4 + 0x844]
xor eax, ecx
inc edx
dec edi
jne 0x403538
pop edi
pop ebx
not eax
pop esi
ret 8

Function at 0x409c50
Capabilities:
Contain obfuscated stackstrings
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x80
mov eax, dword [esp + 0x84]
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push eax
mov byte [esp + 0x14], 0x30
mov dword [esp + 0x18], ebx
mov byte [esp + 0x1c], 0x31
mov dword [esp + 0x20], 1
mov byte [esp + 0x24], 0x32
mov dword [esp + 0x28], 2
mov byte [esp + 0x2c], 0x33
mov dword [esp + 0x30], 3
mov byte [esp + 0x34], 0x34
mov dword [esp + 0x38], 4
mov byte [esp + 0x3c], 0x35
mov dword [esp + 0x40], 5
mov byte [esp + 0x44], 0x36
mov dword [esp + 0x48], 6
mov byte [esp + 0x4c], 0x37
mov dword [esp + 0x50], 7
mov byte [esp + 0x54], 0x38
mov dword [esp + 0x58], 8
mov byte [esp + 0x5c], 0x39
mov dword [esp + 0x60], 9
mov byte [esp + 0x64], 0x41
mov dword [esp + 0x68], 0xa
mov byte [esp + 0x6c], 0x42
mov dword [esp + 0x70], 0xb
mov byte [esp + 0x74], 0x43
mov dword [esp + 0x78], 0xc
mov byte [esp + 0x7c], 0x44
mov dword [esp + 0x80], 0xd
mov byte [esp + 0x84], 0x45
mov dword [esp + 0x88], 0xe
mov byte [esp + 0x8c], 0x46
mov dword [esp + 0x90], 0xf
call fcn.00417182
push eax
call fcn.004170f8
mov ebp, eax
add esp, 8
mov edi, ebp
cmp byte [ebp], 0x30
jne 0x409d60
cmp byte [ebp + 1], 0x58
jne 0x409d60
lea edi, [ebp + 2]
mov dl, byte [edi]
mov al, 1
test dl, dl
je 0x409d94
xor ecx, ecx
lea esi, [esp + 0x10]
cmp dl, byte [esi]
je 0x409d7d
inc ecx
add esi, 8
cmp ecx, 0x10
jge 0x409d94
jmp 0x409d6e
test al, al
jne 0x409d84
shl ebx, 4
mov esi, dword [esp + ecx*8 + 0x14]
mov dl, byte [edi + 1]
or ebx, esi
inc edi
xor al, al
test dl, dl
jne 0x409d68
push ebp
call fcn.004170b0
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret 4
Function at 0x4171ad
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0x474100
push 0x41a31c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x48d2a8], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x48d2a4], ecx
shl ecx, 8
add ecx, edx
mov dword [0x48d2a0], ecx
shr eax, 0x10
mov dword [0x48d29c], eax
push 1
call fcn.0041b12c
pop ecx
test eax, eax
jne 0x417218
push 0x1c
call fcn.004172da
pop ecx
call fcn.0041a18c
test eax, eax
jne 0x417229
push 0x10
call fcn.004172da
pop ecx
xor esi, esi
mov dword [ebp - 4], esi
call fcn.0041c5f8
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x48e9d8], eax
call fcn.0041c4c6
mov dword [0x48d28c], eax
call fcn.0041c279
call fcn.0041c1c0
call fcn.00418241
mov dword [ebp - 0x30], esi
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0041c168
mov dword [ebp - 0x64], eax
test byte [ebp - 0x30], 1
je 0x417278
movzx eax, word [ebp - 0x2c]
jmp 0x41727b
push 0xa
pop eax
push eax
push dword [ebp - 0x64]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.0041826e
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x68], ecx
push eax
push ecx
call fcn.0041bff0
pop ecx
pop ecx
ret

Function at 0x41c7ed
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x481500
cmp edx, dword [eax]
je 0x41c80f
add eax, 8
inc ecx
cmp eax, 0x481590
jl 0x41c800
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x481500]
jne 0x41c93d
mov eax, dword [0x48d294]
cmp eax, 1
je 0x41c917
test eax, eax
jne 0x41c840
cmp dword [0x480ff4], 1
je 0x41c917
cmp edx, 0xfc
je 0x41c93d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41c877
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0041bf00
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0041afe0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41c8ba
lea eax, [ebp - 0x1a4]
push eax
call fcn.0041afe0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4745d8
push edi
call fcn.0041e8e0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0041bf00
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0041bf10
lea eax, [ebp - 0xa0]
push 0x4745b8
push eax
call fcn.0041bf10
push dword [esi + 0x481504]
lea eax, [ebp - 0xa0]
push eax
call fcn.0041bf10
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041e84b
add esp, 0x2c
pop edi
jmp 0x41c93d
lea eax, [ebp + 8]
lea esi, [esi + 0x481504]
push 0
push eax
push dword [esi]
call fcn.0041afe0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x424430
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00416da0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4244fb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x4244fb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4244ae
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4244b9
or bh, 8
and edi, 0x8000000
je 0x4244d4
mov eax, dword [0x48ea3c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x4244fb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4248d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4248fb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x42491f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x42493a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x428746
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x42877e
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.00427813
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004277eb
jmp 0x42878a
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x429cee
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 0x429d30
call fcn.0043021a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x429d30
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x429d27
xor eax, eax
jmp 0x429d38
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00429d3e
pop edi
pop esi
pop ebx
ret 4

Function at 0x43084e
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 0x43087c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x43089a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004307b4
jmp 0x43089a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x43089a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004307b4
test edi, edi
mov eax, edi
jne 0x430884
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x405eba
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x405ede
xor eax, eax
test eax, eax
je 0x405ef0
cmp byte [ebp + eax - 0x121], 0x5c
je 0x405ef0
xor ecx, ecx
jmp 0x405ef3
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x409010]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

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

Disassembly:
cmp dword [0x422acc], 0
push esi
jne 0x405fce
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 0x405fa8
mov dword [ecx*4 + 0x422ac8], eax
inc ecx
cmp ecx, 0x100
jl 0x405fa3
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405fff
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 + 0x422ac8]
xor eax, esi
inc ecx
dec edx
jne 0x405fe1
pop edi
not eax
pop esi
ret 0xc

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x10864d9a
nop
nop
test eax, eax
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x67bf7ace
nop
nop
nop
test eax, eax
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x42e072
nop
nop
nop
mov ebx, 0x407ef8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
mov esi, 0x5cfc149d
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x42e060
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x42e0d2
mov ebx, 0x42cd70
nop
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x578e5064
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0xaf2840
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00af2990
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xaf2866
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xaf2852
add dl, dl
jne 0xaf2871
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xaf28c4
xor eax, eax
add dl, dl
jne 0xaf287e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xaf2965
add dl, dl
jne 0xaf288d
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xaf2898
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xaf28a3
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xaf28ae
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xaf28ba
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xaf285d
mov eax, 1
add dl, dl
jne 0xaf28d2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xaf28dd
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xaf28c9
sub eax, ebx
mov ebx, 1
jne 0xaf2910
mov ecx, 1
add dl, dl
jne 0xaf28f6
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xaf2901
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xaf28ed
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xaf285d
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xaf2927
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xaf2932
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xaf291e
cmp eax, 0x7d00
jae 0xaf2955
cmp eax, 0x500
jb 0xaf2950
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xaf285d
cmp eax, 0x7f
ja 0xaf2958
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xaf285d
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xaf2986
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xaf285d
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10