joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404ecf
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x130]
sub esp, 0x1b0
mov eax, dword [0x41f174]
xor eax, ebp
mov dword [ebp + 0x12c], eax
push ebx
push edi
xor ebx, ebx
push 0x90
lea eax, [ebp - 0x74]
push ebx
push eax
xor edi, edi
mov dword [ebp - 0x78], ebx
call fcn.0040a500
add esp, 0xc
cmp dword [0x4201c4], ebx
jne 0x40501a
push esi
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 0x78], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x68], 1
jne 0x404fc5
push 0x10e
lea eax, [ebp + 0x1d]
push ebx
push eax
mov byte [ebp + 0x1c], bl
call fcn.0040a500
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push 0x20219
push ebx
push str.SoftwarePGP_CorporationPGP
push 0x80000002
mov dword [ebp - 0x80], 0x104
mov dword [ebp - 0x7c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jne 0x404fbc
cmp dword [ebp - 0x7c], ebx
je 0x404fbc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0x1c]
push eax
push ebx
push ebx
push str.InstallPath
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404fac
push 0xb
lea eax, [ebp + 0x1c]
push str.unicows.dll
push eax
call fcn.0040ce60
add esp, 0xc
lea eax, [ebp + 0x1c]
push eax
call esi
mov edi, eax
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
mov dword [ebp - 0x7c], ebx
jne 0x404fd6
push str.Kernel32.dll
call esi
jmp 0x404fd0
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x405019
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41b1a4
push edi
call esi
push 0x41b190
push edi
mov dword [0x4201c8], eax
call esi
cmp dword [0x4201c8], ebx
mov dword [0x4201cc], eax
je 0x40500e
cmp eax, ebx
je 0x40500e
mov dword [0x4201c4], 1
jmp 0x405019
cmp edi, ebx
je 0x405019
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
mov ecx, dword [ebp + 0x12c]
pop edi
xor ecx, ebp
pop ebx
call fcn.0040a063
add ebp, 0x130
leave
ret
Function at 0x405bb3
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x1044
push edi
call fcn.0040c88f
mov esi, eax
xor ebx, ebx
cmp esi, ebx
pop ecx
jne 0x405bd7
mov eax, 0xffffd121
jmp 0x405c77
push edi
push ebx
push esi
call fcn.0040a500
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x18]
add esp, 0xc
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x1c]
push ebx
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0x20]
push 1
mov dword [esi + 0x81c], eax
mov eax, dword [ebp + 0x24]
push ebx
push ebx
mov dword [esi + 4], edi
mov dword [esi + 0x1020], eax
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push ebx
mov dword [esi + 0x102c], eax
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push esi
push 0x40581d
push edi
push 0x3fc
mov dword [esi + 0x1040], eax
push dword [0x420c4c]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
push 0xffffffffffffffff
push dword [esi + 0x102c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x102c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esi + 0x1034]
push esi
call fcn.0040a472
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x405c7c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
cmp dword [ebp + 0x24], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 4], eax
je 0x405d1d
push ebx
push esi
mov esi, dword [ebp + 0x20]
push edi
mov edi, dword [ebp + 0x1c]
push 4
pop ebx
dec dword [ebp + 0x24]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [0x41a47c]
mov eax, dword [edi]
mov ecx, dword [ebp - 0x20]
xor ecx, eax
mov dword [esi], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
add edi, ebx
mov eax, dword [edi]
xor ecx, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
add esi, ebx
mov dword [esi], ecx
add esi, ebx
add edi, ebx
call dword [0x41a47c]
mov eax, dword [edi]
mov ecx, dword [ebp - 0x18]
xor ecx, eax
mov dword [esi], ecx
mov ecx, dword [ebp - 0x14]
add edi, ebx
mov dword [ebp - 8], eax
mov eax, dword [edi]
add esi, ebx
xor ecx, eax
mov dword [esi], ecx
add esp, 0x18
add esi, ebx
add edi, ebx
cmp dword [ebp + 0x24], 0
mov dword [ebp - 4], eax
jne 0x405cac
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405dc1
Capabilities:
Log keystrokes via polling

Disassembly:
push 0x14
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je 0x405dd1
push 5
jmp 0x405dd3
push 0
push 0x3eb
push dword [esp + 0xc]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret
Function at 0x406ee7
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
movzx esi, ax
mov eax, dword [esp + 8]
shr esi, 0xf
and esi, 1
call fcn.00406ebd
test eax, eax
je 0x406f16
push esi
push dword [esp + 0xc]
push eax
call dword [sym.imp.USER32.dll_GetNextDlgTabItem]
mov esi, eax
jmp 0x406f18
xor esi, esi
test esi, esi
je 0x406f25
push esi
call dword [sym.imp.USER32.dll_GetParent]
jmp 0x406f27
xor eax, eax
test eax, eax
je 0x406f37
push 1
push esi
push 0x28
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
pop esi
ret

Function at 0x4078f6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0xffffffffffffffeb
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov esi, eax
xor ecx, ecx
cmp esi, ecx
je 0x407977
cmp dword [esi + 0x81c], ecx
jle 0x40792e
lea eax, [esi + 0x1c]
mov dx, word [eax + 0x600]
xor word [eax], dx
inc ecx
inc eax
inc eax
cmp ecx, dword [esi + 0x81c]
jl 0x407919
push ebx
mov ebx, dword [ebp + 0xc]
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
lea edi, [esi + 0x1c]
push ebx
push dword [esi + 0x81c]
push edi
call fcn.00404cd8
xor ecx, ecx
add esp, 0x14
cmp dword [esi + 0x81c], ecx
jle 0x40796e
mov eax, edi
mov dx, word [eax + 0x600]
xor word [eax], dx
inc ecx
inc eax
inc eax
cmp ecx, dword [esi + 0x81c]
jl 0x407959
mov eax, dword [ebp - 4]
pop edi
mov byte [eax + ebx], 0
pop ebx
pop esi
leave
ret

Function at 0x40797a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0xffffffffffffffeb
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov esi, eax
test esi, esi
je 0x4079f2
xor ecx, ecx
cmp dword [esi + 0x81c], ecx
jle 0x4079b2
lea eax, [esi + 0x1c]
mov dx, word [eax + 0x600]
xor word [eax], dx
inc ecx
inc eax
inc eax
cmp ecx, dword [esi + 0x81c]
jl 0x40799d
push edi
lea eax, [ebp - 4]
push eax
push 0
push 0
push dword [esi + 0x81c]
lea edi, [esi + 0x1c]
push edi
call fcn.00404cd8
xor ecx, ecx
add esp, 0x14
cmp dword [esi + 0x81c], ecx
jle 0x4079ee
mov eax, edi
mov dx, word [eax + 0x600]
xor word [eax], dx
inc ecx
inc eax
inc eax
cmp ecx, dword [esi + 0x81c]
jl 0x4079d9
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret
Function at 0x40a063
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41f174]
jne 0x40a06d
repz ret
jmp fcn.0040d814
Function at 0x40a1bb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x40a1f8
cmp dword [ebp + 0x14], edi
je 0x40a1f8
cmp ecx, edi
jne 0x40a1ff
call fcn.0040e303
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0040e2a4
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x40a213
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x40a234
cmp ebx, 0xffffffff
je 0x40a223
push ebx
push edi
push ecx
call fcn.0040a500
add esp, 0xc
cmp esi, edi
je 0x40a1e0
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x40a1e0
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x40a250
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x40a257
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x40a348
test word [esi + 0xc], 0x10c
je 0x40a2ab
mov eax, dword [esi + 4]
test eax, eax
je 0x40a2ab
jl 0x40a3a9
cmp ebx, eax
mov edi, ebx
jb 0x40a27c
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x40a350
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0040e123
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x40a340
cmp ebx, dword [ebp - 0xc]
jb 0x40a318
cmp dword [ebp - 0xc], 0
je 0x40a2d5
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x40a2ca
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x40a2d1
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x40a2e0
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x40a2e0
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x40a37c
push eax
push dword [ebp - 8]
push esi
call fcn.0040e0f6
pop ecx
push eax
call fcn.0040dff9
add esp, 0xc
test eax, eax
je 0x40a3bb
cmp eax, 0xffffffff
je 0x40a3a9
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x40a340
push esi
call fcn.0040d918
cmp eax, 0xffffffff
pop ecx
je 0x40a3ad
cmp dword [ebp - 4], 0
je 0x40a37c
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x40a25f
mov eax, dword [ebp + 0x14]
jmp 0x40a1fa
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x40a367
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0040a500
add esp, 0xc
call fcn.0040e303
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x40a1f0
cmp dword [ebp + 0xc], 0xffffffff
je 0x40a392
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0040a500
add esp, 0xc
call fcn.0040e303
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x40a1f0
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x40a1fa
or dword [esi + 0xc], 0x10
jmp 0x40a3ad
Function at 0x4109b0
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x41f7e0]
je 0x4109cb
inc edi
cmp edi, 0x17
jb 0x4109bc
cmp edi, 0x17
jae 0x410b4b
push ebp
push 3
call fcn.00414d43
cmp eax, 1
pop ecx
je 0x410b17
push 3
call fcn.00414d43
test eax, eax
pop ecx
jne 0x4109ff
cmp dword [0x41f180], 1
je 0x410b17
cmp ebx, 0xfc
je 0x410b4a
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4206b8
push ebp
call fcn.00414cde
add esp, 0xc
test eax, eax
je 0x410a35
push esi
push esi
push esi
push esi
push esi
call fcn.0040e1a8
add esp, 0x14
push 0x104
mov esi, 0x4206d1
push esi
push 0
mov byte [0x4207d5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x410a79
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00414cde
add esp, 0xc
test eax, eax
je 0x410a79
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040e1a8
add esp, 0x14
push esi
call fcn.0040a130
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x410abe
push esi
call fcn.0040a130
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4209cc
push 0x41bd1c
sub ecx, eax
push ecx
push eax
call fcn.00414c2b
add esp, 0x14
test eax, eax
je 0x410abe
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0040e1a8
add esp, 0x14
jmp 0x410ac0
xor esi, esi
push 0x41bd18
push ebx
push ebp
call fcn.00414bba
add esp, 0xc
test eax, eax
je 0x410ae0
push esi
push esi
push esi
push esi
push esi
call fcn.0040e1a8
add esp, 0x14
push dword [edi*8 + 0x41f7e4]
push ebx
push ebp
call fcn.00414bba
add esp, 0xc
test eax, eax
je 0x410b02
push esi
push esi
push esi
push esi
push esi
call fcn.0040e1a8
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004149fd
add esp, 0xc
jmp 0x410b4a
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x410b4a
cmp ebp, 0xffffffff
je 0x410b4a
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x41f7e4]
push dword [esi]
call fcn.0040a130
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4149fd
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00412c53
xor ebx, ebx
cmp dword [0x420b5c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x414ad3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x414bb3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41c7b0
push edi
call esi
cmp eax, ebx
je 0x414bb3
push eax
call fcn.00412be5
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x420b5c], eax
call esi
push eax
call fcn.00412be5
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x420b60], eax
call esi
push eax
call fcn.00412be5
mov dword [0x420b64], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0041073d
test eax, eax
pop ecx
pop ecx
je 0x414aa1
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040e1a8
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x414ad3
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00412be5
cmp eax, ebx
pop ecx
mov dword [0x420b6c], eax
je 0x414ad3
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00412be5
pop ecx
mov dword [0x420b68], eax
mov eax, dword [0x420b68]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x414b58
cmp dword [0x420b6c], ecx
je 0x414b58
push eax
call fcn.00412c5c
push dword [0x420b6c]
mov esi, eax
call fcn.00412c5c
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x414b58
cmp edi, ebx
je 0x414b58
call esi
cmp eax, ebx
je 0x414b25
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x414b25
test byte [ebp - 0x18], 1
jne 0x414b58
lea eax, [ebp - 0x10]
push eax
call fcn.00410774
test eax, eax
pop ecx
je 0x414b40
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040e1a8
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x414b4f
or dword [ebp + 0x10], 0x200000
jmp 0x414b93
or dword [ebp + 0x10], 0x40000
jmp 0x414b93
mov eax, dword [0x420b60]
cmp eax, dword [ebp - 8]
je 0x414b93
push eax
call fcn.00412c5c
cmp eax, ebx
pop ecx
je 0x414b93
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x414b93
mov eax, dword [0x420b64]
cmp eax, dword [ebp - 8]
je 0x414b93
push eax
call fcn.00412c5c
cmp eax, ebx
pop ecx
je 0x414b93
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x420b5c]
call fcn.00412c5c
cmp eax, ebx
pop ecx
je 0x414bb3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x414bb5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001bd5
Capabilities:
Parse pe header

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

Disassembly:
mov eax, 0x10006010
call fcn.10005db0
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 0x10009120
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], 0x10007220
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.10002b22
mov dword [ebp - 0x5c], edi
mov esi, 0x10007228
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 0x10002adf
mov dword [ebp - 0x20], eax
push dword [ebp - 0x14]
call fcn.10005d82
push dword [ebp - 0x18]
call fcn.10005d82
pop ecx
mov dword [ebp - 0x28], 0x10007220
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 0x1000323e
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 0x1000312f
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 0x100031e6
push esi
push esi
call edi
push eax
call ebx
push 1
pop eax
pop edi
pop esi
pop ebx
ret
Function at 0x100033db
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 0x10003418
cmp byte [ebp - 0x190], 2
jne 0x10003412
mov al, byte [ebp - 0x18f]
cmp al, 2
jne 0x10003412
push 1
pop eax
leave
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
leave
ret

Function at 0x100034d2
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 0x10003519
mov ecx, dword [eax + 0xc]
mov ecx, dword [ecx]
test ecx, ecx
je 0x10003519
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 0x1000351d
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 0x1000353b
xor eax, eax
jmp 0x1000357a
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 0x10003578
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
jmp 0x1000357a
mov eax, esi
pop esi
leave
ret
Function at 0x100037b3
Capabilities:
Create thread

Disassembly:
push esi
xor esi, esi
cmp dword [0x10090408], esi
jne 0x100037e8
push edi
push esi
push esi
push esi
push 0x10003b1d
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [esp + 0xc], esi
mov edi, eax
je 0x100037e0
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 0x10003f76
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push eax
push 0x10003f0f
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret
Function at 0x10004528
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
jle 0x10004578
push esi
inc cl
movzx ecx, cl
mov edx, dword [eax + ecx*4 + 8]
mov dword [ebp + 8], ecx
lea esi, [eax + ecx*4 + 8]
mov cl, dl
add cl, bl
movzx ebx, cl
mov ecx, dword [eax + ebx*4 + 8]
mov dword [esi], ecx
mov esi, dword [ebp + 0xc]
add cl, dl
mov dword [eax + ebx*4 + 8], edx
movzx ecx, cl
add esi, edi
mov cl, byte [eax + ecx*4 + 8]
xor byte [esi], cl
mov ecx, dword [ebp + 8]
inc edi
cmp edi, dword [ebp + 0x10]
jl 0x1000453d
pop esi
mov dword [eax + 4], ebx
pop edi
mov dword [eax], ecx
pop ebx
pop ebp
ret 0xc