joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4025b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x40263c
cmp byte [esi + 0x3d], 0
je 0x40263c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x402634
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x402605
sub eax, 1
je 0x402609
sub eax, 2
jne 0x402634
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 4]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x402627
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x402634
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4032a0
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4032df
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4032df
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4032df
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4032df
cmp dword [ecx + 0x74], 0xe
jbe 0x4032df
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x1000125c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0xc], 0
call sub.KERNEL32.DLL_GetEnvironmentStringsA
mov ebx, eax
mov dword [ebp - 0x10], ebx
jmp 0x10001299
cmp byte [ebx], 0x3d
je 0x10001285
inc dword [ebp - 0xc]
mov edi, ebx
xor eax, eax
stc
sbb ecx, ecx
repne scasb al, byte es:[edi]
neg ecx
lea eax, [ecx - 2]
mov edi, eax
inc edi
lea ebx, [ebx + edi]
cmp byte [ebx], 0
jne 0x10001278
mov edi, dword [ebp - 0xc]
inc edi
lea edi, [edi*4]
mov dword [ebp - 0x14], edi
push dword [ebp - 0x14]
call sub.CRTDLL.DLL_malloc
pop ecx
mov dword [ebp - 8], eax
mov dword [0x10003010], eax
cmp dword [ebp - 8], 0
jne 0x100012cc
xor eax, eax
jmp 0x10001342
mov ebx, dword [ebp - 0x10]
jmp 0x10001325
mov edi, ebx
xor eax, eax
stc
sbb ecx, ecx
repne scasb al, byte es:[edi]
neg ecx
lea eax, [ecx - 2]
mov edi, eax
inc edi
mov dword [ebp - 4], edi
cmp byte [ebx], 0x3d
je 0x1000131f
push dword [ebp - 4]
call sub.CRTDLL.DLL_malloc
pop ecx
mov esi, dword [ebp - 8]
mov dword [esi], eax
or eax, eax
jne 0x10001308
jmp 0x10001342
push ebx
mov edi, dword [ebp - 8]
push dword [edi]
call sub.CRTDLL.DLL_strcpy
add esp, 8
add dword [ebp - 8], 4
mov edx, dword [ebp - 4]
lea ebx, [ebx + edx]
cmp byte [ebx], 0
jne 0x100012d1
mov edx, dword [ebp - 8]
mov dword [edx], 0
mov eax, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1004d3d
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x3f8
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0xb
push eax
mov dword [ebp + 8], eax
call ebx
push 0x2400
push 0x10144d0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov edi, dword [ebp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
or ecx, 0xffffffff
mov esi, edi
mov edi, 0x10144d0
repne scasb al, byte es:[edi]
mov ecx, edx
shr ecx, 2
dec edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 8]
xor edi, edi
push edi
push edi
push 0xba
push esi
call ebx
cmp eax, 0x12
jle 0x1004dc2
push edi
push 1
push 0xbb
push esi
call ebx
mov edi, eax
lea eax, [edi + 0x10144d0]
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 0
push 1
push 0xb
push esi
call ebx
push 1
push 0
push esi
call dword [sym.imp.USER32.dll_InvalidateRect]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10054be
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x2b06
push dword [0x1014490]
call dword [sym.imp.USER32.dll_LoadIconA]
mov edi, dword [ebp + 8]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, eax
push ebx
push 1
push 0x80
push edi
call esi
push ebx
xor ebx, ebx
push ebx
push 0x80
push edi
call esi
push 0x1014110
push 0x3eb
push edi
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push 0x10144c4
push ebx
push edi
push 0x1005381
push ebx
push ebx
call fcn.01005e79
add esp, 0x18
push ebx
push ebx
push 0x8000
push edi
mov dword [0x10144c8], eax
call esi
push edi
call fcn.01004642
push edi
call fcn.010047f7
pop ecx
pop ecx
push ebx
push 0x3e8
push 1
push edi
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, dword [0x1014484]
cmp dword [eax + 0x58c], ebx
je 0x100555e
push 0x10016b0
jmp 0x1005563
push 0x10016f0
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x1006eed
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x1011228
cmp edx, dword [eax]
je 0x1006f0f
add eax, 8
inc ecx
cmp eax, 0x10112b8
jl 0x1006f00
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x1011228]
jne 0x100703d
mov eax, dword [0x1016ce0]
cmp eax, 1
je 0x1007017
test eax, eax
jne 0x1006f40
cmp dword [0x1011144], 1
je 0x1007017
cmp edx, 0xfc
je 0x100703d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1006f77
lea eax, [ebp - 0x1a4]
push 0x1001c7c
push eax
call fcn.01008770
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.01008860
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x1006fba
lea eax, [ebp - 0x1a4]
push eax
call fcn.01008860
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x1001c78
push edi
call fcn.01005fc0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x1001c5c
push eax
call fcn.01008770
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.01008780
lea eax, [ebp - 0xa0]
push 0x1001c58
push eax
call fcn.01008780
push dword [esi + 0x101122c]
lea eax, [ebp - 0xa0]
push eax
call fcn.01008780
push 0x12010
lea eax, [ebp - 0xa0]
push 0x1001c30
push eax
call fcn.01009e74
add esp, 0x2c
pop edi
jmp 0x100703d
lea eax, [ebp + 8]
lea esi, [esi + 0x101122c]
push 0
push eax
push dword [esi]
call fcn.01008860
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 0x100e201
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcb4
push ebx
push esi
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x34]
push 0x1003fc8
push eax
call fcn.01005dd7
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0xc
cmp dword [ebp + 8], 0
mov ebx, 0xbb8
je 0x100e26c
mov edi, dword [ebp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xc7
cmp ecx, ebx
jae 0x100e26c
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0xcb4]
push 0x1003fbc
push eax
call fcn.01005dd7
add esp, 0x10
lea eax, [ebp - 0xcb4]
push eax
call esi
cmp dword [ebp + 0x14], 0
je 0x100e277
push dword [ebp + 0x14]
call esi
push dword [ebp + 0x10]
push dword [ebp + 0x10]
call fcn.0100c998
push eax
lea eax, [ebp - 0xfc]
push 0x1003fac
push eax
call fcn.01005dd7
lea eax, [ebp - 0xfc]
push eax
lea eax, [ebp - 0xcb4]
push 0x1003fa0
push eax
call fcn.01005dd7
add esp, 0x1c
lea eax, [ebp - 0xcb4]
push eax
call esi
push 0x1003f9c
call esi
cmp dword [ebp + 0x18], 0
je 0x100e341
mov edi, dword [ebp + 8]
or edx, 0xffffffff
xor eax, eax
mov ecx, edx
repne scasb al, byte es:[edi]
mov edi, dword [ebp + 0x14]
not ecx
dec ecx
mov esi, ecx
mov ecx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
add esi, ecx
lea edi, [ebp - 0xfc]
mov ecx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
add esi, ecx
lea edi, [ebp - 0x34]
mov ecx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esi + ecx + 0xc8]
cmp eax, ebx
jae 0x100e341
push dword [ebp + 0x14]
lea eax, [ebp - 0xfc]
push eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0xcb4]
push 0x1003f6c
push eax
call fcn.01005dd7
add esp, 0x18
push 0x10
push 0x1003f4c
lea eax, [ebp - 0xcb4]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x100f814
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
mov eax, dword [ebp + 0x10]
push ebx
dec eax
dec eax
push esi
push edi
je 0x100f96c
sub eax, 0x10e
je 0x100f8ce
dec eax
je 0x100f840
xor eax, eax
jmp 0x100f97a
mov eax, dword [ebp + 0x14]
xor ecx, ecx
mov cx, ax
dec ecx
je 0x100f863
dec ecx
je 0x100f8b4
sub ecx, 0x2afc
jne 0x100f839
shr eax, 0x10
cmp ax, 2
jne 0x100f977
mov edi, dword [ebp + 8]
push dword [ebp + 0xc]
mov ecx, edi
call fcn.0100f472
test eax, eax
mov esi, dword [sym.imp.USER32.dll_EndDialog]
mov dword [edi + 0x34], eax
jge 0x100f89b
push 1
push 0x10042a4
push eax
push 0x100
push 0x1004050
call fcn.0100e201
push 0
push dword [ebp + 0xc]
call esi
cmp dword [edi + 0x34], 0x1000004
jne 0x100f977
push 0
push dword [ebp + 0xc]
call esi
jmp 0x100f977
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
mov dword [eax + 0x34], 0x1000003
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x100f977
mov esi, dword [ebp + 8]
lea eax, [esi + 0x350]
push eax
push 0x2afa
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push 0x2b06
push dword [esi + 0x3c]
call dword [sym.imp.USER32.dll_LoadIconA]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
push 1
mov ebx, 0x80
push ebx
push dword [ebp + 0xc]
mov dword [ebp + 8], eax
call edi
push dword [ebp + 8]
push 0
push ebx
mov ebx, dword [ebp + 0xc]
push ebx
call edi
lea eax, [esi + 0x44]
push eax
lea eax, [ebp - 0x100]
push 0x1004288
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x100]
push eax
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextA]
push ebx
mov ecx, esi
call fcn.0100e5cc
test eax, eax
mov dword [esi + 0x34], eax
jge 0x100f977
push 1
push 0x100426c
push eax
push 0xef
push 0x1004050
call fcn.0100e201
push 0
push ebx
jmp 0x100f8c3
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.0100e73c
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40c7d0
nop
mov ecx, 0x59ce1779
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x432024
nop
nop
nop
nop
mov eax, section..tls
nop
nop
mov ebx, 0x42f314
nop
mov ecx, 0x35b70e03
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x432084
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x100137df
Capabilities:
Generate random numbers via winapi

Disassembly:
call fcn.100b0a27
sub byte [eax], al
add byte [eax - 0x64846fe], al
sub esp, dword [ebx + 0x14]
xchg esp, eax
or esi, dword [ebp + 0xd508a03]
sbb eax, 0x6e64b0a0
dec ebx
jae 0x1001385c
dec edi
lds esi, [edx - 0x7b1f398d]
out dx, al
out dx, eax
ljmp 0xfdb3
mov ebp, esp
push esi
xor esi, esi
cmp dword [0x10120740], 1
je 0x10013871
mov esi, 0x8000ffff
jmp 0x10013899
push dword [ebp + 8]
push dword [ebp + 0xc]
push dword [0x10120730]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x100138be
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.100702b3
mov esi, eax
test esi, esi
jge 0x100138be
mov eax, dword [0x1011faf4]
cmp eax, 0x1011faf4
je 0x100138be
test byte [eax + 0x3c], 2
je 0x100138be
push esi
push 0x100034d8
push 0xa
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.100702b3
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x100702b3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x100702c2
pop dword [ebp - 0x24]
mov eax, 0x100702c2
sub dword [ebp - 0x24], eax
push 0x40
push 0x1000
push 0x58012
push 0
mov eax, 0xbc065afd
add eax, 0x53f9b5c7
add eax, dword [ebp - 0x24]
call dword [eax]
mov ecx, 0x47c0
xor edx, edx
add edx, eax
mov esi, 0x80be6450
sub esi, 0x70aaec50
add esi, dword [ebp - 0x24]
mov ebx, 0xaeb1dd05
add ebx, 0x757c4142
xor dword [ebp - 0x20], 0xe87f737b
mov edi, dword [esi]
add dword [ebp - 0x20], 0xaa450cd7
xor edi, ebx
xor dword [ebp - 4], 0xc71b1855
mov dword [edx], edi
xor dword [ebp - 0x18], ebx
add edx, 0x4aa5baad
sub edx, 0x4aa5baa9
add esi, 0x38cf5eec
sub esi, 0x38cf5ee8
loop 0x10070318
add eax, 0x57ac3c86
add eax, 0xa854d54d
xor ebx, ebx
add ebx, eax
add eax, 0xfe186590
sub eax, 0xfe18658b
mov ecx, 0xfb646b7b
sub ecx, 0xeb646b7b
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x419d32
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00419ee2
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x419e30
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x419dd3
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x419e16
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x419dea
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x419e05
test al, 0x40
je 0x419dfc
mov ecx, dword [edi + 0x20]
jmp 0x419e03
test al, 0x80
je 0x419e16
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x419e16
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x419da2
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x503a5b
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0x11
push 0xfffffffffffffffe
mov eax, 0xc7
mov edx, esp
int 0x2e
mov eax, 0xe5
mov edx, esp
int 0x2e
mov eax, 0xee
mov edx, esp
int 0x2e
mov eax, 0x136
mov edx, esp
int 0x2e
add esp, 0x10
mov esp, ebp
pop ebp
ret

Function at 0x503aae
Capabilities:
Check for trap flag exception

Disassembly:
push dword fs:[0]
mov dword fs:[0], esp
pushfd
or dword [esp], 0x100
popfd
clc
call fcn.00503ad3
Function at 0x54a260
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x7c6318]
xor edx, edx
cmp eax, edx
jne 0x54a286
xor eax, eax
mov byte [eax + 0x7c6218], al
inc eax
cmp eax, 0x100
jl 0x54a26e
mov dword [0x7c6318], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x7c6218
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x54a317
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x54a2ea
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x54a2b8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x54a320
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x54a373
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x54a35a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x54e6e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x68
mov eax, dword [esp + 0x78]
push ebx
push esi
cmp eax, 1
push edi
mov dword [esp + 0x14], ecx
jl 0x54e901
cmp eax, 8
jg 0x54e901
cmp dword [esp + 0x8c], 2
jl 0x54e901
mov eax, dword [esp + 0x7c]
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov ecx, dword [eax + 8]
mov dword [esp + 0x6c], ecx
sub ecx, esi
mov ebx, dword [eax + 0xc]
mov dword [esp + 0x7c], ecx
test ecx, ecx
mov dword [esp + 0x70], ebx
jle 0x54e901
sub ebx, edi
test ebx, ebx
mov dword [esp + 0x20], ebx
jle 0x54e901
mov eax, dword [esp + 0x80]
test eax, eax
je 0x54e767
mov edx, dword [eax]
mov dword [esp + 0x44], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x48], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x4c], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x50], eax
xor edx, edx
push ebp
test ebx, ebx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x14], edx
jle 0x54e8ea
mov ebp, dword [0x5ce650]
mov eax, ebx
mov dword [esp + 0x10], 0x32
sub eax, edx
cmp eax, 0x32
jg 0x54e799
mov dword [esp + 0x10], eax
xor eax, eax
test ecx, ecx
jle 0x54e8d1
mov ebx, dword [esp + 0x10]
add ebx, edx
mov dword [esp + 0x20], ebx
sub ecx, eax
cmp ecx, 0x32
jle 0x54e7b9
mov ecx, 0x32
lea ebx, [ecx + eax]
mov ecx, dword [esp + 0x20]
push ecx
push ebx
push edx
lea edx, [esp + 0x34]
push eax
push edx
call dword [0x5ce640]
push edi
lea eax, [esp + 0x2c]
push esi
push eax
call ebp
mov eax, dword [esp + 0x84]
test eax, eax
je 0x54e7f8
lea ecx, [esp + 0x48]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
call dword [0x5ce644]
lea ecx, [esp + 0x28]
push ecx
call dword [0x5ce688]
test eax, eax
jne 0x54e8b8
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x40], ecx
mov eax, edi
mov ecx, esi
mov dword [esp + 0x44], edx
neg eax
neg ecx
push eax
lea edx, [esp + 0x3c]
push ecx
push edx
call ebp
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x60], edx
lea edx, [esp + 0x58]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x94]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x94]
sub ecx, edi
sub eax, esi
push edx
push ecx
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x9c]
push eax
call fcn.0054dcf0
cmp eax, 1
jne 0x54e8e2
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x80]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x28]
call fcn.0054e5a0
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x14]
mov eax, ebx
cmp eax, ecx
jl 0x54e7ad
mov ebx, dword [esp + 0x24]
add edx, dword [esp + 0x10]
cmp edx, ebx
mov dword [esp + 0x14], edx
jge 0x54e8ea
jmp 0x54e784
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x18]
call fcn.0054d8f0
mov eax, dword [esp + 0x1c]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x68
ret 0x1c
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x68
ret 0x1c