joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5833d8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5834ae
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403aa8
lea eax, [ebp - 8]
call fcn.00403e5c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00403e50
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x583498
mov eax, ebx
call fcn.004026a8
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x583491
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00403e50
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x58347b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x5834c0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x58347b
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x583498
mov eax, dword [ebp - 0x10]
call fcn.004026c0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5834b5
lea eax, [ebp - 8]
call fcn.00403a10
ret

Function at 0x5850ec
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
push edi
or edi, 0xffffffff
cmp edx, 0x40
jl 0x585145
mov ecx, eax
cmp word [ecx], 0x5a4d
jne 0x585145
mov ecx, eax
mov esi, dword [ecx + 0x3c]
mov ebx, esi
add ebx, 0x78
cmp edx, ebx
jl 0x585145
add eax, esi
mov ecx, dword [eax]
mov edx, ecx
and edx, 0xffff
cmp edx, 0x454e
jne 0x585129
mov edi, 0xca
jmp 0x585145
cmp edx, 0x454c
jne 0x585138
mov edi, 0xc9
jmp 0x585145
cmp ecx, 0x4550
jne 0x585145
mov edi, 0xc8
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x59c530
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x59c60c
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebx + 0xc], eax
mov byte [ebx + 0x10], 0
mov eax, dword [ebp - 4]
mov dword [ebx], eax
mov eax, dword [0x5c637c]
mov eax, dword [eax + 0x34]
mov dword [ebx + 0x24], eax
mov eax, dword [0x5c637c]
mov eax, dword [eax + 0x38]
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x50], 0x40
mov dword [ebx + 0x14], esi
mov dword [ebx + 0x18], edi
mov ecx, dword [ebx + 0x50]
mov eax, esi
cdq
idiv ecx
imul ecx
add eax, ecx
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x20], edi
xor eax, eax
mov dword [ebx + 0x30], eax
mov eax, dword [ebx + 0x38]
dec eax
mov dword [ebx + 0x34], eax
xor eax, eax
mov dword [ebx + 0x40], eax
xor eax, eax
mov dword [ebx + 0x44], eax
xor eax, eax
mov dword [ebx + 0x48], eax
xor eax, eax
mov dword [ebx + 0x4c], eax
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x50]
cdq
idiv ecx
imul ecx
add eax, ecx
mov dword [ebx + 0x3c], eax
xor eax, eax
mov dword [ebx + 0x58], eax
xor eax, eax
mov dword [ebx + 0x54], eax
mov byte [ebx + 0x5c], 1
mov edx, ebx
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.0058d478
xor eax, eax
mov dword [ebx + 0x48], eax
mov eax, dword [ebx + 0x38]
dec eax
imul dword [ebx + 0x50]
dec eax
mov dword [ebx + 0x4c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59c613
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dl, 1
call fcn.00422080
ret

Function at 0x59efec
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
xor ebx, ebx
push ebp
push 0x59f163
push dword fs:[ebx]
mov dword fs:[ebx], esp
push ecx
push 0
push 0
push edx
push 0
push eax
call sub.shell32.dll_ShellExecuteA
cmp eax, 0x20
ja case.0x59f01d.0
mov al, byte [eax + 0x59f024]
jmp dword [eax*4 + 0x59f045]
lea eax, [ebp - 4]
mov edx, 0x59f178
call fcn.00403aa8
jmp 0x59f134
lea eax, [ebp - 4]
mov edx, 0x59f1a4
call fcn.00403aa8
jmp 0x59f134
lea eax, [ebp - 4]
mov edx, 0x59f1d0
call fcn.00403aa8
jmp 0x59f134
lea eax, [ebp - 4]
mov edx, 0x59f21c
call fcn.00403aa8
jmp 0x59f134
lea eax, [ebp - 4]
mov edx, 0x59f260
call fcn.00403aa8
jmp 0x59f134
lea eax, [ebp - 4]
mov edx, 0x59f29c
call fcn.00403aa8
jmp 0x59f134
lea eax, [ebp - 4]
mov edx, 0x59f308
call fcn.00403aa8
jmp 0x59f134
lea eax, [ebp - 4]
mov edx, 0x59f32c
call fcn.00403aa8
jmp 0x59f134
lea eax, [ebp - 4]
mov edx, 0x59f380
call fcn.00403aa8
jmp 0x59f134
lea eax, [ebp - 4]
mov edx, 0x59f3bc
call fcn.00403aa8
jmp 0x59f134
lea eax, [ebp - 4]
mov edx, 0x59f40c
call fcn.00403aa8
jmp 0x59f134
lea eax, [ebp - 4]
mov edx, 0x59f44c
call fcn.00403aa8
mov ax, word [0x59f46c]
push eax
mov edx, dword [0x5c69c8]
mov edx, dword [edx]
mov cl, 1
mov eax, dword [ebp - 4]
call fcn.00449a38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59f16a
lea eax, [ebp - 4]
call fcn.00403a10
ret
Function at 0x5a11cc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0xc], eax
push eax
push edx
push ecx
push ebx
jmp 0x5a11f9
mov ecx, 0x8b1ceb07
mov eax, 0x5a11e9
mov edx, dword [eax]
sub edx, ecx
mov dword [ebp - 4], edx
add eax, 4
mov ebx, dword [eax]
sub ebx, ecx
sub ebx, edx
dec ebx
mov dword [ebp - 8], ebx
add eax, 4
mov ebx, dword [eax]
sub ebx, ecx
mov dword [ebp - 0xc], ebx
pop ebx
pop ecx
pop edx
pop eax
push 0x40
push 0x1000
mov eax, dword [ebp - 8]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 0x10], eax
push 0x40
push 0x1000
mov eax, dword [ebp - 8]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x5a136b
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, dword [ebp - 0x10]
mov eax, ebx
xor ecx, ecx
mov edx, dword [ebp - 8]
call fcn.00402b14
mov esi, dword [ebp - 0x14]
mov eax, esi
xor ecx, ecx
mov edx, dword [ebp - 8]
call fcn.00402b14
mov edx, ebx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.004027e0
mov edx, esi
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
call fcn.004027e0
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
call fcn.005a299c
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.0040704c
test al, al
jne 0x5a133d
mov eax, dword [0x5c6438]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x5c6674]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x5c6b6c]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x5c69b8]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x5c615c]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x5c6434]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x5c6324]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x5c6470]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x5c6628]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x5c6c88]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x5c61f0]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x5c64fc]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x5c6a60]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x5c6358]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x5c6370]
xor edx, edx
mov dword [eax], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a1372
push 0x8000
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_VirtualFree_1
push 0x8000
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_VirtualFree_1
ret
Function at 0x5a299c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
pushal
mov ecx, edx
dec ecx
test ecx, ecx
jl 0x5a29fc
inc ecx
mov dword [ebp - 4], 0x136c9856
mov dword [ebp - 8], 0x9abfb3b6
mov dword [ebp - 0xc], 0x7f6a0dbb
mov esi, eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
rol eax, 7
rol edx, 0x1b
xor eax, edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp - 0xc]
xor eax, ebx
push ecx
mov ecx, eax
rol ebx, cl
pop ecx
ror eax, 0xf
xor edx, eax
xor edx, ebx
push ecx
mov ecx, edx
ror ebx, cl
pop ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], edx
mov ebx, dword [ebp - 4]
xor bl, byte [esi]
mov byte [esi], bl
inc esi
dec ecx
jne 0x5a29c2
popal
mov esp, ebp
pop ebp
ret

Function at 0x5a39d8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe0
mov ebx, edx
mov edi, 0x5cd028
lea edx, [esp + 0x10]
push edx
push eax
call sub.user32.dll_GetWindowRect
mov eax, dword [esp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], eax
lea eax, [esp + 8]
push eax
mov eax, dword [0x5ccfac]
push eax
call sub.user32.dll_ScreenToClient
mov eax, dword [esp + 8]
sub eax, 2
mov edx, dword [esp + 0xc]
sub edx, 2
mov ecx, dword [esp + 0x18]
sub ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x1c]
sub esi, dword [esp + 0x14]
test bl, bl
je 0x5a3ab0
mov ebp, ecx
sar ebp, 1
jns 0x5a3a3c
adc ebp, 0
add ebp, eax
mov dword [esp], ebp
mov ebp, esi
sar ebp, 1
jns 0x5a3a4a
adc ebp, 0
add ebp, edx
mov dword [esp + 4], ebp
mov dword [edi + 8], eax
mov dword [edi + 0xc], edx
lea ebp, [ecx + eax]
mov dword [edi + 0x20], ebp
mov dword [edi + 0x24], edx
mov dword [edi + 0x38], eax
lea ebp, [esi + edx]
mov dword [edi + 0x3c], ebp
lea ebp, [ecx + eax]
mov dword [edi + 0x50], ebp
lea ebp, [esi + edx]
mov dword [edi + 0x54], ebp
mov ebp, dword [esp]
mov dword [edi + 0x68], ebp
mov dword [edi + 0x6c], edx
mov ebp, dword [esp]
mov dword [edi + 0x80], ebp
add esi, edx
mov dword [edi + 0x84], esi
mov dword [edi + 0x98], eax
mov edx, dword [esp + 4]
mov dword [edi + 0x9c], edx
add ecx, eax
mov dword [edi + 0xb0], ecx
mov eax, dword [esp + 4]
mov dword [edi + 0xb4], eax
xor ebp, ebp
push 0
lea esi, [ebp + ebp*2]
mov eax, dword [edi + esi*8 + 0x14]
push eax
mov eax, dword [edi + esi*8 + 0x10]
push eax
mov eax, dword [edi + esi*8 + 0xc]
push eax
mov eax, dword [edi + esi*8 + 8]
push eax
mov eax, dword [edi + esi*8]
push eax
call sub.user32.dll_MoveWindow
test bl, bl
je 0x5a3ae6
push 5
mov eax, dword [edi + esi*8]
push eax
call sub.user32.dll_ShowWindow
jmp 0x5a3af1
push 0
mov eax, dword [edi + esi*8]
push eax
call sub.user32.dll_ShowWindow
inc ebp
cmp ebp, 8
jl 0x5a3ab2
add esp, 0x20
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x5a46e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403e40
mov eax, dword [ebp - 8]
call fcn.00403e40
xor eax, eax
push ebp
push 0x5a47ba
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x55
call fcn.004026a8
mov ebx, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x54
call fcn.00402b14
mov dword [ebx], esi
mov eax, dword [ebp + 0x30]
mov dword [ebx + 4], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebx + 8], eax
mov eax, dword [ebp + 0x28]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp + 0x24]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp + 0x20]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp + 0x18]
mov dword [ebx + 0x20], eax
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x38], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x30], eax
mov al, byte [ebp + 8]
mov byte [ebx + 0x34], al
mov edx, ebx
mov eax, dword [0x5ccfc4]
call fcn.0040dff4
mov edx, dword [ebp - 8]
mov eax, dword [0x5ccfc8]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov edx, dword [ebp - 4]
mov eax, dword [0x5ccfcc]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov edx, dword [ebp - 4]
mov eax, dword [0x5ccfd0]
mov ecx, dword [eax]
call dword [ecx + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a47c1
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403a34
ret
Function at 0x5aa7cc
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403e40
mov eax, dword [ebp - 8]
call fcn.00403e40
mov ebx, 0x5cd2a8
xor eax, eax
push ebp
push 0x5aaba7
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x40d128]
call fcn.00402e3c
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebx], 0x46415448
mov dword [ebx + 4], 2
mov dword [ebx + 8], 0xffffffff
mov dword [ebx + 0xc], 0xffffffff
mov dword [ebx + 0x10], 0xffffffff
mov dword [ebx + 0x14], 0xffffffff
mov dword [ebx + 0x18], 0xffffffff
mov dword [ebx + 0x1c], 0xffffffff
mov dword [ebx + 0x20], 0xffffffff
mov dword [ebx + 0x24], 0xffffffff
mov dword [ebx + 0x28], 0xffffffff
xor eax, eax
mov dword [ebx + 0x2c], eax
xor eax, eax
mov dword [ebx + 0x30], eax
xor eax, eax
mov dword [ebx + 0x34], eax
xor eax, eax
mov dword [ebx + 0x38], eax
xor eax, eax
mov dword [ebx + 0x3c], eax
xor eax, eax
push ebp
push 0x5aab85
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, ebx
mov ecx, 0x40
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 8]
xor eax, eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 8], 0
je 0x5aa91b
mov eax, dword [ebp - 0x10]
call fcn.00410774
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 8]
call fcn.00403c8c
add eax, 2
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
call fcn.004026a8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x20]
mov eax, ebx
xor ecx, ecx
mov edx, dword [ebp - 0x28]
call fcn.00402b14
xor eax, eax
push ebp
push 0x5aa914
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x20]
call fcn.00407bf0
mov edx, ebx
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5aa91b
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
call fcn.004026c0
ret
mov eax, dword [ebp - 0x10]
call fcn.00410774
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x18]
mov edx, dword [eax]
call dword [edx + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
shl eax, 2
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
call fcn.004026a8
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x5aa9a8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x1c]
mov cl, 0xff
mov edx, dword [ebp - 0x18]
call fcn.00402b14
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x14]
dec ebx
test ebx, ebx
jl 0x5aa981
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [ebp - 0xc]
call fcn.0040e1ac
mov dword [esi], eax
add esi, 4
inc edi
dec ebx
jne 0x5aa96e
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5aa9af
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
call fcn.004026c0
ret
Function at 0x1001295
Capabilities:
Initialize winsock library
Terminate process

Disassembly:
push 0x2710
push 2
call fcn.01001f1f
pop ecx
pop ecx
push 2
call dword [sym.imp.msvcrt.dll_exit]
int3
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push esi
push dword [ebp + 8]
call fcn.01001fd8
push 0x1003060
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, 0xffffffff
jne 0x10012d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x2711
call fcn.01001f95
cmp dword [ebp + 8], 2
jl 0x1001342
mov ebx, dword [esi + 4]
inc dword [0x100300c]
and dword [0x1003204], 0
mov edi, 0x1001158
jmp 0x1001325
sub eax, 0x3f
je 0x1001342
sub eax, 0x2d
je 0x1001319
dec eax
dec eax
jne 0x1001325
push 0
call dword [sym.imp.msvcrt.dll__close]
push 0
push 0x1001154
call dword [sym.imp.msvcrt.dll__open]
add esp, 0xc
jmp 0x1001325
mov eax, dword [0x1003208]
test eax, eax
mov dword [ebp - 4], eax
je 0x1001342
push edi
push esi
push dword [ebp + 8]
call fcn.01001fe0
cmp eax, 0xffffffff
jne 0x10012f1
mov eax, dword [0x100300c]
cmp dword [ebp + 8], eax
jle 0x1001342
test ebx, ebx
jne 0x1001347
jmp 0x1001279
lea eax, [esi + eax*4]
push eax
push 0
push 1
push 0x100114c
push dword [ebp - 4]
push ebx
push dword [esi]
call fcn.01001c19
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x100136b
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1001160
call fcn.01001520
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x10013a6
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10013a6
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x10013be
cmp eax, 0x20b
je 0x10013ab
mov dword [ebp - 0x1c], edi
jmp 0x10013d2
cmp dword [ecx + 0x84], 0xe
jbe 0x10013a6
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x10013cc
cmp dword [ecx + 0x74], 0xe
jbe 0x10013a6
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x10031f0], 0xffffffff
or dword [0x10031f4], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x100302c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1003028]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x10031f8], eax
call fcn.01001518
cmp dword [section..data], edi
jne 0x100142d
push fcn.01001518
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01001501
push 0x1001124
push 0x1001120
call sub.msvcrt.dll__initterm
mov eax, dword [0x1003024]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1003020]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x34], eax
push 0x100111c
push 0x1001114
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.01001295
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x10014a4
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x10014d9
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0100155b
ret
Function at 0x1001752
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb18
mov eax, dword [0x1003018]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, dword [sym.imp.WS2_32.dll_recv]
xor ecx, ecx
xor esi, esi
mov dword [ebp - 0x808], ecx
mov dword [ebp - 0x80c], 2
inc esi
mov ebx, 0x800
jmp 0x1001792
xor ecx, ecx
cmp dword [ebp - 0x808], ecx
mov dword [ebp - 0x910], ecx
mov dword [ebp - 0xb18], ecx
mov dword [ebp - 0xa14], ecx
jne 0x10017c9
mov eax, dword [0x1003004]
mov dword [ebp - 0x90c], eax
mov dword [ebp - 0x910], esi
mov dword [ebp - 0xa10], eax
mov dword [ebp - 0xa14], esi
cmp dword [ebp - 0x80c], 2
jne 0x100184b
cmp dword [ebp - 0x910], ecx
mov eax, dword [0x1003008]
jbe 0x10017f1
cmp dword [ebp + ecx*4 - 0x90c], eax
je 0x10017f1
inc ecx
cmp ecx, dword [ebp - 0x910]
jb 0x10017df
cmp ecx, dword [ebp - 0x910]
jne 0x100180f
cmp dword [ebp - 0x910], 0x40
jae 0x100180f
mov dword [ebp + ecx*4 - 0x90c], eax
inc dword [ebp - 0x910]
xor ecx, ecx
cmp dword [ebp - 0xa14], ecx
jbe 0x100182b
cmp dword [ebp + ecx*4 - 0xa10], eax
je 0x100182b
inc ecx
cmp ecx, dword [ebp - 0xa14]
jb 0x1001819
cmp ecx, dword [ebp - 0xa14]
jne 0x1001849
cmp dword [ebp - 0xa14], 0x40
jae 0x1001849
mov dword [ebp + ecx*4 - 0xa10], eax
inc dword [ebp - 0xa14]
xor ecx, ecx
push ecx
lea eax, [ebp - 0xa14]
push eax
lea eax, [ebp - 0xb18]
push eax
lea eax, [ebp - 0x910]
push eax
push 2
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jl 0x1001968
lea eax, [ebp - 0x910]
push eax
push dword [0x1003004]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10018b1
push 0
push ebx
lea eax, [ebp - 0x804]
push eax
push dword [0x1003004]
call edi
cmp eax, 0xffffffff
je 0x100197c
test eax, eax
je 0x1001919
push eax
lea eax, [ebp - 0x804]
push eax
push esi
jmp 0x10018f0
lea eax, [ebp - 0x910]
push eax
push dword [0x1003008]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1001903
push 0
push ebx
lea eax, [ebp - 0x804]
push eax
push dword [0x1003008]
call edi
cmp eax, 0xffffffff
je 0x100197c
test eax, eax
je 0x10018fb
push eax
lea eax, [ebp - 0x804]
push eax
push 2
call dword [sym.imp.msvcrt.dll__write]
add esp, 0xc
jmp 0x100194f
cmp dword [ebp + 8], 0
jne 0x100194f
jmp 0x1001949
lea eax, [ebp - 0xa14]
push eax
push dword [0x1003004]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1001927
cmp dword [ebp + 8], 0
mov dword [ebp - 0x808], esi
je 0x100194f
jmp 0x1001949
lea eax, [ebp - 0xa14]
push eax
push dword [0x1003008]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100194f
cmp dword [ebp + 8], 0
je 0x1001949
mov dword [ebp - 0x808], esi
mov dword [ebp - 0x80c], esi
mov eax, dword [ebp - 0x80c]
cmp dword [ebp - 0x808], eax
jne 0x1001790
push 0
call fcn.01001589
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x3ef
call fcn.01001f95
push esi
jmp 0x1001963
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x3f0
jmp 0x1001974
Function at 0x402ec1
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4a840b
call fcn.004a7044
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
or dword [edi + 8], 0xffffffff
or dword [edi + 4], 0xffffffff
and dword [edi + 0xc], 0
and dword [ebp - 4], 0
lea ebx, [edi + 0x14]
mov esi, ebx
mov dword [edi], vtable.TiXmlAttribute.0
call fcn.00402f9b
lea esi, [edi + 0x30]
call fcn.00402f9b
push dword [ebp + 0xc]
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.00402f2f
push dword [ebp + 0x10]
mov ecx, esi
call fcn.00402f2f
mov ecx, dword [ebp - 0xc]
xor eax, eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x50], eax
mov dword [edi + 0x4c], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc

Function at 0x405f53
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 0x405f6a
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x405f9f
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x405f9b
cmp edi, eax
jae 0x405f9f
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x405f8d
cmp edi, eax
jb 0x405fa3
xor eax, eax
jmp 0x405fad
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x406193
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebx]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ecx
je 0x406221
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
push ecx
lea edx, [ebp - 8]
push edx
push ecx
push dword [ebp + 8]
push eax
call edi
cmp dword [ebp - 8], 1
je 0x4061ca
cmp dword [ebp - 8], 2
jne 0x406220
push esi
mov esi, dword [ebp + 0xc]
call fcn.00405d6f
mov eax, dword [ebp - 4]
shr eax, 1
inc eax
push eax
call fcn.00405c04
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [ebx]
call edi
test eax, eax
jne 0x406208
mov eax, dword [ebp - 4]
shr eax, 1
and word [esi + eax*2], 0
mov dword [ebp - 0xc], 1
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x406218
push eax
call fcn.0047a28a
pop ecx
mov edx, esi
call fcn.00405be3
pop esi
pop edi
mov eax, dword [ebp - 0xc]
leave
ret 8