joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005913
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 4
pop eax
call fcn.01003070
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1005979
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x10078d4]
mov esi, dword [ebp - 0x40]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
lea edx, [esi - 1]
and ecx, 0x103
not edx
and edx, ebx
inc ecx
sub edx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0xfffffff1
add eax, 0x11
imul eax, esi
add eax, edi
cmp edx, eax
jae 0x100597d
xor eax, eax
jmp 0x100598a
lea eax, [ebp - 4]
push eax
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x50]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x501711
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esp
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
xor eax, eax
mov ax, word [esp + 2]
mov dword [0x504b40], eax
xor eax, eax
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x4c], 0x30
call fcn.00501709
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x44], 0x50134a
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x24], str.Jungo
mov dword [ebp - 0x20], eax
call fcn.00501706
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
test eax, eax
je 0x5017f5
mov eax, 0x80000000
push edi
push dword [ebp - 0x38]
push edi
push edi
push eax
push eax
push eax
push eax
push 0
push str.180000
push str.Jungo
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0
push eax
mov dword [0x504b38], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x504b38]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push edi
push edi
push edi
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
je 0x5017f5
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
lea eax, [ebp - 0x1c]
push eax
call edi
lea ecx, [ebp - 0x1c]
push ecx
call ebx
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
jne 0x5017da
mov esp, ebp
pop ebp
ret
Function at 0x437df9
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub esp, 0x28
push esi
mov esi, dword [esp + 0x30]
push edi
test esi, esi
jl 0x437ea9
jne 0x437e1a
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
add esp, 0x28
ret
cmp esi, 0xf
jae 0x437ea2
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [esp + 0x18]
push eax
call edi
test eax, eax
je 0x437ea2
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 0x10]
push edx
call edi
fnstcw word [esp + 0x34]
mov eax, dword [esp + 0x10]
sub eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
sbb ecx, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
fild qword [esp + 0x20]
movzx eax, word [esp + 0x34]
fild qword [esp + 0x28]
or eax, 0xc00
mov dword [esp + 8], eax
fdivp st(1)
fmul qword [0x48d280]
fldcw word [esp + 8]
fistp qword [esp + 8]
mov edx, dword [esp + 8]
fldcw word [esp + 0x34]
cmp edx, esi
jb 0x437e3f
pop edi
pop esi
add esp, 0x28
ret
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
add esp, 0x28
ret

Function at 0x438109
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x29c
push esi
mov esi, dword [esp + 0x2a4]
push edi
mov edi, dword [esp + 0x2ac]
lea eax, [esp + 0x110]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x4381e7
push 0x100
lea ecx, [esp + 0x14]
push ecx
call sub.WSOCK32.dll_gethostname
lea edx, [esp + 0x10]
push edx
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x4381e7
mov eax, dword [eax + 0xc]
xor edx, edx
cmp dword [eax], edx
je 0x438172
mov ecx, eax
lea esp, [esp]
add ecx, 4
inc edx
cmp dword [ecx], 0
jne 0x438169
cmp esi, edx
jle 0x438192
push 0x487f90
push edi
call fcn.00412bb1
add esp, 8
call sub.WSOCK32.dll_WSACleanup
pop edi
pop esi
add esp, 0x29c
ret
mov eax, dword [eax + esi*4 - 4]
push 4
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.00412490
mov edx, dword [esp + 0x18]
add esp, 0xc
push edx
call sub.WSOCK32.dll_inet_ntoa
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00414ea0
lea ecx, [esp + 0x18]
push 0xffffffffffffffff
push ecx
call fcn.0043754b
mov esi, eax
push esi
push edi
call fcn.00412bb1
push esi
call fcn.0041294d
add esp, 0x1c
call sub.WSOCK32.dll_WSACleanup
pop edi
pop esi
add esp, 0x29c
ret
push 0x4858e8
push edi
call fcn.00412bb1
add esp, 8
pop edi
pop esi
add esp, 0x29c
ret
Function at 0x274bf47
Capabilities:
Resolve function by parsing pe exports

Disassembly:
test eax, eax
pushal
lea esp, [esp + 0x28]
je 0x16364c3
sar dl, 1
sal dh, 1
bt ecx, 0x1c
mov esi, dword [eax + 0x3c]
shr dl, 5
bsf edx, edi
ror edx, 2
add esi, eax
sbb dx, dx
mov edx, dword [esi + 0x78]
push 0x7221e6d5
test edx, edx
pushfd
mov byte [esp + 4], 0x3f
mov byte [esp + 4], 0xfd
lea esp, [esp + 8]
je 0x16364c3
seta ch
pushfd
add edx, eax
pop ecx
shr ch, cl
btr cx, si
or ch, bh
mov ecx, dword [esi + 0x7c]
test ax, 0x82ff
test ebx, edx
add ecx, edx
test ah, 0xb1
pushfd
pushfd
mov dword [ebp - 0x10], ecx
cmp ah, 0xcf
sub cl, 0x47
mov ecx, dword [ebp + 0xc]
jmp 0x2a063eb
test ah, dl
jmp 0x1639649
mov word [esp], cx
cmp ecx, 0xffff
pushal
jmp 0x274ccaf
Function at 0x10001020
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x28
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
push 0x400
lea eax, [esi + 0x2c]
push ebp
push eax
mov dword [esi], ebp
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], ebp
mov dword [esi + 0x28], ebp
call fcn.10006220
push 0x400
lea ecx, [esi + 0x42c]
push ebp
push ecx
call fcn.10006220
fldz
add esp, 0x18
fstp dword [esi + 0x834]
mov edi, 1
lea edx, [esp + 0x10]
push edx
mov dword [esi + 0x82c], ebp
mov dword [esi + 0x830], ebp
mov dword [esi + 0x14], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x18], ebp
mov dword [esi + 0x1c], ebp
mov dword [esi + 0x20], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x24]
add eax, eax
xor ecx, ecx
mov dword [esi + 0x20], eax
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10003553
mov dword [esi + 0x18], eax
add esp, 4
xor eax, eax
cmp dword [esi + 0x20], ebp
jle 0x100010cd
mov edi, edi
mov ecx, dword [esi + 0x18]
mov dword [ecx + eax*4], ebp
add eax, edi
cmp eax, dword [esi + 0x20]
jl 0x100010c0
mov edi, dword [esi + 0x20]
xor ecx, ecx
mov eax, edi
mov edx, 0x880
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10003553
add esp, 4
cmp eax, ebp
mov dword [esp + 0xc], eax
je 0x10001162
push ebx
lea ebx, [edi - 1]
cmp ebx, ebp
jl 0x10001155
lea edi, [eax + 8]
mov edi, edi
fldz
push 0x64
lea eax, [edi + 0x14]
fstp dword [edi + 8]
push ebp
push eax
mov dword [edi - 8], ebp
mov dword [edi - 4], ebp
mov dword [edi], ebp
mov dword [edi + 4], ebp
mov dword [edi + 0xc], ebp
mov dword [edi + 0x10], ebp
call fcn.10006220
push 0x400
lea ecx, [edi + 0x78]
push ebp
push ecx
call fcn.10006220
push 0x400
lea edx, [edi + 0x478]
push ebp
push edx
call fcn.10006220
add esp, 0x24
add edi, 0x880
sub ebx, 1
jns 0x10001100
mov eax, dword [esp + 0x10]
pop ebx
mov dword [esi + 0x1c], eax
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x28
ret
pop edi
mov dword [esi + 0x1c], ebp
mov eax, esi
pop esi
pop ebp
add esp, 0x28
ret
Function at 0x100015b0
Capabilities:
Check for time delay via gettickcount
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
sub esp, 0x814
mov eax, dword [0x1001603c]
xor eax, esp
mov dword [esp + 0x810], eax
push ebx
push esi
mov esi, dword [esp + 0x820]
xor ebx, ebx
push 0x3ff
lea eax, [esp + 0x1d]
push ebx
push eax
mov dword [esp + 0x18], ebx
mov byte [esp + 0x24], bl
call fcn.10006220
add esp, 0xc
cmp dword [esi + 0x830], ebx
mov dword [esp + 0x10], ebx
je 0x10001601
push 0x10013b60
lea ecx, [esi + 0x2c]
push ecx
jmp 0x1000160a
push 0x10013b44
lea edx, [esi + 0x2c]
push edx
call fcn.10002fcf
add esp, 8
cmp eax, ebx
mov dword [esp + 8], eax
je 0x10001773
push ebp
xor ebp, ebp
cmp dword [esi + 0x28], 3
push edi
je 0x10001702
lea esp, [esp]
cmp dword [esi + 0x28], 2
jne 0x10001643
push 0x28
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100016f8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esi + 8]
mov edi, eax
lea eax, [esp + 0x18]
push eax
push 0x400
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [esp + 0x14], 0
je 0x1000170f
mov ecx, dword [esp + 0x18]
test ecx, ecx
jbe 0x1000170f
cmp ebp, 0x1f4
jbe 0x100016c6
test ebx, ebx
mov dword [esp + 0x1c], ebx
fild dword [esp + 0x1c]
jge 0x1000169f
fadd dword [0x10013c18]
fmul qword [0x10013c10]
shl ebp, 0xa
test ebp, ebp
mov dword [esp + 0x1c], ebp
fild dword [esp + 0x1c]
jge 0x100016ba
fadd dword [0x10013c18]
fdivp st(1)
xor ebx, ebx
xor ebp, ebp
fstp dword [esi + 0x834]
add dword [esi + 0x830], ecx
sub eax, edi
add ebp, eax
mov eax, dword [esp + 0x10]
push eax
push 1
push ecx
add ebx, ecx
lea ecx, [esp + 0x2c]
push ecx
call fcn.10003379
push 0x400
lea edx, [esp + 0x34]
push 0
push edx
call fcn.10006220
add esp, 0x1c
cmp dword [esi + 0x28], 3
jne 0x10001630
cmp dword [esi + 0x14], 0
je 0x1000170f
mov ecx, esi
call sym.HttpLoad.dll_private:_void___thiscall_CHttpLoadThreads::SaveLoadTempFile_void_
mov eax, dword [esp + 0x10]
push eax
call fcn.10003479
add esp, 4
cmp dword [esp + 0x18], 0
pop edi
pop ebp
jne 0x1000176c
push 0x3ff
lea ecx, [esp + 0x41d]
push 0
push ecx
mov byte [esp + 0x424], 0
call fcn.10006220
add esp, 0xc
lea edx, [esp + 0x418]
push edx
mov ecx, esi
call sym.HttpLoad.dll_private:_void___thiscall_CHttpLoadThreads::GetLoadTempFile_char__
lea eax, [esp + 0x418]
push eax
call fcn.10002c2e
add esp, 4
mov dword [esi + 0x28], 4
jmp 0x1000177a
cmp dword [esp + 0xc], 0
jne 0x1000177a
mov dword [esi + 0x28], 0xffffffff
mov ecx, dword [esp + 0x818]
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.10002872
add esp, 0x814
ret 4
Function at 0x10001b60
Capabilities:
Connect to http server
Create http request
Get http content length
Send data
Send http request

Disassembly:
sub esp, 0x818
mov eax, dword [0x1001603c]
xor eax, esp
mov dword [esp + 0x814], eax
push ebp
mov ebp, dword [esp + 0x820]
push esi
mov esi, dword [esp + 0x828]
push edi
mov edi, dword [esp + 0x830]
push 0x3ff
lea eax, [esp + 0x25]
push 0
push eax
mov dword [esp + 0x18], ecx
mov byte [esp + 0x2c], 0
call fcn.10006220
push 0x3ff
lea ecx, [esp + 0x431]
push 0
push ecx
mov byte [esp + 0x438], 0
call fcn.10006220
push str.http:__
push esi
call fcn.10002ad0
add esp, 0x20
test eax, eax
je 0x10001bd9
add eax, 7
jmp 0x10001bdb
mov eax, esi
mov dl, byte [eax]
xor ecx, ecx
test dl, dl
je 0x10001bf3
cmp dl, 0x2f
je 0x10001bf3
mov dl, byte [ecx + eax + 1]
add ecx, 1
test dl, dl
jne 0x10001be3
push ecx
push eax
lea edx, [esp + 0x28]
push edx
call fcn.10002c60
push str.http:__
push esi
call fcn.10002ad0
add esp, 0x14
test eax, eax
je 0x10001c16
add eax, 7
jmp 0x10001c18
mov eax, esi
push 0x10013b30
push eax
call fcn.10002ad0
add esp, 8
lea edx, [esp + 0x420]
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx], cl
add eax, 1
add edx, 1
test cl, cl
jne 0x10001c30
push 0
push 0
push 0
push 1
push str.CHttpLoadThreads
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esp + 0x10], eax
je 0x10001d46
push ebx
push 0
push 0
push 3
push 0
push 0
push 0x50
lea ecx, [esp + 0x3c]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov ebx, eax
test ebx, ebx
je 0x10001d09
push 1
push 0x4000000
lea edx, [esp + 0x24]
push edx
push 0
push 0
lea eax, [esp + 0x438]
push eax
push ebp
push ebx
mov dword [esp + 0x3c], 0x10013ba8
mov dword [esp + 0x40], 0x10013bac
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
test esi, esi
je 0x10001d09
test edi, edi
je 0x10001ccd
mov eax, edi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10001cc0
sub eax, edx
jmp 0x10001ccf
xor eax, eax
push 0
push 0
push eax
push edi
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x10001d09
mov edi, dword [esp + 0x10]
mov ebp, dword [sym.imp.WININET.dll_HttpQueryInfoA]
push 0
lea ecx, [esp + 0x1c]
push ecx
lea edx, [edi + 0x42c]
push edx
push 0x16
push esi
mov dword [esp + 0x2c], 0x400
call ebp
test eax, eax
jne 0x10001d0d
xor eax, eax
jmp 0x10001d45
add edi, 0x82c
cmp dword [edi], 0
jne 0x10001d30
push 0
lea eax, [esp + 0x14]
push eax
push edi
push 0x20000005
push esi
mov dword [esp + 0x24], 4
call ebp
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebx
call esi
mov ecx, dword [esp + 0x14]
push ecx
call esi
mov eax, dword [edi]
pop ebx
mov ecx, dword [esp + 0x820]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.10002872
add esp, 0x818
ret 0xc
Function at 0x10002710
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x80c
mov eax, dword [0x1001603c]
xor eax, esp
mov dword [esp + 0x808], eax
push ebx
push ebp
push edi
mov edi, ecx
lea eax, [edi + 0x2c]
push 0x10013b60
push eax
call fcn.10002fcf
mov ebp, eax
xor ebx, ebx
add esp, 8
cmp ebp, ebx
je 0x1000285a
cmp dword [edi + 0x20], ebx
mov dword [esp + 0x10], ebx
jle 0x10002851
mov dword [esp + 0xc], ebx
push esi
jmp 0x10002760
push 0x3ff
lea ecx, [esp + 0x41d]
push ebx
push ecx
mov byte [esp + 0x424], bl
call fcn.10006220
mov eax, dword [edi + 0x1c]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
lea edx, [esp + 0x418]
push edx
mov edx, dword [eax + ecx + 0x14]
push edx
mov ecx, edi
call sym.HttpLoad.dll_private:_void___thiscall_CHttpLoadThreads::GetMultiLoadSaveFile_int__char__
lea eax, [esp + 0x418]
push 0x10013b64
push eax
call fcn.10002fcf
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x10002824
push 0x3ff
lea ecx, [esp + 0x1d]
push ebx
push ecx
mov byte [esp + 0x24], bl
call fcn.10006220
push esi
push 0x400
lea edx, [esp + 0x2c]
push 1
push edx
call fcn.1000323f
add esp, 0x1c
cmp eax, ebx
jbe 0x1000281b
push ebp
push eax
lea eax, [esp + 0x20]
push 1
push eax
call fcn.10003379
push 0x3ff
lea ecx, [esp + 0x2d]
push ebx
push ecx
mov byte [esp + 0x34], bl
call fcn.10006220
push esi
push 0x400
lea edx, [esp + 0x3c]
push 1
push edx
call fcn.1000323f
add esp, 0x2c
cmp eax, ebx
ja 0x100027e0
push esi
call fcn.10003479
add esp, 4
lea eax, [esp + 0x418]
push eax
call fcn.10002c2e
mov eax, dword [esp + 0x18]
add dword [esp + 0x14], 0x880
add eax, 1
add esp, 4
cmp eax, dword [edi + 0x20]
mov dword [esp + 0x14], eax
jl 0x10002760
pop esi
push ebp
call fcn.10003479
add esp, 4
mov ecx, dword [esp + 0x814]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.10002872
add esp, 0x80c
ret

Function at 0x10002872
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1001603c]
jne 0x1000287c
repz ret
jmp fcn.100038ad
Function at 0x1000e301
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.10007e18
xor ebx, ebx
cmp dword [0x10017dd0], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x1000e3d6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x1000e341
xor eax, eax
jmp 0x1000e49a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x1000e33a
push eax
call fcn.10007db5
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10017dd0], eax
call esi
push eax
call fcn.10007db5
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10017dd4], eax
call esi
push eax
call fcn.10007db5
mov dword [0x10017dd8], eax
lea eax, [ebp - 8]
push eax
call fcn.10007b76
test eax, eax
pop ecx
pop ecx
je 0x1000e3a4
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.100045d6
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x1000e3d6
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.10007db5
cmp eax, ebx
pop ecx
mov dword [0x10017de0], eax
je 0x1000e3d6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10007db5
pop ecx
mov dword [0x10017ddc], eax
mov eax, dword [0x10017ddc]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x1000e44f
cmp dword [0x10017de0], esi
je 0x1000e44f
push eax
call fcn.10007e21
pop ecx
call eax
cmp eax, ebx
je 0x1000e41c
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x10017de0]
call fcn.10007e21
pop ecx
call eax
test eax, eax
je 0x1000e41c
test byte [ebp - 0x18], 1
jne 0x1000e44f
lea eax, [ebp - 0xc]
push eax
call fcn.10007bad
test eax, eax
pop ecx
je 0x1000e437
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.100045d6
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x1000e446
or dword [ebp + 0x10], 0x200000
jmp 0x1000e480
or dword [ebp + 0x10], 0x40000
jmp 0x1000e480
mov eax, dword [0x10017dd4]
cmp eax, esi
je 0x1000e480
push eax
call fcn.10007e21
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1000e480
mov eax, dword [0x10017dd8]
cmp eax, esi
je 0x1000e480
push dword [ebp - 4]
push eax
call fcn.10007e21
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x10017dd0]
call fcn.10007e21
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4e3562
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x43ee84], 0
jne 0x4e3574
pop ebp
jmp fcn.004e2c6a
pop ebp
jmp fcn.004e30e3

Function at 0x4f2441
Capabilities:
Write file on windows

Disassembly:
mov ebx, dword [0x43ee90]
cli
mov eax, cr0
and eax, 0x7fffffff
mov cr0, eax
jmp 0x4f2455
mov eax, cr4
or eax, 0x6a0
mov cr4, eax
mov eax, dword [0x444d80]
and eax, 0xfffff000
mov cr3, eax
mov ecx, dword [0x4398fc]
rdmsr
or eax, dword [0x439920]
wrmsr
mov eax, cr0
or eax, 0x80050020
mov cr0, eax
jmp 0x4f248a
cmp ebx, 1
jne 0x4f2490
ret
lgdt [0x474520]
ljmp 0

Function at 0x4f55bb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov edx, edi
shr edx, 0xc
cmp edx, 1
mov eax, 0x1000
jb 0x4f55e1
lea ecx, [edx + ebx]
cmp ecx, eax
jae 0x4f55e1
mov eax, edi
jmp 0x4f5626
mov ecx, dword [0x476fb8]
and dword [ebp + 0x10], 0
mov dword [ebp - 4], ecx
push esi
xor esi, esi
test ebx, ebx
jbe 0x4f5605
mov ecx, dword [ebp - 4]
cmp dword [ecx], 0
jne 0x4f5605
inc esi
add ecx, 4
cmp esi, ebx
jb 0x4f55f8
cmp esi, ebx
je 0x4f562c
inc dword [ebp + 0x10]
add dword [ebp - 4], 4
mov ecx, 0x400
sub ecx, ebx
cmp dword [ebp + 0x10], ecx
jbe 0x4f55ef
push edi
call fcn.005006bb
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret 0xc
test ebx, ebx
mov esi, 0xfff
jbe 0x4f5678
mov ecx, dword [ebp + 0x10]
shl ecx, 2
shl edx, 0xc
mov edi, edx
mov dword [ebp - 4], ebx
mov edx, dword [0x476fb8]
add edx, ecx
mov ebx, dword [edx]
xor ebx, edi
and ebx, esi
xor ebx, edi
mov dword [edx], ebx
mov edx, dword [0x476fb8]
add edx, ecx
or dword [edx], 1
mov edx, dword [0x476fb8]
add edx, ecx
or dword [edx], 2
add edi, eax
add ecx, 4
dec dword [ebp - 4]
jne 0x4f5643
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
or eax, 0xfffffc00
shl eax, 0xc
and edi, esi
or eax, edi
jmp 0x4f5625

Function at 0x4f5689
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [0x476fb8]
push esi
push edi
mov edi, dword [ebp + 8]
mov edx, edi
shr edx, 0xc
and dword [ebp - 4], 0
xor esi, esi
test eax, eax
jbe 0x4f56ba
mov ecx, ebx
cmp dword [ecx], 0
jne 0x4f56ba
inc esi
add ecx, 4
cmp esi, eax
jb 0x4f56ad
cmp esi, eax
je 0x4f56e0
inc dword [ebp - 4]
mov ecx, 0x400
sub ecx, eax
add ebx, 4
cmp dword [ebp - 4], ecx
jbe 0x4f56a5
push edi
call fcn.005006bb
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
test eax, eax
mov esi, 0xfff
jbe 0x4f5741
mov ecx, dword [ebp - 4]
shl ecx, 2
shl edx, 0xc
mov edi, edx
mov edx, dword [0x476fb8]
add edx, ecx
mov ebx, dword [edx]
xor ebx, edi
and ebx, esi
xor ebx, edi
mov dword [edx], ebx
mov edx, dword [0x476fb8]
add edx, ecx
or dword [edx], 1
mov edx, dword [0x476fb8]
add edx, ecx
or dword [edx], 2
mov edx, dword [0x476fb8]
add edx, ecx
or dword [edx], 8
mov edx, dword [0x476fb8]
add edx, ecx
or dword [edx], 0x10
add edi, 0x1000
add ecx, 4
dec eax
jne 0x4f56f4
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 4]
or eax, 0xfffffc00
shl eax, 0xc
and edi, esi
or eax, edi
jmp 0x4f56d9
Function at 0x4f7701
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebx + 0x18]
mov eax, 0xf68
cmp edi, eax
jae 0x4f771e
mov dword [ebp - 8], edi
jmp 0x4f7723
mov dword [ebp - 8], eax
mov edi, eax
mov esi, dword [ebp + 0xc]
mov eax, dword [ebx + 0x10]
mov edx, dword [esi + 4]
mov dword [ebp + 0xc], edx
xor ecx, ecx
lea edx, [eax + edi]
xor edx, eax
test edx, 0xfffff000
push ecx
mov dword [ebp - 0x10], eax
push eax
jne 0x4f7767
call fcn.004f82c1
test eax, eax
jne 0x4f7755
and word [esi], 0
jmp 0x4f77e4
movzx ecx, di
push ecx
push eax
push dword [ebp + 0xc]
call fcn.004f8167
mov word [esi], ax
jmp 0x4f77e4
call fcn.004f82c1
test eax, eax
je 0x4f774c
mov ecx, eax
and ecx, 0xfff
mov ebx, 0x1000
sub ebx, ecx
movzx ecx, bx
push ecx
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], ecx
call fcn.004f8167
mov word [esi], ax
mov eax, dword [ebp - 4]
add dword [ebp - 0x10], eax
add dword [ebp + 0xc], eax
sub edi, ebx
jmp 0x4f77d9
xor eax, eax
push eax
push dword [ebp - 0x10]
call fcn.004f82c1
test eax, eax
je 0x4f77de
cmp di, 0x1000
mov dword [ebp - 4], 0x1000
ja 0x4f77bf
mov dword [ebp - 4], edi
movzx ebx, word [ebp - 4]
push ebx
push eax
push dword [ebp + 0xc]
call fcn.004f8167
add word [esi], ax
add dword [ebp - 0x10], ebx
add dword [ebp + 0xc], ebx
sub edi, dword [ebp - 4]
test di, di
ja 0x4f779f
mov edi, dword [ebp - 8]
mov ebx, dword [ebp + 8]
movzx eax, word [esi]
sub edi, eax
neg edi
sbb edi, edi
and edi, 0xc0000001
mov dword [ebx + 8], edi
movzx eax, word [esi]
mov dword [ebx + 0x1c], eax
push esi
lea eax, [ebp - 0x18]
push eax
push 2
mov word [ebp - 0x18], 0x38
mov dword [ebp - 0x14], ebx
call fcn.004f7eb6
pop edi
pop esi
pop ebx
leave
ret 0xc