joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f7d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44194e
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x44e130]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [esi + 0xcc]
mov dword [ebp - 4], 2
call fcn.00435199
push dword [esi + 0xc0]
call fcn.00435199
push dword [esi + 0x9c]
call fcn.00435199
push dword [esi + 0x90]
call fcn.00435199
push dword [esi + 0x30]
call fcn.00435199
push dword [esi + 0x24]
call fcn.00435199
push dword [esi + 0x18]
call fcn.00435199
mov ecx, dword [esi + 0xc]
add esp, 0x1c
test ecx, ecx
je 0x41f854
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 8]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x41f865
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 4]
mov byte [ebp - 4], 0
test ecx, ecx
je 0x41f876
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi]
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x41f889
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4227a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x441ce9
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x44e130]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [ebp - 4], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
lea ecx, [edi + 0x24]
mov byte [ebp - 4], 1
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov word [edi + 0x20], 0
call fcn.00408f70
lea esi, [edi + 0x30]
mov byte [ebp - 4], 2
lea ecx, [esi + 0x18]
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0xffffffff
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.00408f70
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 3
call fcn.00408f70
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x422930
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x441da9
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x44e130]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov dword [ebx + 4], 0
lea ecx, [ebx + 0xc]
mov dword [ebp - 4], 0
mov dword [ebx], 0x444060
mov dword [ebx + 8], 0
call fcn.00408f70
lea edi, [ebx + 0x44]
mov dword [ebx + 0x30], 0
mov dword [edi], 0
lea esi, [ebx + 0x48]
push esi
call fcn.00408650
mov word [esi + 0x18], 0
mov dword [esi + 0x20], 1
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
push 0
push edi
mov byte [ebp - 4], 3
mov dword [ebx + 0x78], 0xffffffff
mov dword [ebx + 0x40], 0
call fcn.004087b0
test eax, eax
je 0x4229ee
push 0x44a160
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], 0x145ecb
call fcn.004351a7
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x423380
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x441fe8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x44e130]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push dword [ebp + 8]
lea ecx, [edi + 0x74]
call fcn.00409000
push 0
push 0x61
lea ecx, [edi + 0x68]
call fcn.0040ad80
push dword [ebp + 0xc]
call fcn.00408930
push 0xce4
lea eax, [ebp - 0x18]
push eax
call fcn.004219f0
push dword [eax]
mov dword [ebp - 4], 0
push dword [edi + 0x6c]
call fcn.0040e7c0
push dword [ebp - 0x18]
call fcn.00435199
add esp, 4
push 1
push dword [edi + 0x6c]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x432980
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x44e130]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
xor edx, edx
mov dword [ebp - 0x84], 0x420041
mov dword [ebp - 0x80], 0x440043
mov dword [ebp - 0x7c], 0x460045
mov dword [ebp - 0x78], 0x480047
mov dword [ebp - 0x74], 0x4a0049
mov dword [ebp - 0x70], 0x4c004b
mov dword [ebp - 0x6c], 0x4e004d
mov dword [ebp - 0x68], 0x50004f
mov dword [ebp - 0x64], 0x520051
mov dword [ebp - 0x60], 0x540053
mov dword [ebp - 0x5c], 0x560055
mov dword [ebp - 0x58], 0x580057
mov dword [ebp - 0x54], 0x5a0059
mov dword [ebp - 0x50], 0x620061
mov dword [ebp - 0x4c], 0x640063
mov dword [ebp - 0x48], 0x660065
mov dword [ebp - 0x44], 0x680067
mov dword [ebp - 0x40], 0x6a0069
mov dword [ebp - 0x3c], 0x6c006b
mov dword [ebp - 0x38], 0x6e006d
mov dword [ebp - 0x34], 0x70006f
mov dword [ebp - 0x30], 0x720071
mov dword [ebp - 0x2c], 0x740073
mov dword [ebp - 0x28], 0x760075
mov dword [ebp - 0x24], 0x780077
mov dword [ebp - 0x20], 0x7a0079
mov dword [ebp - 0x1c], 0x310030
mov dword [ebp - 0x18], 0x330032
mov dword [ebp - 0x14], 0x350034
mov dword [ebp - 0x10], 0x370036
mov dword [ebp - 0xc], 0x390038
mov dword [ebp - 8], 0x2f002b
test esi, esi
jle 0x432abf
lea ebx, [ebx]
movzx ecx, word [edi + edx*2]
xor eax, eax
cmp word [ebp + eax*2 - 0x84], cx
je 0x432aba
inc eax
cmp eax, 0x40
jb 0x432a96
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004344b1
mov esp, ebp
pop ebp
ret 4
inc edx
cmp edx, esi
jl 0x432a90
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.004344b1
mov esp, ebp
pop ebp
ret 4
Function at 0x432eb0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x44e130]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x214], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00434b70
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x432f9c
push ebx
lea eax, [ebp - 0x210]
push eax
push edi
mov dword [ebp - 0x210], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x432f53
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x432f65
mov eax, dword [ebp - 0x210]
xor ecx, ecx
add ecx, ebx
adc eax, 0
mov dword [esi], ecx
mov dword [esi + 4], eax
push dword [esi]
mov dword [ebp - 0x218], 0
call fcn.0043519e
mov ecx, dword [ebp - 0x214]
add esp, 4
mov dword [ecx], eax
push 0
lea ecx, [ebp - 0x218]
push ecx
push dword [esi]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004344b1
mov esp, ebp
pop ebp
ret 8
Function at 0x43bdd4
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x44e130]
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
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.004383a6
mov dword [ebp - 0x14], eax
cmp dword [0x4524bc], edi
jne 0x43bec5
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x43be52
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x43bfa5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x43bfa5
push 0x448588
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x43bfa5
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x4524bc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x4524c0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x4524c4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4524cc], eax
test eax, eax
je 0x43bec2
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4524c8], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x43beea
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x43bedd
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x43beff
push 4
pop eax
jmp 0x43bfa7
cmp dword [ebp - 0x14], edi
je 0x43beff
push dword [0x4524bc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x43bee4
mov eax, dword [0x4524c8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x43bf5d
cmp dword [0x4524cc], esi
je 0x43bf5d
push eax
call ebx
push dword [0x4524cc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x43bf5d
test eax, eax
je 0x43bf5d
call ecx
test eax, eax
je 0x43bf52
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 0x43bf52
test byte [ebp - 8], 1
jne 0x43bf5d
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x43bf8d
mov eax, dword [0x4524c0]
cmp eax, esi
je 0x43bf8a
push eax
call ebx
test eax, eax
je 0x43bf8a
call eax
mov edi, eax
test edi, edi
je 0x43bf8a
mov eax, dword [0x4524c4]
cmp eax, esi
je 0x43bf8a
push eax
call ebx
test eax, eax
je 0x43bf8a
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x4524bc]
call ebx
test eax, eax
je 0x43bfa5
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x43bfa7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004344b1
leave
ret
Function at 0x40934b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41d400]
jne 0x409355
repz ret
jmp fcn.0040fac0

Function at 0x40c0e8
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41d400]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00406a99
and dword [ebp - 0x14], 0
cmp dword [0x44c1bc], 0
mov dword [ebp - 0x18], eax
jne 0x40c19b
push 0x402398
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40c243
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40238c
push ebx
call edi
test eax, eax
je 0x40c243
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x40237c
push ebx
mov dword [0x44c1bc], eax
call edi
push eax
call esi
push 0x402368
push ebx
mov dword [0x44c1c0], eax
call edi
push eax
call esi
push 0x40234c
push ebx
mov dword [0x44c1c4], eax
call edi
push eax
call esi
mov dword [0x44c1cc], eax
test eax, eax
je 0x40c19b
push 0x402334
push ebx
call edi
push eax
call esi
mov dword [0x44c1c8], eax
mov eax, dword [0x44c1c8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40c1f4
cmp dword [0x44c1cc], ecx
je 0x40c1f4
push eax
call esi
push dword [0x44c1cc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40c1f4
test ebx, ebx
je 0x40c1f4
call edi
test eax, eax
je 0x40c1eb
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40c1eb
test byte [ebp - 8], 1
jne 0x40c1f4
or dword [ebp + 0x10], 0x200000
jmp 0x40c227
mov eax, dword [0x44c1c0]
cmp eax, dword [ebp - 0x18]
je 0x40c227
push eax
call esi
test eax, eax
je 0x40c227
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40c227
mov eax, dword [0x44c1c4]
cmp eax, dword [ebp - 0x18]
je 0x40c227
push eax
call esi
test eax, eax
je 0x40c227
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x44c1bc]
call esi
test eax, eax
je 0x40c243
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40c245
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040934b
leave
ret

Function at 0x41b1d0
Capabilities:
Delete file
Get uefi variable

Disassembly:
sub esp, 0x800
cmp dword [0x2b75d24], 0x37
jne 0x41b240
push 0x4035c8
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x403658
push 0x403624
call dword [sym.imp.KERNEL32.dll_WriteProfileSectionW]
push 0
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
push 0
lea eax, [esp + 4]
push eax
push 0x4036a8
push 0x4036f8
call dword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetMessageWaitingIndicator]
push 0
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0
lea ecx, [esp + 0x404]
push ecx
push 0x40373c
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointA]
mov edx, dword [0x2b76138]
mov ecx, dword [0x2b75808]
mov al, byte [edx + esi + 0x38d6]
mov byte [ecx + esi], al
add esp, 0x800
ret
Function at 0x4010a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
xor ebx, ebx
xor edx, edx
xor ecx, ecx
push edi
mov dword [ebp - 4], 0x415b
mov dword [ebp - 8], esi
mov edi, 0xac
test eax, eax
je 0x401161
cmp dword [ebp + 0xc], ecx
je 0x401161
cmp eax, dword [ebp + 0xc]
jae 0x401161
mov esi, dword [ebp + 0xc]
mov ebx, eax
sub esi, ebx
inc edx
mov eax, edx
and eax, 0x80000007
jns 0x4010f3
dec eax
or eax, 0xfffffff8
inc eax
jne 0x4010f8
add edx, 2
cmp edx, 0x6f63
jl 0x4010e4
xor edx, edx
test esi, esi
je 0x401114
mov al, byte [edx + ebx + 1]
sub al, 0x21
xor byte [edx + ebx], al
inc edx
cmp edx, esi
jb 0x401106
inc ecx
mov eax, ecx
and eax, 0x80000001
jns 0x401123
dec eax
or eax, 0xfffffffe
inc eax
jne 0x401126
inc ecx
cmp ecx, 0x6711
jl 0x401114
mov ecx, 0x4a71
mov eax, 0xd20d20d3
imul ecx
add edx, ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x401133
mov eax, 0x1751
mov ecx, 0xd7
cmp edi, ecx
cmovl edi, ecx
dec eax
jne 0x401152
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
inc ebx
mov eax, 0x55555556
imul ebx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, ebx
lea eax, [eax + eax*2]
sub ecx, eax
jne 0x40117a
inc ebx
cmp ebx, 0x1688
jl 0x401161
xor ebx, ebx
inc ebx
mov eax, 0x66666667
imul ebx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, ebx
lea eax, [eax + eax*4]
sub ecx, eax
jne 0x4011a1
add ebx, 2
cmp ebx, 0x6f63
jl 0x401184
lea esp, [esp]
mov eax, 0x22b63cbf
imul dword [ebp - 4]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 4], eax
jne 0x4011b0
mov esi, 0x7301
lea esp, [esp]
mov eax, 0x30c30c31
imul esi
sar edx, 5
mov esi, edx
shr esi, 0x1f
add esi, edx
jne 0x4011d0
mov esi, dword [ebp - 8]
inc esi
mov eax, esi
and eax, 0x80000003
jns 0x4011f5
dec eax
or eax, 0xfffffffc
inc eax
jne 0x4011f8
inc esi
cmp esi, 0x1d86
jl 0x4011e6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402e50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov esi, 0x599f
mov ecx, 0x6115
nop
mov eax, 0x3e0f83e1
imul esi
sar edx, 4
mov esi, edx
shr esi, 0x1f
add esi, edx
jne 0x402e60
mov edi, dword [ebp + 8]
mov eax, 0x82082083
imul ecx
add edx, ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x402e76
inc byte [edi + 5]
movzx esi, byte [edi + 5]
movzx ecx, byte [esi + edi + 8]
movzx eax, byte [edi + 3]
add esi, edi
add eax, ecx
movzx ecx, al
mov byte [edi + 3], al
movzx eax, byte [ecx + edi + 8]
mov dl, byte [esi + 8]
mov byte [esi + 8], al
mov byte [ecx + edi + 8], dl
movzx eax, byte [esi + 8]
movzx ecx, byte [ebp + 0xc]
add al, dl
movzx eax, al
mov al, byte [eax + edi + 8]
movzx eax, al
pop edi
xor eax, ecx
pop esi
pop ebp
ret
Function at 0x10001000
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
push edi
push esi
push esi
push 3
push esi
push esi
push connect
push dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x100010cc
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [ebp - 4], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
mov eax, dword [ebp - 4]
shr eax, 1
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push dword [ebp - 4]
mov dword [ebp + 8], eax
push esi
push ebx
call sub.MSVCRT.dll_memset
mov eax, dword [ebp - 4]
shr eax, 1
push eax
push esi
push dword [ebp + 8]
call sub.MSVCRT.dll_memset
add esp, 0x20
lea eax, [ebp - 8]
push esi
push eax
push dword [ebp - 4]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov eax, dword [ebp - 4]
push esi
shr eax, 1
push esi
push eax
push dword [ebp + 8]
inc ebx
inc ebx
push 0xffffffffffffffff
push ebx
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
push esi
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
jne 0x100010d0
push ebx
call fcn.10006202
push dword [ebp + 8]
call fcn.10006202
pop ecx
pop ecx
xor eax, eax
jmp 0x10001103
lea eax, [ebp - 8]
push esi
push eax
push dword [ebp + 8]
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call fcn.10006202
push dword [ebp + 8]
call fcn.10006202
pop ecx
pop ecx
push dword [ebp + 0xc]
call edi
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10002051
Capabilities:
Parse pe header

Disassembly:
mov edx, dword [esp + 4]
xor eax, eax
test edx, edx
je 0x10002072
cmp word [edx], 0x5a4d
jne 0x10002072
mov ecx, dword [edx + 0x3c]
add ecx, edx
cmp dword [ecx], 0x4550
jne 0x10002072
mov eax, dword [ecx + 0x50]
ret 4
Function at 0x10002e2b
Capabilities:
Delete file

Disassembly:
mov eax, 0x100064a0
call fcn.10006240
sub esp, 0x164
push ebx
push esi
push edi
push 1
pop edi
xor ebx, ebx
lea eax, [ebp - 0x3c]
push ebx
push eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
call sub.gdiplus.dll_GdiplusStartup
push dword [ebp + 8]
lea eax, [ebp - 0x170]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [ebp - 0x170]
pop ecx
push 0x1000916c
push eax
call sub.MSVCRT.dll_strlen
pop ecx
lea ecx, [ebp - 0x170]
sub ecx, 3
add eax, ecx
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
pop ecx
push ebx
push ebx
push 0xffffffffffffffff
push dword [ebp + 8]
push ebx
push ebx
call esi
mov dword [ebp - 0x10], eax
lea eax, [eax + eax + 2]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x14], eax
push dword [ebp - 0x10]
push eax
push 0xffffffffffffffff
push dword [ebp + 8]
push ebx
push ebx
call esi
push ebx
push ebx
lea eax, [ebp - 0x170]
push 0xffffffffffffffff
push eax
push ebx
push ebx
call esi
mov dword [ebp - 0x10], eax
lea eax, [eax + eax + 2]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x18], eax
push dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x170]
push 0xffffffffffffffff
push eax
push ebx
push ebx
call esi
lea eax, [ebp - 0x24]
mov dword [ebp - 0x28], 0x10007230
mov dword [ebp - 0x24], ebx
push eax
push dword [ebp - 0x14]
call sub.gdiplus.dll_GdipLoadImageFromFile
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x6c]
mov dword [ebp - 4], ebx
push eax
push str.image_jpeg
call fcn.10002f9e
mov dword [ebp - 0x5c], edi
mov esi, 0x10007238
lea edi, [ebp - 0x58]
pop ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop ecx
lea eax, [ebp + 0xc]
movsd dword es:[edi], dword [esi]
push 1
mov dword [ebp - 0x40], eax
pop esi
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x6c]
push eax
mov dword [ebp - 0x44], 4
push dword [ebp - 0x18]
mov dword [ebp - 0x48], esi
push dword [ebp - 0x24]
call sub.gdiplus.dll_GdipSaveImageToFile
cmp eax, ebx
je 0x10002f5b
mov dword [ebp - 0x20], eax
push dword [ebp - 0x14]
call fcn.10006202
push dword [ebp - 0x18]
call fcn.10006202
pop ecx
mov dword [ebp - 0x28], 0x10007230
pop ecx
push dword [ebp - 0x24]
call sub.gdiplus.dll_GdipDisposeImage
push dword [ebp - 0x2c]
call sub.gdiplus.dll_GdiplusShutdown
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x100036ba
Capabilities:
Create thread

Disassembly:
push ebx
push esi
xor esi, esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
push esi
push esi
push esi
push 0x100035ab
push esi
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call ebx
push esi
push esi
push esi
push 0x10003662
push esi
push esi
call edi
push eax
call ebx
push 1
pop eax
pop edi
pop esi
pop ebx
ret
Function at 0x10003857
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
lea eax, [ebp - 0x190]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x10003894
cmp byte [ebp - 0x190], 2
jne 0x1000388e
mov al, byte [ebp - 0x18f]
cmp al, 2
jne 0x1000388e
push 1
pop eax
leave
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
leave
ret

Function at 0x1000394e
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x10003995
mov ecx, dword [eax + 0xc]
mov ecx, dword [ecx]
test ecx, ecx
je 0x10003995
movsx eax, word [eax + 0xa]
push eax
lea eax, [ebp - 0xc]
push ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push dword [ebp - 0xc]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push dword [ebp + 0xc]
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push 1
pop eax
leave
ret
xor eax, eax
leave
ret

Function at 0x10003999
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100039b7
xor eax, eax
jmp 0x100039f6
push dword [ebp + 8]
mov word [ebp - 0x10], 2
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x10]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x100039f4
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
jmp 0x100039f6
mov eax, esi
pop esi
leave
ret
Function at 0x10003c2f
Capabilities:
Create thread

Disassembly:
push esi
xor esi, esi
cmp dword [0x10090490], esi
jne 0x10003c64
push edi
push esi
push esi
push esi
push 0x10003f99
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [esp + 0xc], esi
mov edi, eax
je 0x10003c5c
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
ret 4
Function at 0x100043f6
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push eax
push 0x1000438f
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret