joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100374ba
Capabilities:
Encode data using xor

Disassembly:
push 0x4402890e
xor eax, eax
push eax
call fcn.10037401
jb 0x100375ca
push 4
push 0x1000
push 0x200
push 0
call eax
dec eax
js 0x100375ca
inc eax
push eax
mov edi, eax
xor ecx, ecx
xor eax, eax
mov al, cl
push ecx
mov ecx, 8
clc
rcr ax, 1
jae 0x100374fe
xor ax, 0xa001
loop 0x100374f4
mov word [edi], ax
inc edi
inc edi
pop ecx
inc ecx
cmp ecx, 0x100
jne 0x100374ea
mov esi, ebp
mov edi, dword [esp]
mov ecx, 0x762
dec ecx
xor eax, eax
xor ebx, ebx
xor bh, bh
mov bl, al
lodsb al, byte [esi]
xor bl, al
shl bx, 1
mov bx, word [edi + ebx]
xor bl, ah
mov ax, bx
loop 0x1003751e
xor edx, edx
mov ecx, 0x762
dec ecx
mov edi, ecx
shr edi, 1
mov esi, ebp
test ah, 0x80
je 0x1003754a
xor ax, 0xa097
test dh, 0x80
je 0x10037554
xor dx, 0xa097
mov bx, ax
add bx, ax
mov cx, dx
add cx, dx
lodsw ax, word [esi]
mov dl, ah
add ax, bx
mov ah, bh
add dx, cx
mov dh, ch
dec edi
jne 0x10037541
shl eax, 0x10
add eax, edx
mov edx, eax
shr eax, 4
and edx, 0xf0f0f0f
shl edx, 4
and eax, 0xf0f0f0f
or eax, edx
pop ebx
push eax
push ebx
push 0x2aad1211
xor eax, eax
push eax
call fcn.10037401
jb 0x100375ca
pop ebx
push 0x8000
push 0
push ebx
call eax
call fcn.100372b9
jb 0x100375ca
push ecx
mov ecx, dword [ebp + 0x762]
add ecx, ebp
lea ebx, [ebp + 0x401]
sub ebx, dword [ebp + 0x766]
mov dword [ecx + 0x18], ebx
pop ecx
inc ecx
ret
xor ecx, ecx
ret

Function at 0x10037662
Capabilities:
Encode data using xor

Disassembly:
pop ecx
push 0x4402890e
xor eax, eax
push eax
call fcn.10037401
jb 0x100375ca
push 4
push 0x1000
push 0x200
push 0
call eax
dec eax
js 0x1003775a
inc eax
push eax
mov edi, eax
xor ecx, ecx
xor eax, eax
mov al, cl
push ecx
mov ecx, 8
clc
rcr ax, 1
jae 0x100376a7
xor ax, 0xa001
loop 0x1003769d
mov word [edi], ax
inc edi
inc edi
pop ecx
inc ecx
cmp ecx, 0x100
jne 0x10037693
mov esi, ebp
mov edi, dword [esp]
mov ecx, 0x762
dec ecx
xor eax, eax
xor ebx, ebx
xor bh, bh
mov bl, al
lodsb al, byte [esi]
xor bl, al
shl bx, 1
mov bx, word [edi + ebx]
xor bl, ah
mov ax, bx
loop 0x100376c7
xor edx, edx
mov ecx, 0x762
dec ecx
mov edi, ecx
shr edi, 1
mov esi, ebp
test ah, 0x80
je 0x100376f3
xor ax, 0xa097
test dh, 0x80
je 0x100376fd
xor dx, 0xa097
mov bx, ax
add bx, ax
mov cx, dx
add cx, dx
lodsw ax, word [esi]
mov dl, ah
add ax, bx
mov ah, bh
add dx, cx
mov dh, ch
dec edi
jne 0x100376ea
shl eax, 0x10
add eax, edx
mov edx, eax
shr eax, 4
and edx, 0xf0f0f0f
shl edx, 4
and eax, 0xf0f0f0f
or eax, edx
pop ebx
push eax
push ebx
push 0x2aad1211
xor eax, eax
push eax
call fcn.10037401
jb 0x1003775a
pop ebx
push 0x8000
push 0
push ebx
call eax
call fcn.100370be
jb 0x1003775a
inc ecx
ret
xor ecx, ecx
jmp 0x10037656
Function at 0x40110b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x410284]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x401158
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x404]
push 0x3ff
push 0x400
push eax
call fcn.00401981
lea eax, [ebp - 0x404]
push eax
call fcn.00401981
add esp, 0x18
push 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401ea2
leave
ret

Function at 0x401981
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x401990
pop dword [ebp - 0x1c]
mov eax, 0x401990
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0xf81e8947
sub dword [ebp - 0x2c], 0xa9cc43fc
mov dword [ebp - 0x28], 0x20b20977
sub dword [ebp - 0x28], 0xee7ebd32
mov dword [ebp - 0x24], 0xe6ce10d4
add dword [ebp - 0x24], 0x657e335a
mov dword [ebp - 0x20], 0xa82b4520
add dword [ebp - 0x20], 0x57d4bae0
lea eax, [ebp - 0x2c]
push eax
mov eax, 0x6d1a6933
sub eax, 0x6cd998df
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0xbbf763c6
add dword [ebp - 0x2c], 0xb87b0590
mov dword [ebp - 0x28], 0xa38119a6
sub dword [ebp - 0x28], 0x6214b831
mov dword [ebp - 0x24], 0xe610ac03
add dword [ebp - 0x24], 0x7d5ec069
mov dword [ebp - 0x20], 0x5fc816a2
add dword [ebp - 0x20], 0xa037e95e
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0x2af3980c
sub eax, 0x2ab2c7c0
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x39959
push 0
call eax
mov ecx, 0x1f46c991
sub ecx, 0x1f468165
mov edx, eax
mov ebx, 0x9cf13885
sub ebx, 0x9caf8885
add ebx, dword [ebp - 0x1c]
mov esi, 0x38320342
xor dword [ebp - 0xc], 0xe6381ce0
mov edi, dword [ebx]
sub dword [ebp - 8], edx
xor edi, esi
mov dword [edx], edi
add edx, 0x83e4e91f
add edx, 0x7c1b16e5
add ebx, 0x4f73f56c
sub ebx, 0x4f73f568
loop 0x401aa7
add eax, 0x11383
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret

Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

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 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 0x402240
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x404144], eax
mov ecx, ebp
add ecx, 8
mov dword [0x4040e2], ecx
mov dword [0x404148], 0x30
mov dword [0x40414c], 2
mov dword [0x404154], 0
mov dword [0x404158], 0
mov dword [0x404150], 0x4025d0
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x40415c], eax
mov dword [0x404168], 0xf
mov dword [0x404170], 0x40386b
mov dword [0x4040da], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x404160], eax
mov dword [0x404174], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x404164], eax
push 0x404148
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x4040da]
push 0
push 0
push 0x24e
push 0x320
push 0xd8
push 0xa0
push 0x40000
push str.myform
push 0x40386b
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x40413c], eax
xor eax, eax
jmp 0x40232b
push eax
push dword [0x40413c]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x40413c]
call dword [sym.imp.user32.dll_UpdateWindow]
push 0
push 0
push 0
push 0x404178
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x402371
push 0x404178
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x404178
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x402344
mov eax, dword [0x404180]
call fcn.00401208
ret

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 0x40216b
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
call main
jmp 0x402175
push 0x14
push 0x411788
call fcn.00405300
call main
movzx esi, ax
push 2
call main
pop ecx
mov eax, 0x5a4d
cmp word [0x400000], ax
je 0x4021a3
xor ebx, ebx
jmp 0x4021d6
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x40219f
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x40219f
xor ebx, ebx
cmp dword [eax + 0x400074], 0xe
jbe 0x4021d6
cmp dword [eax + 0x4000e8], ebx
setne bl
mov dword [ebp - 0x1c], ebx
call fcn.004048ef
test eax, eax
jne 0x4021ea
push 0x1c
call main
pop ecx
call fcn.00403b58
test eax, eax
jne 0x4021fb
push 0x10
call main
pop ecx
call fcn.004051cc
and dword [ebp - 4], 0
call fcn.00404904
test eax, eax
jns 0x402215
push 0x1b
call main
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x4162e8], eax
call main
mov dword [0x414430], eax
call main
test eax, eax
jns 0x40223b
push 8
call main
pop ecx
call fcn.00404de7
test eax, eax
jns 0x40224c
push 9
call main
pop ecx
push 1
call main
pop ecx
test eax, eax
je 0x40225f
push eax
call main
pop ecx
call fcn.00405299
push esi
push eax
push 0
push 0x400000
call main
mov esi, eax
mov dword [ebp - 0x24], esi
test ebx, ebx
jne 0x402281
push esi
call main
call fcn.00404663
jmp 0x4022b6
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
call fcn.00405345
ret

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 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 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 0x10015217
Capabilities:
Enumerate processes

Disassembly:
push 0x238
mov eax, 0x1002d711
call fcn.10017005
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x10015234
xor eax, eax
jmp 0x10015311
xor edi, edi
push edi
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov esi, eax
test esi, esi
je 0x1001530f
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0x22c
push eax
push esi
call sub.kernel32.dll_Process32FirstW
jmp 0x100152e5
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x244]
call fcn.1000128b
push ebx
lea ecx, [ebp - 0x240]
mov dword [ebp - 4], edi
call fcn.1000128b
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 1
call fcn.10001cc6
lea ecx, [ebp - 0x240]
call fcn.10001cc6
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.10017ebb
pop ecx
pop ecx
mov ecx, dword [ebp - 0x240]
lea ecx, [ecx - 0x10]
test al, al
jne 0x100152ef
call fcn.10001eb4
mov ecx, dword [ebp - 0x244]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.10001eb4
lea eax, [ebp - 0x23c]
push eax
push esi
call sub.kernel32.dll_Process32NextW
test eax, eax
jne 0x10015264
jmp 0x10015308
mov edi, dword [ebp - 0x234]
call fcn.10001eb4
mov ecx, dword [ebp - 0x244]
add ecx, 0xfffffff0
call fcn.10001eb4
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, edi
call fcn.10016faf
ret

Function at 0x10017ebb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x10017eca
pop dword [ebp - 0x1c]
mov eax, 0xcfedab02
add eax, 0x4013d3c8
sub dword [ebp - 0x1c], eax
push 0x40
push 0x1000
push 0x3cda0
push 0
mov eax, 0xd13bf6e3
add eax, 0x3ec6fa79
add eax, dword [ebp - 0x1c]
call dword [eax]
mov ecx, 0x3a67
xor ebx, ebx
add ebx, eax
mov edi, 0x7986fe9c
sub edi, 0x6982529c
add edi, dword [ebp - 0x1c]
mov edx, 0x2ad17b04
add edx, 0xc8e81c67
mov dword [ebp - 0x10], 0xc211aba9
mov esi, dword [edi]
sub dword [ebp - 8], 0x279710e4
sub esi, edx
xor dword [ebp - 8], 0x14261c1a
mov dword [ebx], esi
xor dword [ebp - 4], 0x6d8904f1
add ebx, 0x69b2d4db
add ebx, 0x964d2b29
add edi, 4
loop 0x10017f25
add eax, 0xd2f03c5c
sub eax, 0xd2ef5fed
mov ebx, eax
add eax, 0xc44e372b
sub eax, 0xc44e3726
mov ecx, 0x10000000
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x40e083
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419408]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004094ef
mov dword [ebp - 0x14], eax
cmp dword [0x430b5c], esi
jne 0x40e176
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40e103
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40e256
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40e256
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40e256
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x430b5c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x430b60], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x430b64], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x430b6c], eax
test eax, eax
je 0x40e173
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x430b68], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40e19b
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40e18e
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40e1b0
push 4
pop eax
jmp 0x40e258
cmp dword [ebp - 0x14], esi
je 0x40e1b0
push dword [0x430b5c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40e195
mov eax, dword [0x430b68]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40e20e
cmp dword [0x430b6c], edi
je 0x40e20e
push eax
call ebx
push dword [0x430b6c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40e20e
test eax, eax
je 0x40e20e
call ecx
test eax, eax
je 0x40e203
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40e203
test byte [ebp - 8], 1
jne 0x40e20e
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40e23e
mov eax, dword [0x430b60]
cmp eax, edi
je 0x40e23b
push eax
call ebx
test eax, eax
je 0x40e23b
call eax
mov esi, eax
test esi, esi
je 0x40e23b
mov eax, dword [0x430b64]
cmp eax, edi
je 0x40e23b
push eax
call ebx
test eax, eax
je 0x40e23b
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x430b5c]
call ebx
test eax, eax
je 0x40e256
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40e258
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004040ec
mov esp, ebp
pop ebp
ret
Function at 0x10011b90
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0xcc]
mov ecx, 0x33
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov byte [eax], 0
mov eax, 4
shl eax, 0
mov ecx, dword [ebp - 8]
mov dword [ecx + eax + 0x14], 0
mov edx, 4
imul edx, edx, 0
mov eax, dword [ebp - 8]
mov dword [eax + edx + 0x14], 0
mov eax, 4
imul eax, eax, 0
mov ecx, dword [ebp - 8]
mov dword [ecx + eax + 4], 0x67452301
mov eax, 4
shl eax, 0
mov ecx, dword [ebp - 8]
mov dword [ecx + eax + 4], 0xefcdab89
mov eax, 4
shl eax, 1
mov ecx, dword [ebp - 8]
mov dword [ecx + eax + 4], 0x98badcfe
mov eax, 4
imul eax, eax, 3
mov ecx, dword [ebp - 8]
mov dword [ecx + eax + 4], 0x10325476
mov ecx, dword [ebp + 8]
call fcn.100115a0
push eax
mov ecx, dword [ebp + 8]
call fcn.10002430
push eax
mov ecx, dword [ebp - 8]
call fcn.100120e0
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
add esp, 0xcc
cmp ebp, esp
call fcn.10071a2b
mov esp, ebp
pop ebp
ret 4
Function at 0x100120e0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf4
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0xf4]
mov ecx, 0x3d
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov byte [eax], 0
mov eax, 4
imul eax, eax, 0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax + 0x14]
shr edx, 3
and edx, 0x3f
mov dword [ebp - 0x20], edx
mov eax, 4
imul eax, eax, 0
mov ecx, dword [ebp + 0xc]
shl ecx, 3
mov edx, dword [ebp - 8]
mov eax, dword [edx + eax + 0x14]
add eax, ecx
mov dword [ebp - 0xf4], eax
mov ecx, 4
imul ecx, ecx, 0
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xf4]
mov dword [edx + ecx + 0x14], eax
mov ecx, dword [ebp + 0xc]
shl ecx, 3
cmp dword [ebp - 0xf4], ecx
jae 0x10012182
mov eax, 4
shl eax, 0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax + 0x14]
add edx, 1
mov eax, 4
shl eax, 0
mov ecx, dword [ebp - 8]
mov dword [ecx + eax + 0x14], edx
mov eax, 4
shl eax, 0
mov ecx, dword [ebp + 0xc]
shr ecx, 0x1d
mov edx, dword [ebp - 8]
add ecx, dword [edx + eax + 0x14]
mov eax, 4
shl eax, 0
mov edx, dword [ebp - 8]
mov dword [edx + eax + 0x14], ecx
mov eax, 0x40
sub eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x2c]
jb 0x10012219
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 8]
lea ecx, [eax + edx + 0x1c]
push ecx
call fcn.10070bf0
add esp, 0xc
mov eax, dword [ebp - 8]
add eax, 0x1c
push eax
mov ecx, dword [ebp - 8]
call fcn.10012450
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], eax
jmp 0x100121f4
mov eax, dword [ebp - 0x14]
add eax, 0x40
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
add eax, 0x3f
cmp eax, dword [ebp + 0xc]
jae 0x10012210
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 8]
call fcn.10012450
jmp 0x100121eb
mov dword [ebp - 0x20], 0
jmp 0x10012220
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 8]
lea ecx, [eax + edx + 0x1c]
push ecx
call fcn.10070bf0
add esp, 0xc
pop edi
pop esi
pop ebx
add esp, 0xf4
cmp ebp, esp
call fcn.10071a2b
mov esp, ebp
pop ebp
ret 8
Function at 0x10021350
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x31c
push ebx
push esi
push edi
lea edi, [ebp - 0x31c]
mov ecx, 0xc7
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x100ac108]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x240], 0x22c
push 0x228
push 0
lea eax, [ebp - 0x23c]
push eax
call fcn.10072170
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x24c], eax
mov dword [ebp - 0x258], 0
cmp dword [ebp - 0x24c], 0xffffffff
je 0x10021425
lea eax, [ebp - 0x240]
push eax
mov ecx, dword [ebp - 0x24c]
push ecx
call sub.KERNEL32.dll_Process32FirstW
mov dword [ebp - 0x258], eax
cmp dword [ebp - 0x258], 0
je 0x10021425
mov ecx, dword [ebp + 8]
call fcn.10010030
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.10075a25
add esp, 8
test eax, eax
jne 0x1002140a
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0xc], eax
jmp 0x10021425
lea eax, [ebp - 0x240]
push eax
mov ecx, dword [ebp - 0x24c]
push ecx
call sub.KERNEL32.dll_Process32NextW
mov dword [ebp - 0x258], eax
jmp 0x100213da
mov esi, esp
mov eax, dword [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.10071a2b
mov eax, dword [ebp - 0xc]
push edx
mov ecx, ebp
push eax
lea edx, [0x10021470]
call fcn.100719d5
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10071a4e
add esp, 0x31c
cmp ebp, esp
call fcn.10071a2b
mov esp, ebp
pop ebp
ret

Function at 0x10023190
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x100ac108]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x100231e0
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x100231da
shr eax, 8
cmp al, 2
jne 0x100231da
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10071a4e
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 2
call fcn.10071a4e
mov esp, ebp
pop ebp
ret
Function at 0x1002f7d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x1002f803
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
pop ebp
ret
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
xor eax, eax
pop ebp
ret

Function at 0x1002f940
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [esi + 0x1e0]
push edi
xor edi, edi
test ecx, ecx
je 0x1002f966
mov edx, dword [esi + 0x16c]
push edx
mov edx, dword [ebp + 8]
push ebx
push edx
push eax
push esi
call ecx
add esp, 0x14
pop edi
pop ebp
ret
test eax, eax
js 0x1002f99d
cmp eax, 2
jg 0x1002f99d
mov ecx, dword [esi + 0x168]
push ecx
push 1
lea edx, [eax + eax*2 + 0x10095920]
push 2
push edx
call fcn.10073301
mov eax, dword [esi + 0x168]
mov ecx, dword [ebp + 8]
push eax
push 1
push ebx
push ecx
call fcn.10073301
add esp, 0x20
mov eax, edi
pop edi
pop ebp
ret

Function at 0x1002ff10
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebx + 0x330]
mov ecx, dword [ebx + eax*4 + 0x1a8]
push esi
lea esi, [eax + 0x1d]
shl esi, 4
add esi, ebx
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [edx + 0x40], 3
mov dword [ebp - 4], ecx
je 0x1002ffbe
cmp dword [ebx + eax*4 + 0x1c0], 0x1002fcb0
jne 0x1002ffbe
cmp dword [esi], 0
je 0x1002ff54
test edi, edi
je 0x1002ffbe
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ecx
call fcn.10023620
add esp, 0x14
cmp eax, 0xffffffff
je 0x1002ffbe
test al, 1
je 0x1002ffbe
cmp dword [esi], 0
jne 0x1002ff9b
mov eax, dword [ebx]
mov eax, dword [eax + 0x4f8]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x100ab508]
mov edi, dword [esi + 4]
xor ecx, ecx
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
cmp eax, ecx
je 0x1002ffbb
mov ecx, dword [esi]
add ecx, dword [esi + 8]
mov edx, dword [ebp - 4]
push 0
push edi
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x1002ffbe
add dword [esi + 8], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 4], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret