joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bcfde
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x511938]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4bd024
cmp word [ebx], dx
jne 0x4bd024
or byte [eax + edi + 0x28], 4
jmp 0x4bd029
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4bd18c
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4bd16c
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4bd06a
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4bd0a0
cmp eax, edx
jae 0x4bd0ae
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x4bd045
jmp 0x4bd18c
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4bd167
cmp dword [ebp - 0x18], 0
je 0x4bd167
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x511938]
test byte [eax + edi + 0x28], 0x48
je 0x4bd13d
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4bd101
mov word [esi], cx
jmp 0x4bd138
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x511938]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x511938]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x511938]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4bd18c
pop eax
cmp word [ebp - 4], ax
jne 0x4bd14d
cmp esi, ebx
jne 0x4bd14d
mov word [esi], ax
jmp 0x4bd189
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004bda17
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4bd18c
push 0xd
pop eax
jmp 0x4bd148
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x511938]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4bd186
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4bd18c
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4bf93a
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4ff080]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4bf985
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004bfad5
test al, al
jne 0x4bf97f
sub edx, 2
cmp edx, edi
jne 0x4bf965
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4bf9a7
lea eax, [edi + 2]
cmp edx, eax
je 0x4bf9a7
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004bf886
add esp, 0x10
jmp 0x4bfaa1
push esi
lea ecx, [ebp - 0x255]
call fcn.004bfad5
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4bf9ea
push dword [ebp - 0x25c]
jmp 0x4bf997
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4bfa27
cmp word [ebp - 0x226], 0
je 0x4bfa48
cmp word [ebp - 0x226], ax
jne 0x4bfa27
cmp word [ebp - 0x224], 0
je 0x4bfa48
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004bf886
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4bfa94
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4bfa01
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4bfa7c
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4bfaa1
push 0x4bf6b6
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004c3b20
add esp, 0x10
jmp 0x4bfa71
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a9b96
leave
ret

Function at 0x4c03b7
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4c03c8
pop esi
ret
push ebx
push edi
push esi
call fcn.004c0380
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004b9de7
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4c03f0
push ebx
push esi
push edi
call fcn.004ac080
add esp, 0xc
push 0
call fcn.004b9556
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4c07c0
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004c0405
Function at 0x4c57a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4c57cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4c57cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4011f9
Capabilities:
Create thread

Disassembly:
push edi
xor edi, edi
push edi
push eax
push edi
push edi
push edi
mov dword [0x42dde0], eax
mov eax, closesocket
push eax
push edi
push eax
push 0xcf0000
push 0x42dd18
push 0x42dc50
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
jne 0x40122a
pop edi
ret
push ebx
push esi
push 0x42690c
push 0x40
pop esi
push esi
push 0x42c454
call fcn.00410e1c
push 0x426928
push esi
push 0x42c954
call fcn.00410e1c
push 0x426934
push esi
push 0x42c4d4
call fcn.00410e1c
push 0x426950
push esi
push 0x42c9d4
call fcn.00410e1c
push 0x42696c
push esi
push 0x42c554
call fcn.00410e1c
push 0x426984
push esi
push 0x42ca54
call fcn.00410e1c
add esp, 0x48
push 0x426994
push esi
push 0x42c5d4
call fcn.00410e1c
push 0x4269ac
push esi
push 0x42cad4
call fcn.00410e1c
push 0x4269c0
push esi
push 0x42c654
call fcn.00410e1c
push 0x4269d8
push esi
push 0x42cb54
call fcn.00410e1c
push 0x4269ec
push esi
push 0x42c6d4
call fcn.00410e1c
push 0x426a08
push esi
push 0x42cbd4
call fcn.00410e1c
add esp, 0x48
push 0x426a18
push esi
push 0x42c754
call fcn.00410e1c
mov ebx, 0x426a38
push ebx
push esi
push 0x42cc54
call fcn.00410e1c
push 0x426a44
push esi
push 0x42c7d4
call fcn.00410e1c
push ebx
push esi
push 0x42ccd4
call fcn.00410e1c
push 0x426a60
push esi
push 0x42c854
call fcn.00410e1c
push 0x426a7c
push esi
push 0x42cd54
call fcn.00410e1c
add esp, 0x48
mov dword [0x42c450], 9
push 0x100
push edi
push 0x44dff0
call fcn.00412aa0
add esp, 0xc
push 2
xor eax, eax
pop edx
movzx ecx, word [eax + 0x426a88]
mov word [eax + 0x44dff4], cx
add eax, edx
cmp cx, di
jne 0x401377
xor eax, eax
movzx ecx, word [eax + 0x426a8c]
mov word [eax + 0x44e024], cx
add eax, edx
cmp cx, di
jne 0x40138e
xor eax, eax
movzx ecx, word [eax + 0x426a98]
mov word [eax + 0x44dff8], cx
add eax, edx
cmp cx, di
jne 0x4013a5
mov dword [0x44e020], 0x51
xor eax, eax
movzx ecx, word [eax + 0x426ab4]
mov word [eax + 0x44e042], cx
add eax, edx
cmp cx, di
jne 0x4013c6
mov dword [0x44e0dc], 5
mov dword [0x44e0e4], 0x32
call fcn.0040249e
mov dword [0x44e0f0], eax
mov dword [0x42ce54], eax
call fcn.0040253a
mov dword [0x42ce58], eax
call fcn.0040236d
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push edi
push edi
push edi
push 0x401517
push edi
push edi
mov dword [0x46eaf2], 0x401e8e
call esi
push edi
push edi
push edi
push 0x40185b
push edi
push edi
call esi
pop esi
xor eax, eax
pop ebx
inc eax
pop edi
ret
Function at 0x402027
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x42b094]
xor eax, ebp
mov dword [ebp + 0x194], eax
push esi
xor eax, eax
xor esi, esi
push 0x206
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push esi
push eax
mov dword [ebp - 0x7c], esi
call fcn.00412aa0
add esp, 0xc
mov dword [ebp - 0x78], esi
cmp ebx, esi
je 0x4020d9
push edi
mov edi, 0x426bb8
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x402072
sub eax, edx
sar eax, 1
je 0x4020d8
lea eax, [ebp - 0x74]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.00410f0d
push 0x426bb0
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.004109b4
add esp, 0x18
cmp dword [ebp - 0x78], 0
je 0x4020d8
push dword [ebp - 0x78]
xor esi, esi
inc esi
push esi
push 0x200
push ebx
call fcn.0041122a
push dword [ebp - 0x78]
call fcn.00410c62
add esp, 0x14
mov dword [ebp - 0x7c], esi
pop edi
mov ecx, dword [ebp + 0x194]
mov eax, dword [ebp - 0x7c]
xor ecx, ebp
pop esi
call fcn.00410738
add ebp, 0x198
leave
ret

Function at 0x402266
Capabilities:
Delete file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push 0x426bb0
mov esi, 0x42dde8
lea eax, [ebp - 4]
push esi
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.004109b4
add esp, 0xc
cmp dword [ebp - 4], edi
je 0x402369
push ebx
push 2
push edi
push dword [ebp - 4]
call fcn.0041169f
push dword [ebp - 4]
call fcn.004118c1
mov edi, eax
push edi
call fcn.0041192f
push 0
push 0
push dword [ebp - 4]
mov ebx, eax
mov dword [ebp - 8], ebx
call fcn.0041169f
push dword [ebp - 4]
push edi
push 1
push ebx
call fcn.0041122a
add esp, 0x30
cmp edi, eax
jne 0x40234a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.004115e1
pop ecx
call fcn.004115f3
mov dword [ebp - 0xc], eax
fild dword [ebp - 0xc]
fmul qword [0x428d90]
fmul qword [0x428d88]
fadd qword [0x428d80]
call fcn.00413340
cmp edi, eax
jl 0x40234a
sub ebx, eax
push eax
add ebx, edi
call fcn.00402224
push dword [ebp - 4]
call fcn.00410c62
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x4268c4
lea eax, [ebp - 4]
push esi
push eax
call fcn.004109b4
add esp, 0xc
cmp dword [ebp - 4], 0
je 0x402368
push dword [ebp - 4]
push edi
push 1
push dword [ebp - 8]
call fcn.00410b69
add esp, 0x10
cmp dword [ebp - 4], 0
je 0x402359
push dword [ebp - 4]
call fcn.00410c62
pop ecx
cmp dword [ebp - 8], 0
je 0x402368
push dword [ebp - 8]
call fcn.0041072d
pop ecx
pop ebx
pop edi
pop esi
leave
ret
Function at 0x40236d
Capabilities:
Create thread
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x274
mov eax, dword [0x42b094]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push esi
push edi
xor eax, eax
push 0x62
mov word [esp + 0x214], ax
xor ebx, ebx
lea eax, [esp + 0x216]
push ebx
push eax
call fcn.00412aa0
add esp, 0xc
push 0x200
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.00412aa0
add esp, 0xc
lea edi, [esp + 0x10]
call fcn.004020f2
test eax, eax
je 0x402489
xor eax, eax
movzx ecx, word [esp + eax + 0x14]
mov word [eax + 0x44dff8], cx
inc eax
inc eax
cmp cx, bx
jne 0x4023cf
movzx eax, word [esp + 0x94]
mov dword [0x44e020], eax
xor eax, eax
movzx ecx, word [esp + eax + 0x96]
mov word [eax + 0x44e024], cx
inc eax
inc eax
cmp cx, bx
jne 0x4023f1
cmp dword [0x44e0f0], 3
mov edi, 0x104
mov esi, 0x42dde8
jne 0x402433
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x426bd4
push edi
push esi
call fcn.00410f0d
add esp, 0xc
jmp 0x40243b
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0x1b8]
push eax
push edi
push esi
call fcn.00410f0d
add esp, 0xc
push 0x426bd8
push edi
push esi
call fcn.00410f0d
add esp, 0xc
call fcn.00402266
push ebx
push ebx
push ebx
push 0x402171
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea edi, [esp + 0x210]
call fcn.00402196
mov eax, edi
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [esp + 0x27c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00410738
mov esp, ebp
pop ebp
ret

Function at 0x40249e
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x42b094]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push esi
push 0x118
xor esi, esi
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.00412aa0
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x402522
cmp dword [ebp - 0x7c], 5
mov eax, dword [ebp - 0x78]
jne 0x40250c
test eax, eax
jne 0x4024fb
cmp word [ebp + 0x94], 4
jb 0x402522
inc esi
cmp eax, 2
jne 0x402502
push eax
pop esi
jae 0x402509
cmp eax, 1
jne 0x402522
push 3
pop esi
cmp dword [ebp - 0x7c], 6
jne 0x402522
test eax, eax
jne 0x40251a
push 4
jmp 0x402521
cmp eax, 1
jne 0x402522
push 5
pop esi
mov ecx, dword [ebp + 0x9c]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00410738
add ebp, 0xa0
leave
ret
Function at 0x4025d6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x426b2c
mov esi, eax
push 0x83
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x402667
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 4]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov esi, edi
and esi, 0x1ff
neg esi
sbb esi, esi
mov dword [eax], edi
mov eax, edi
neg esi
shr eax, 9
add esi, eax
shl esi, 9
push esi
call fcn.0041192f
push esi
mov ebx, eax
push 0
push ebx
call fcn.00412aa0
push edi
push dword [ebp - 4]
push ebx
call fcn.00412470
add esp, 0x1c
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x402955
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x1b8]
sub esp, 0x238
mov eax, dword [0x42b094]
xor eax, ebp
mov dword [ebp + 0x1b4], eax
push ebx
push esi
xor ebx, ebx
push ebx
push 2
mov esi, ecx
mov dword [ebp - 0x80], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x7c], eax
cmp eax, 0xffffffff
je 0x4029f0
push edi
mov edi, 0x22c
push edi
lea eax, [ebp - 0x78]
push ebx
push eax
call fcn.00412aa0
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x7c]
mov dword [ebp - 0x78], edi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x4029db
xor edi, edi
cmp dword [esi], edi
jle 0x4029cf
lea ebx, [esi + 4]
lea eax, [ebp - 0x54]
push ebx
push eax
call fcn.00411b2e
pop ecx
pop ecx
test eax, eax
je 0x402a0a
inc edi
sub ebx, 0xffffff80
cmp edi, dword [esi]
jl 0x4029b7
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x7c]
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
je 0x4029ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ecx, dword [ebp + 0x1b4]
mov eax, dword [ebp - 0x80]
pop esi
xor ecx, ebp
pop ebx
call fcn.00410738
add ebp, 0x1b8
leave
ret
lea eax, [ebp - 0x54]
push eax
lea eax, [esi + 0xa14]
push 0x40
push eax
mov dword [ebp - 0x80], 1
mov dword [esi + 0xa0c], edi
call fcn.00410e1c
mov eax, dword [ebp - 0x70]
mov dword [esi + 0xa10], eax
mov eax, dword [esi + 0xa0c]
shl eax, 7
lea eax, [eax + esi + 0x504]
push eax
push 0x40
add esi, 0xa98
push esi
call fcn.00410e1c
add esp, 0x18
jmp 0x4029e6
Function at 0x402ca1
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
push edi
xor edi, edi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp dword [ebp + 8], ebx
je 0x402da1
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x402da1
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x402cca
sub eax, edx
sar eax, 1
cmp eax, 4
jb 0x402da1
push dword [ebp + 8]
push 1
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
mov dword [ebp - 8], edi
cmp edi, ebx
jne 0x402d0c
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov dword [ebp - 4], eax
call esi
jmp 0x402db0
push 4
push 0x3000
push 0x104
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
cmp esi, ebx
jne 0x402d35
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
mov dword [ebp - 4], eax
jmp 0x402db0
mov eax, dword [ebp + 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x402d3b
sub eax, edx
push ebx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0xc]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x402d26
push 0x426c08
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x402d26
push 0x426c18
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x402d26
push ebx
push ebx
push esi
push eax
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov edi, eax
cmp edi, ebx
je 0x402dc6
push 0x2710
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x402da5
or dword [ebp - 4], 0xffffffff
cmp edi, ebx
je 0x402db0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], ebx
pop edi
pop esi
pop ebx
je 0x402dc1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
leave
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
mov dword [ebp - 4], eax
jmp 0x402da5
Function at 0x403500
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403517
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x40354c
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x403548
cmp edi, eax
jae 0x40354c
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x40353a
cmp edi, eax
jb 0x403550
xor eax, eax
jmp 0x403559
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x403607
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
xor eax, eax
mov esi, 0x44e2d0
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
mov ebx, 0x10000
push ebx
xor eax, eax
push edi
push 0x44e2ee
mov word [0x44e2e0], ax
mov dword [0x44e2e2], edi
mov dword [0x44e2e6], 1
mov dword [0x44e2ea], edi
call fcn.00412aa0
push ebx
push edi
push 0x45e2f2
mov dword [0x45e2ee], edi
call fcn.00412aa0
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
add esp, 0x18
push edi
push edi
push esi
push 0x403574
push edi
push edi
mov dword [0x46eaf2], edi
call ebx
push edi
push edi
push esi
push 0x4035c9
push edi
push edi
call ebx
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x4038cc
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x794]
sub esp, 0x814
mov eax, dword [0x42b094]
xor eax, ebp
mov dword [ebp + 0x790], eax
mov eax, dword [ebp + 0x79c]
push edi
mov edi, ecx
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x7c], ecx
test eax, eax
je 0x4038fd
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x7c]
xor eax, eax
and dword [ebp - 0x80], eax
mov word [ecx], ax
cmp dword [esi], eax
je 0x403981
push ebx
call fcn.0041192f
push ebx
push edi
push eax
mov dword [ebp - 0x78], eax
call fcn.00412470
mov edi, dword [sym.imp.WS2_32.dll_send]
mov eax, ebx
shr eax, 0x18
mov byte [ebp - 0x74], al
mov eax, ebx
sar eax, 0x10
mov byte [ebp - 0x73], al
add esp, 0x10
mov eax, ebx
sar eax, 8
push 0
mov byte [ebp - 0x72], al
push 4
lea eax, [ebp - 0x74]
push eax
push dword [esi]
mov byte [ebp - 0x71], bl
call edi
push 0
push ebx
push dword [ebp - 0x78]
push dword [esi]
call edi
cmp eax, 0xffffffff
je 0x403969
cmp eax, ebx
jne 0x403969
mov dword [ebp - 0x80], 1
jmp 0x403981
mov edx, dword [ebp - 0x7c]
mov eax, 0x426c9c
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
test cx, cx
jne 0x403973
cmp dword [ebp - 0x78], 0
pop edi
je 0x403991
push dword [ebp - 0x78]
call fcn.0041072d
pop ecx
mov ecx, dword [ebp + 0x790]
mov eax, dword [ebp - 0x80]
xor ecx, ebp
call fcn.00410738
add ebp, 0x794
leave
ret 4
Function at 0x4039ab
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x79c]
sub esp, 0x81c
mov eax, dword [0x42b094]
xor eax, ebp
mov dword [ebp + 0x798], eax
mov eax, dword [ebp + 0x7a4]
push edi
lea edi, [ebp - 0x68]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x78], edi
test ecx, ecx
je 0x4039e2
mov dword [ebp - 0x78], ecx
mov edi, ecx
xor ecx, ecx
and dword [ebp - 0x74], ecx
mov word [edi], cx
mov eax, dword [eax]
test eax, eax
je 0x403af7
test edx, edx
je 0x403af7
push ecx
mov byte [ebp - 0x6c], cl
mov byte [ebp - 0x6b], cl
mov byte [ebp - 0x6a], cl
mov byte [ebp - 0x69], cl
push 4
lea ecx, [ebp - 0x6c]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x403a35
mov eax, 0x426cc0
sub edi, eax
movzx ecx, word [eax]
mov word [edi + eax], cx
inc eax
inc eax
test cx, cx
jne 0x403a22
jmp 0x403af7
test eax, eax
jne 0x403a45
mov dword [ebp - 0x74], 1
jmp 0x403af7
movzx eax, byte [ebp - 0x6b]
push ebx
movzx ebx, byte [ebp - 0x6c]
push dword [esi]
shl ebx, 8
add ebx, eax
movzx eax, byte [ebp - 0x6a]
shl ebx, 8
add ebx, eax
movzx eax, byte [ebp - 0x69]
shl ebx, 8
add ebx, eax
xor edi, edi
call fcn.0041192f
cmp dword [esi], edi
pop ecx
mov dword [ebp - 0x70], eax
jle 0x403aa1
cmp edi, ebx
jae 0x403aa1
mov eax, dword [esi]
sub eax, edi
push 0
push eax
mov eax, dword [ebp - 0x70]
add eax, edi
push eax
mov eax, dword [ebp - 0x80]
push dword [eax]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x403ab7
test eax, eax
je 0x403ab7
add edi, eax
cmp dword [esi], edi
jg 0x403a76
mov eax, dword [esi]
cmp eax, edi
jl 0x403ad1
push edi
push dword [ebp - 0x70]
push dword [ebp - 0x7c]
call fcn.00412470
mov dword [esi], edi
jmp 0x403add
mov edx, dword [ebp - 0x78]
mov eax, 0x426cc0
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
test cx, cx
jne 0x403ac1
jmp 0x403ae7
push eax
push dword [ebp - 0x70]
push dword [ebp - 0x7c]
call fcn.00412470
add esp, 0xc
mov dword [ebp - 0x74], 1
cmp dword [ebp - 0x70], 0
pop ebx
je 0x403af7
push dword [ebp - 0x70]
call fcn.0041072d
pop ecx
mov ecx, dword [ebp + 0x798]
mov eax, dword [ebp - 0x74]
xor ecx, ebp
pop edi
call fcn.00410738
add ebp, 0x79c
leave
ret 4