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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
xor ecx, ecx
mov dword [ebx], ecx
cmp dword [ebp + 0xc], ecx
je 0x1000bd39
lea eax, [ebp - 4]
push eax
push 1
push ecx
push str.stssync
push ADsGetObject
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000bd39
push esi
push edi
mov edi, dword [sym.imp.advapi32.dll_RegQueryValueExW]
lea eax, [ebp + 0x10]
push eax
xor ecx, ecx
push ecx
push ecx
push ecx
push str.ststypes
push dword [ebp - 4]
mov esi, ecx
call edi
test eax, eax
jne 0x1000bcc4
mov eax, dword [ebp + 0x10]
add eax, 5
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
pop ecx
test esi, esi
je 0x1000bd2e
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push str.ststypes
push dword [ebp - 4]
call edi
test eax, eax
jne 0x1000bcc4
cmp dword [ebp - 8], 7
jne 0x1000bcc4
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov dword [eax + esi], ecx
mov byte [eax + esi + 4], cl
mov ecx, esi
jmp 0x1000bcc9
mov ecx, str.calendar
movzx eax, word [ecx]
mov edx, eax
test ax, ax
je 0x1000bd22
mov edx, dword [ebp + 0xc]
movzx edi, word [edx]
test di, di
je 0x1000bcf1
cmp ax, di
jne 0x1000bcf1
add ecx, 2
add edx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x1000bcd6
movzx eax, word [ecx]
cmp word [edx], ax
je 0x1000bd15
test ax, ax
je 0x1000bd08
xor eax, eax
add ecx, 2
cmp word [ecx], ax
jne 0x1000bd00
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x1000bcd3
jmp 0x1000bd22
push 0x100931f0
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebx], eax
test esi, esi
je 0x1000bd2e
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
push dword [ebp - 4]
call dword [sym.imp.advapi32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0xc

Function at 0x1000f969
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 7
pop ecx
lea edi, [ebp - 0x20]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 8]
xor esi, esi
test ecx, ecx
mov eax, esi
push 0x40
pop edi
lea edx, [ecx + 0x28]
mov dword [ebp - 4], eax
cmove edx, edi
mov ecx, dword [edx]
test ecx, ecx
jne 0x1000f99f
mov ecx, 0x80004005
jmp 0x1000f9b2
mov eax, dword [ecx]
lea edx, [ebp - 4]
push edx
push 0x10093310
push ecx
call dword [eax]
mov ecx, eax
mov eax, dword [ebp - 4]
test ecx, ecx
js 0x1000f9fd
test eax, eax
je 0x1000f9fa
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call edi
xor ecx, ecx
inc ecx
test ax, ax
push 0x11
cmovs esi, ecx
call edi
test ax, ax
jns 0x1000f9d9
add esi, 2
push 0x12
call edi
test ax, ax
jns 0x1000f9e5
add esi, 4
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x20]
push esi
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov ecx, eax
mov eax, dword [ebp - 4]
jmp 0x1000f9fd
xor ecx, ecx
inc ecx
xor ebx, ebx
test ecx, ecx
setne bl
test eax, eax
je 0x1000fa0e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8
Function at 0x100103f3
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [edi - 0x14]
neg edi
sbb edi, edi
and edi, eax
mov ecx, dword [edi + 0x40]
test ecx, ecx
jne 0x10010434
cmp dword [ebp + 0x14], ecx
jne 0x10010487
mov eax, dword [ebp + 0xc]
test eax, eax
jle 0x10010497
push dword [ebp + 0x1c]
push ecx
lea ecx, [edi + 0x14]
call fcn.1000fcea
mov esi, 0x40180
jmp case.default.0x100104a8
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x10010487
and dword [esp + 0x10], 0
lea edx, [esp + 0x10]
and dword [esp + 0x14], 0
mov ebx, 0x1009234c
mov eax, dword [ecx]
push edx
push ebx
push ecx
call dword [eax]
mov eax, dword [esi]
lea ecx, [esp + 0x14]
push ecx
push ebx
push esi
call dword [eax]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cmp eax, ecx
sete bl
test ecx, ecx
je 0x1001047b
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10010489
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x10010489
xor bl, bl
test bl, bl
jne 0x10010417
mov eax, 0x8000ffff
jmp 0x10010552
add eax, 7
mov esi, 0x80004001
cmp eax, 7
ja case.default.0x100104a8
jmp dword [eax*4 + 0x1001055b]
push dword [ebp + 0x1c]
push ecx
lea ecx, [edi + 0x14]
call fcn.1000fcea
jmp 0x1001054e
lea ecx, [edi + 0x14]
neg ecx
sbb ecx, ecx
and ecx, edi
push ecx
push 0xffffffffffffffff
add ecx, 0x30
call fcn.1000fe51
mov esi, eax
xor eax, eax
test esi, esi
cmovns esi, eax
jmp case.default.0x100104a8
lea eax, [edi + 0x14]
neg eax
push ecx
sbb eax, eax
and edi, eax
push 0xfffffffffffffffb
lea ecx, [edi + 0x30]
call fcn.1000fe51
mov esi, eax
test esi, esi
js case.default.0x100104a8
lea ecx, [edi + 0x30]
xor esi, esi
call fcn.1000fd8c
jmp case.default.0x100104a8
lea ecx, [edi + 0x14]
neg ecx
sbb ecx, ecx
xor esi, esi
and ecx, edi
test byte [ecx + 0x74], 8
jne case.default.0x100104a8
push ecx
push 0xfffffffffffffffc
jmp 0x100104cc
lea esi, [edi + 0x14]
neg esi
sbb esi, esi
and esi, edi
lea eax, [esi + 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
cmp dword [esi + 0x7c], 0
je case.0x100104a8.6
push 0
push dword [esi + 0x7c]
call dword [sym.imp.USER32.dll_ShowWindow]
xor esi, esi
jmp case.default.0x100104a8
push dword [ebp + 0x1c]
push ecx
lea ecx, [edi + 0x30]
call fcn.1001021b
mov esi, eax
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x10013570
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x41c
mov eax, 0x1008d0d6
call fcn.1008bdcf
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x418], eax
xor eax, eax
mov dword [ebp - 0x428], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x420], ecx
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x414], eax
push 0x60
push eax
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.kernel32.dll_LoadLibraryExW]
push esi
call ebx
mov edi, eax
push 2
pop eax
test edi, edi
jne 0x100135e1
push eax
push edi
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x100135e1
call fcn.10011e99
mov esi, eax
jmp 0x100136c3
push dword [ebp - 0x418]
push dword [ebp - 0x41c]
push edi
call dword [sym.imp.kernel32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x10013604
call fcn.10011e99
jmp 0x100136b6
push esi
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x100135fa
push esi
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x1001362d
mov esi, 0x8007000e
jmp 0x100136b8
push 2
pop ecx
mul ecx
mov byte [ebp - 4], cl
test edx, edx
ja 0x100136e6
jb 0x10013648
cmp eax, 0xffffffff
ja 0x100136e6
cmp eax, 0x400
jbe 0x1001365d
push eax
lea ecx, [ebp - 0x414]
call fcn.10003530
jmp 0x10013669
lea eax, [ebp - 0x410]
mov dword [ebp - 0x414], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x414], 0
je 0x10013623
push esi
push dword [ebp - 0x414]
push esi
push ebx
push 0
push 3
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x100135fa
mov eax, dword [ebp - 0x414]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x424]
push dword [ebp - 0x414]
call fcn.10003530
mov esi, eax
test edi, edi
je 0x100136c3
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x410]
cmp dword [ebp - 0x414], eax
je 0x100136dc
lea ecx, [ebp - 0x414]
call fcn.10011e61
mov eax, esi
call fcn.1008bd84
ret 0x10
push 0x80070216
call fcn.10003530
int3

Function at 0x10016137
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
add eax, 8
push eax
mov eax, dword [ebp + 8]
push dword [eax + 4]
call dword [sym.imp.kernel32.dll_GetFileSizeEx]
test eax, eax
jne 0x10016169
call dword [sym.imp.kernel32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov eax, ecx
jmp 0x1001616b
xor eax, eax
pop ebp
ret 0xc
Function at 0x10016f73
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x118
mov eax, 0x1008d448
call fcn.1008bdcf
mov edi, ecx
and dword [ebp - 4], 0
xor esi, esi
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x120], ebx
test ebx, ebx
jle 0x10016fab
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.10003530
mov esi, eax
test esi, esi
js 0x100170fc
cmp dword [edi + 0xac], 0
je 0x10016fbf
lea ecx, [edi + 0xa8]
call fcn.10003530
cmp ebx, 0x64
jle 0x10017032
mov byte [ebp - 4], 2
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push 0
call esi
xor ebx, ebx
lea edx, [ebp - 0x120]
mov ecx, 0xa5a9
mov dword [ebp - 0x120], ebx
call fcn.10003530
push ebx
call esi
lea edx, [ebp - 0x11c]
mov dword [ebp - 0x11c], ebx
mov ecx, 0xa5aa
call fcn.10003530
push ecx
push dword [ebp - 0x120]
lea ecx, [edi + 0x30]
push dword [ebp - 0x11c]
call fcn.10003530
push dword [ebp - 0x11c]
call esi
push dword [ebp - 0x120]
call esi
mov esi, 0x80004005
jmp 0x1001711a
xor eax, eax
mov dword [ebp - 0x11c], eax
test ebx, ebx
jle 0x1001711a
mov ebx, dword [ebp - 0x124]
push eax
lea ecx, [ebp + 8]
call fcn.10003530
lea ecx, [ebp - 0x118]
push dword [eax]
call fcn.10003530
push dword [eax]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov esi, eax
lea eax, [ebp - 0x114]
cmp dword [ebp - 0x118], eax
je 0x10017083
push dword [ebp - 0x118]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
cmp esi, 0xffffffff
jne 0x100170a8
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 2
je 0x100170b6
cmp eax, 3
je 0x100170b6
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x100170b2
mov ebx, esi
shr ebx, 4
and ebx, 1
xor esi, esi
test esi, esi
js 0x100170fc
push dword [ebp - 0x11c]
lea ecx, [ebp + 8]
call fcn.10003530
mov ecx, edi
test ebx, ebx
jne 0x100170d4
push ebx
push dword [eax]
call fcn.10017376
jmp 0x100170db
push dword [eax]
call fcn.100175cb
mov esi, eax
test esi, esi
js 0x100170fc
mov eax, dword [ebp - 0x11c]
inc eax
mov dword [ebp - 0x11c], eax
cmp eax, dword [ebp - 0x120]
jl 0x10017048
jmp 0x1001711a
lea ecx, [edi + 0xa8]
call fcn.10003530
push dword [edi + 0xbc]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
and dword [edi + 0xbc], 0
lea ecx, [ebp + 8]
call fcn.10019119
mov eax, esi
call fcn.1008bd84
ret 0xc
Function at 0x1001f3bb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
push 0x10
mov esi, ecx
push 1
push esi
call dword [sym.imp.kernel32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x1001f3fd
push edi
push esi
call dword [sym.imp.kernel32.dll_SizeofResource]
test eax, eax
je 0x1001f3fd
push edi
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
je 0x1001f3fd
cmp word [eax + 2], 0
je 0x1001f3fd
cmp dword [eax + 0x28], 0xfeef04bd
jne 0x1001f3fd
add eax, 0x30
jmp 0x1001f402
mov eax, 0x10097fec
pop edi
pop esi
ret

Function at 0x10021774
Capabilities:
Hash data using djb2

Disassembly:
mov edx, ecx
test edx, edx
jne 0x1002177e
or eax, 0xffffffff
ret
movzx eax, word [edx]
mov ecx, 0x1505
push esi
push edi
xor esi, esi
mov edi, eax
jmp 0x1002179b
imul ecx, ecx, 0x21
movzx eax, ax
xor ecx, eax
inc esi
movzx eax, word [edx + esi*2]
test ax, ax
jne 0x1002178e
imul eax, ecx, 0x41c64e6d
imul ecx, ecx, 0x10dcd
pop edi
pop esi
add eax, 0x3039
shr eax, 0x10
inc ecx
and ecx, 0xffff0000
or eax, ecx
ret

Function at 0x10024149
Capabilities:
Hash data using djb2

Disassembly:
mov edx, ecx
test edx, edx
jne 0x10024153
or eax, 0xffffffff
ret
movzx eax, word [edx]
mov ecx, 0x1505
push esi
push edi
xor edi, edi
mov esi, eax
jmp 0x1002417c
movzx esi, ax
add eax, 0xffffffbf
cmp ax, 0x19
ja 0x10024172
add esi, 0x20
imul ecx, ecx, 0x21
xor ecx, esi
inc edi
movzx eax, word [edx + edi*2]
test ax, ax
jne 0x10024163
imul eax, ecx, 0x41c64e6d
imul ecx, ecx, 0x10dcd
pop edi
pop esi
add eax, 0x3039
shr eax, 0x10
inc ecx
and ecx, 0xffff0000
or eax, ecx
ret
Function at 0x10046b8c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10046ba0
test al, 0x10
jne 0x10046ba0
xor eax, eax
inc eax
ret
xor eax, eax
ret

Function at 0x10046ba3
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push esi
push edi
mov esi, ecx
xor edi, edi
test esi, esi
jne 0x10046bb1
xor eax, eax
jmp 0x10046be4
movzx eax, word [esi]
mov ecx, eax
push ebx
mov ebx, edi
test ax, ax
je 0x10046be1
mov ecx, esi
movzx edx, word [ecx + 2]
movzx ecx, ax
shl ecx, 0x10
or ecx, edx
xor edi, ecx
test dx, dx
je 0x10046be1
add ebx, 2
lea ecx, [esi + ebx*2]
movzx eax, word [ecx]
test ax, ax
jne 0x10046bc0
mov eax, edi
pop ebx
pop edi
pop esi
ret

Function at 0x100470b6
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, edx
push edi
test ecx, ecx
je 0x1004710c
test esi, esi
je 0x1004710c
push 2
pop edx
call fcn.10003530
mov edi, eax
test edi, edi
jne 0x100470d7
mov eax, 0x80004005
jmp 0x10047111
mov ecx, esi
call fcn.10001da2
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push 0
push 0
push edi
call dword [sym.imp.advapi32.dll_RegSetValueExW]
push edi
mov esi, eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
movzx eax, si
or eax, 0x80070000
test esi, esi
cmovle eax, esi
jmp 0x10047111
mov eax, 0x80070057
pop edi
pop esi
ret 4

Function at 0x10047116
Capabilities:
Delete registry key

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
test esi, esi
jne 0x10047126
mov eax, 0x80070057
jmp 0x1004716a
call fcn.10003530
mov edi, eax
test edi, edi
je 0x10047167
push 0
call fcn.100474e6
neg eax
sbb eax, eax
and eax, 0x100
push eax
push esi
push edi
call dword [sym.imp.advapi32.dll_RegDeleteKeyExW]
push edi
mov esi, eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
cmp esi, 2
je 0x10047167
movzx eax, si
or eax, 0x80070000
test esi, esi
cmovle eax, esi
jmp 0x1004716a
xor eax, eax
inc eax
pop edi
pop esi
pop ecx
ret
Function at 0x10056595
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xc0
mov eax, 0x1008eff9
call fcn.1008bdcf
mov eax, dword [ebp - 0xc8]
xor ebx, ebx
mov dword [ebp - 0xcc], ebx
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xc8], 0x100fd92c
mov dword [0x100fd92c], ebx
mov dword [0x100fd930], ebx
mov dword [0x100fd934], ebx
xor ecx, ecx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0xc4]
mov dword [ebp - 0xc4], ebx
push eax
inc ecx
push ecx
push ebx
push str.Control_PanelInternational
push ADsGetObject
mov dword [ebp - 0xcc], ecx
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10056732
mov edi, dword [sym.imp.advapi32.dll_RegGetValueW]
lea eax, [ebp - 0xc0]
push eax
push ebx
push ebx
push 0x20000020
push str.Languages
push str.User_Profile
push dword [ebp - 0xc4]
mov dword [ebp - 0xc0], ebx
call edi
test eax, eax
jne 0x10056726
cmp dword [ebp - 0xc0], 3
jbe 0x10056726
push dword [ebp - 0xc0]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
pop ecx
test esi, esi
je 0x10056726
lea eax, [ebp - 0xc0]
push eax
push esi
push ebx
push 0x20
push str.Languages
push str.User_Profile
push dword [ebp - 0xc4]
call edi
test eax, eax
jne 0x1005671e
mov ebx, dword [ebp - 0xc0]
cmp ebx, 3
jbe 0x1005671e
xor edx, edx
shr ebx, 1
push edx
pop ecx
mov eax, edx
mov edi, edx
mov word [esi + ebx*2 - 2], cx
je 0x1005671e
jmp 0x100566ab
cmp eax, ebx
jae 0x100566b1
inc eax
cmp word [esi + eax*2], dx
je 0x100566a6
cmp word [esi + edi*2], dx
jne 0x10056719
cmp edi, eax
jbe 0x10056719
xor ecx, ecx
lea eax, [esi + eax*2]
mov word [ebp - 0xbc], cx
lea ecx, [ebp - 0xbc]
push 0x55
push ecx
push eax
call dword [sym.imp.kernel32.dll_ResolveLocaleName]
test eax, eax
je 0x10056714
cmp word [ebp - 0xbc], 0
je 0x10056714
mov eax, dword [0x100fd930]
lea ecx, [ebp - 0xbc]
push ecx
cmp eax, dword [0x100fd934]
je 0x10056709
mov ecx, eax
call fcn.10003530
add dword [0x100fd930], 0x18
jmp 0x10056714
push eax
mov ecx, 0x100fd92c
call fcn.1005ca38
lea eax, [edi + 1]
xor edx, edx
inc edi
cmp edi, ebx
jb 0x100566ab
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
push dword [ebp - 0xc4]
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, 0x100fd92c
call fcn.1008bd84
ret 4
Function at 0x100271c0
Capabilities:
Query environment variable

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor edi, edi
push 0x50
push ebx
mov dword [ebx + 4], edi
mov dword [esp + 0x14], edi
call fcn.10027050
mov esi, eax
add esp, 8
cmp esi, edi
jne 0x100271f8
mov eax, dword [ebx]
push ebx
mov dword [eax + 0x14], 0x35
mov ecx, dword [ebx]
mov dword [ecx + 0x18], edi
mov edx, dword [ebx]
call dword [edx]
add esp, 4
mov dword [esi], fcn.100272e0
mov dword [esi + 4], fcn.100273f0
mov dword [esi + 8], 0x100274c0
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], 0x10027570
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], fcn.1002ac90
mov dword [esi + 0x28], 0x1002ad90
mov eax, dword [esp + 0xc]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x3c]
mov ecx, 2
mov dword [eax - 8], edi
mov dword [eax], edi
sub eax, 4
dec ecx
jne 0x1002723f
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], 0x50
push str.JPEGMEM
mov dword [ebx + 4], esi
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
cmp eax, edi
je 0x100272d1
lea ecx, [esp + 0x14]
lea edx, [esp + 0xc]
push ecx
push edx
push str._ld_c
push eax
mov byte [esp + 0x24], 0x78
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0x10
test eax, eax
jle 0x100272d1
mov al, byte [esp + 0x14]
cmp al, 0x6d
je 0x1002729a
cmp al, 0x4d
jne 0x100272be
mov eax, dword [esp + 0xc]
pop edi
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
mov dword [esi + 0x2c], eax
pop esi
pop ebx
pop ecx
ret
mov eax, dword [esp + 0xc]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
mov ecx, 0x586f3e3e
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x571232d
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x10002aa0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp dword [eax + 0x70], 0
mov dword [eax + 0x4c], ecx
jne 0x10002ab3
mov dword [eax + 0x70], 1
mov dword [eax + 0x54], ecx
mov edx, ecx
sub edx, dword [eax + 0x54]
cmp edx, 0x2710
jge 0x10002ac8
cmp edx, 0xffffd8f0
jge 0x10002acd
mov dword [eax + 0x54], ecx
jmp 0x10002ad1
test edx, edx
js 0x10002aec
mov edx, dword [eax + 0x50]
add dword [eax + 0x54], edx
push esi
push edi
mov edi, ecx
sub edi, dword [eax + 0x54]
pop edi
pop esi
js 0x10002ae7
add edx, ecx
mov dword [eax + 0x54], edx
jmp fcn.100024b0
ret

Function at 0x10002c80
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x100171b0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi], vtable.CTcpSocket.0
mov dword [esi + 0x38], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov eax, vtable.CBuffer.0
mov dword [esi + 0x2c], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x48], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x4c], eax
lea eax, [ebp - 0x198]
push eax
push 0x202
mov dword [esi + 0x58], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
call dword [sym.imp.WS2_32.dll_WSAStartup]
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push edi
lea ecx, [esi + 0x18]
push ecx
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [ebp - 4]
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x14], edi
xor ecx, ebp
mov dword [esi + 0x64], 0xffffffff
mov eax, esi
pop edi
call fcn.10006195
mov esp, ebp
pop ebp
ret
Function at 0x10003250
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov esi, eax
mov dword [ebp - 4], 0
cmp ebx, 0x40000
jl 0x100032ad
jmp 0x10003270
xor edi, edi
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x64]
push 0
push 0x40000
push esi
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x10003291
inc edi
cmp edi, 0xf
jl 0x10003272
cmp edi, 0xf
je 0x100032de
add dword [ebp - 4], eax
sub ebx, 0x40000
add esi, 0x40000
cmp ebx, 0x40000
jge 0x10003270
test ebx, ebx
jle 0x100032d6
xor edi, edi
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x64]
push 0
push ebx
push esi
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x100032ce
inc edi
cmp edi, 0xf
jl 0x100032b3
cmp edi, 0xf
je 0x100032de
add dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
je 0x100032e1
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x10003500
Capabilities:
Create thread
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, eax
mov eax, dword [esi + 0x198]
xor ebx, ebx
cmp eax, ebx
jne 0x10003522
mov dword [esi + 0x1b8], 0x598
jmp 0x10003539
cmp eax, 0x598
jbe 0x10003533
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [esi + 0x1b8], eax
push edi
mov dword [esi + 0x64], ebx
call fcn.10003660
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, 1
push 0x100192a0
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], 5
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], eax
mov dword [ebp - 8], ebx
call edi
mov dword [esi + 0x48], eax
cmp eax, ebx
jne 0x10003578
push 0x100192a0
call edi
mov dword [esi + 0x48], eax
mov ecx, dword [esi + 0x40]
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [ebp - 4]
push eax
push 0x1001
push 0xffff
mov ebx, 0x40000
push ecx
mov dword [ebp - 4], ebx
call edi
mov eax, dword [esi + 0x40]
push 4
lea edx, [ebp - 4]
push edx
push 0x1002
push 0xffff
push eax
mov dword [ebp - 4], ebx
call edi
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ecx
push edx
call fcn.100036f0
test eax, eax
je 0x1000360d
lea eax, [esi + 0x58]
push eax
push 0
push esi
push 0x10003870
push 0
push 0
call fcn.10006b9b
add esp, 0x18
mov dword [esi + 0x54], eax
test eax, eax
je 0x100035ff
mov ecx, dword [esi + 0x2c]
push ecx
mov edi, 1
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [esi + 0x5c], 8
push 0x65f
jmp 0x1000361b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0x5c], 0xb
push eax
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
call ebx
xor eax, eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], 5
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, esi
call fcn.10003f60
push edi
call ebx
mov edi, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8