joyce8/EMBER2024-capa huggingface dataset:
Function at 0x78aefc51
Capabilities:
Allocate thread local storage

Disassembly:
push 0x14
mov eax, 0x78b4edae
call fcn.78abb046
mov edi, dword [ebp + 8]
push dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 4], ebx
lea ecx, [edi + 4]
mov dword [edi], 0x78ae3d34
call sym.MSVCR100.dll__wasctime_s
mov byte [ebp - 4], 1
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x30], ebx
mov dword [edi + 0x34], ebx
mov dword [edi + 0x38], ebx
lea esi, [edi + 0x40]
call fcn.78af1d1a
push dword [0x78b5636c]
mov esi, dword [sym.imp.kernel32.dll_InitializeCriticalSectionAndSpinCount]
lea eax, [edi + 0x90]
push eax
call esi
push dword [0x78b5636c]
lea eax, [edi + 0xa8]
mov dword [eax], ebx
mov dword [eax + 4], eax
mov dword [eax + 8], ebx
or dword [edi + 0xc8], 0xffffffff
mov dword [edi + 0xb4], 0xffffffff
mov dword [edi + 0xb8], 0xffffffff
mov dword [edi + 0xbc], ebx
mov dword [edi + 0xc0], ebx
mov dword [edi + 0xc4], ebx
mov dword [edi + 0xcc], ebx
mov dword [edi + 0xd4], ebx
mov dword [edi + 0xd8], ebx
mov dword [edi + 0xdc], 1
mov dword [edi + 0xe0], ebx
mov dword [edi + 0xe4], ebx
mov dword [edi + 0xe8], ebx
mov dword [edi + 0xec], ebx
mov dword [edi + 0xf0], ebx
mov dword [edi + 0xf8], ebx
lea eax, [edi + 0x114]
mov dword [edi + 0x100], ebx
push eax
mov dword [edi + 0x104], ebx
mov dword [edi + 0x108], ebx
mov dword [edi + 0x10c], ebx
call esi
mov byte [ebp - 4], 4
mov esi, dword [sym.imp.kernel32.dll_InitializeSListHead]
lea eax, [edi + 0x140]
mov dword [edi + 0x12c], ebx
push eax
mov dword [edi + 0x130], ebx
mov dword [edi + 0x134], ebx
call esi
lea eax, [edi + 0x148]
push eax
call esi
lea eax, [edi + 0x150]
push eax
call esi
mov ecx, dword [ebp + 0xc]
push ebx
call sym.MSVCR100.dll__wasctime_s
mov ecx, dword [ebp + 0xc]
push 4
mov dword [edi + 8], eax
call sym.MSVCR100.dll__wasctime_s
mov ecx, dword [ebp + 0xc]
push 7
mov word [edi + 0x10], ax
call sym.MSVCR100.dll__wasctime_s
mov dword [edi + 0xc], eax
call fcn.78aeb834
mov ecx, dword [ebp + 0xc]
mov esi, eax
push 2
call sym.MSVCR100.dll__wasctime_s
mov ecx, esi
shl ecx, 2
cmp ecx, eax
jbe 0x78aefdc7
call fcn.78aeb834
shl eax, 2
jmp 0x78aefdd1
mov ecx, dword [ebp + 0xc]
push 2
call sym.MSVCR100.dll__wasctime_s
mov dword [edi + 0x110], eax
call dword [sym.imp.kernel32.dll_TlsAlloc]
mov dword [edi + 0x18], eax
cmp eax, 0xffffffff
jne 0x78aefe10
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, ebx
jle 0x78aefdf9
and eax, 0xffff
or eax, 0x80070000
push eax
lea ecx, [ebp - 0x20]
call sym.MSVCR100.dll__wasctime_s
push 0x78b4feb4
lea eax, [ebp - 0x20]
push eax
call sym.MSVCR100.dll__wasctime_s
mov eax, edi
call fcn.78abb658
ret 8
Function at 0x78af276d
Capabilities:
Get thread local storage value

Disassembly:
push 0
mov eax, 0x78b4f9fc
call fcn.78abb046
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0xc]
push dword [eax + 0x70]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x78af2828
mov ecx, eax
and ecx, 3
jne 0x78af279c
mov esi, eax
push eax
jmp 0x78af27b8
cmp ecx, 1
jne 0x78af27bf
and eax, 0xfffffffe
mov esi, dword [eax + 0x10]
mov eax, dword [esi + 0x20]
add esi, 4
test eax, eax
je 0x78af27b7
cmp byte [eax + 0x40], 0
jne 0x78af2828
push esi
call fcn.78ae880c
jmp 0x78af27f2
and eax, 0xfffffffd
mov esi, eax
lea edi, [esi + 4]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x10]
mov esi, dword [esi + 0x20]
mov eax, dword [esi + 0x28]
add esi, 0xc
test eax, eax
je 0x78af27e5
cmp byte [eax + 0x40], 0
je 0x78af27e5
xor esi, esi
jmp 0x78af27eb
push esi
call fcn.78ae880c
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x14]
test esi, esi
je 0x78af2828
cmp dword [esi + 0x14], ebx
je 0x78af2824
push 0x3c
call sym.MSVCR100.dll__wasctime_s
mov edi, eax
pop ecx
mov dword [ebp + 8], edi
xor eax, eax
mov dword [ebp - 4], eax
cmp edi, eax
je 0x78af2818
push esi
push ebx
call sym.MSVCR100.dll__wasctime_s
or dword [ebp - 4], 0xffffffff
push eax
mov esi, eax
call fcn.78ae880c
mov eax, esi
jmp 0x78af282a
xor eax, eax
call fcn.78abb658
ret 4

Function at 0x78af7403
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebx
push 0x78af7494
call dword [sym.imp.kernel32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x78af7490
push esi
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push 0x78af74b0
push ebx
call esi
mov ecx, dword [0x78b54630]
push 0x78af74c4
xor ecx, eax
push ebx
mov dword [edi], ecx
call esi
mov ecx, dword [0x78b54630]
push 0x78af74dc
xor ecx, eax
push ebx
mov dword [edi + 4], ecx
call esi
mov ecx, dword [0x78b54630]
push 0x78af74e8
xor ecx, eax
push ebx
mov dword [edi + 8], ecx
call esi
mov ecx, dword [0x78b54630]
push 0x78af7500
xor ecx, eax
push ebx
mov dword [edi + 0xc], ecx
call esi
mov ecx, dword [0x78b54630]
push 0x78af7514
xor ecx, eax
push ebx
mov dword [edi + 0x10], ecx
call esi
mov ecx, dword [0x78b54630]
xor ecx, eax
mov dword [edi + 0x14], ecx
pop esi
mov eax, edi
pop ebx
ret
Function at 0x78afa890
Capabilities:
Get thread local storage value
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x78b53610]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x80c], edi
call fcn.78af035a
push dword [0x78b579bc]
mov esi, eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x78afa8e0
call dword [sym.imp.kernel32.dll_DebugBreak]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.78ab07a7
leave
ret
test esi, esi
je 0x78afa93d
cmp dword [esi + 0x1c], 0
je 0x78afa93d
mov eax, dword [esi + 0x18]
test eax, eax
je 0x78afa8f6
mov edi, dword [eax + 0x6c]
jmp 0x78afa8f9
or edi, 0xffffffff
push dword [ebp + 0x10]
push dword [ebp - 0x80c]
push ebx
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
push eax
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 8]
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
push eax
push 0x78afa9a8
lea eax, [ebp - 0x808]
push 0x400
push eax
call sym.MSVCR100.dll__wasctime_s
add esp, 0x2c
jmp 0x78afa962
push dword [ebp + 0x10]
push edi
push ebx
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
push eax
push 0x78afaa10
lea eax, [ebp - 0x808]
push 0x400
push eax
call sym.MSVCR100.dll__wasctime_s
add esp, 0x1c
xor eax, eax
mov word [ebp - 8], ax
lea eax, [ebp - 0x808]
push eax
push dword [0x78b54634]
call sym.MSVCR100.dll_fwprintf
push dword [0x78b54634]
call sym.MSVCR100.dll_fflush
add esp, 0xc
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
call dword [sym.imp.kernel32.dll_DebugBreak]
push 0xfffffffffffffff8
call sym.MSVCR100.dll__wasctime_s
int3

Function at 0x78afaac5
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x78b53610]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x78b57a50]
test dword [ebp + 8], eax
je 0x78afab5a
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x808]
push eax
call sym.MSVCR100.dll__wasctime_s
xor eax, eax
mov word [ebp - 8], ax
mov eax, dword [0x78b54634]
add esp, 0xc
test eax, eax
je 0x78afab4d
lea ecx, [ebp - 0x808]
push ecx
push eax
call sym.MSVCR100.dll_fwprintf
pop ecx
pop ecx
push 0
push 0x32
push dword [0x78b57a5c]
push dword [0x78b57a58]
call fcn.78ac8690
add dword [0x78b57a58], 1
adc dword [0x78b57a5c], 0
or eax, edx
jne 0x78afab5a
push dword [0x78b54634]
call sym.MSVCR100.dll_fflush
pop ecx
jmp 0x78afab5a
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.78ab07a7
leave
ret
Function at 0x78afea37
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x78afea5e
call sym.MSVCR100.dll___doserrno
mov dword [eax], esi
call sym.MSVCR100.dll__errno
push 0x16
pop esi
mov dword [eax], esi
call sym.MSVCR100.dll__invalid_parameter_noinfo
mov eax, esi
jmp 0x78afeab3
test dword [ebp + 0xc], 0xfffffff9
jne 0x78afea44
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x78afea8b
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call sym.MSVCR100.dll__wasctime_s
pop ecx
call sym.MSVCR100.dll__errno
mov eax, dword [eax]
jmp 0x78afeab3
test al, 0x10
jne 0x78afeab1
test al, 1
je 0x78afeab1
test byte [ebp + 0xc], 2
je 0x78afeab1
call sym.MSVCR100.dll___doserrno
mov dword [eax], 5
call sym.MSVCR100.dll__errno
mov dword [eax], 0xd
jmp 0x78afea82
xor eax, eax
pop esi
pop ebp
ret

Function at 0x78afeace
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x78afeaf6
call sym.MSVCR100.dll___doserrno
and dword [eax], 0
call sym.MSVCR100.dll__errno
mov dword [eax], 0x16
call sym.MSVCR100.dll__invalid_parameter_noinfo
or eax, 0xffffffff
pop ebp
ret
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x78afeb13
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call sym.MSVCR100.dll__wasctime_s
pop ecx
jmp 0x78afeaf1
test byte [ebp + 0xc], 0x80
je 0x78afeb1e
and eax, 0xfffffffe
jmp 0x78afeb21
or eax, 1
push eax
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
test eax, eax
je 0x78afeb04
xor eax, eax
pop ebp
ret

Function at 0x78b0048f
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x78b004b7
call sym.MSVCR100.dll___doserrno
and dword [eax], 0
call sym.MSVCR100.dll__errno
mov dword [eax], 0x16
call sym.MSVCR100.dll__invalid_parameter_noinfo
or eax, 0xffffffff
pop ebp
ret
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x78b004d4
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call sym.MSVCR100.dll__wasctime_s
pop ecx
jmp 0x78b004b2
test byte [ebp + 0xc], 0x80
je 0x78b004df
and eax, 0xfffffffe
jmp 0x78b004e2
or eax, 1
push eax
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
test eax, eax
je 0x78b004c5
xor eax, eax
pop ebp
ret
Function at 0x78b0ab79
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x78b0ab88
pop dword [ebp - 0xc]
mov eax, 0x78b0ab88
sub dword [ebp - 0xc], eax
push 0x40
push 0x1000
push 0x57240
push 0
mov eax, 0x8de91d27
add eax, 0xeac0f461
add eax, dword [ebp - 0xc]
call dword [eax]
mov ecx, 0xf26a2a5
sub ecx, 0xf264bcd
mov esi, eax
mov edi, 0x103872d9
sub edi, 0x978294d9
add edi, dword [ebp - 0xc]
mov edx, 0x188c9707
mov dword [ebp - 4], 0xe4f3f5dc
mov ebx, dword [edi]
add ebx, edx
sub dword [ebp - 8], 0x66e6be9a
mov dword [esi], ebx
xor dword [ebp - 8], ebx
add esi, 0x42caea8b
add esi, 0xbd351579
add edi, 0xeda096f
sub edi, 0xeda096b
loop 0x78b0abdc
add eax, 0x9800142e
sub eax, 0x97fec5fb
mov ebx, eax
add eax, 0x545f25ea
add eax, 0xaba0da1b
mov ecx, 0xb74a4dbb
sub ecx, 0x3ea04dbb
add ecx, dword [ebp - 0xc]
call ebx
leave
ret

Function at 0x78b2c097
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x78b576b8], eax
mov dword [0x78b576b4], ecx
mov dword [0x78b576b0], edx
mov dword [0x78b576ac], ebx
mov dword [0x78b576a8], esi
mov dword [0x78b576a4], edi
mov word [0x78b576d0], ss
mov word [0x78b576c4], cs
mov word [0x78b576a0], ds
mov word [0x78b5769c], es
mov word [0x78b57698], fs
mov word [0x78b57694], gs
pushfd
pop dword [0x78b576c8]
mov eax, dword [ebp]
mov dword [0x78b576bc], eax
mov eax, dword [ebp + 4]
mov dword [0x78b576c0], eax
lea eax, [ebp + 8]
mov dword [0x78b576cc], eax
mov eax, dword [ebp - 0x320]
mov dword [0x78b57608], 0x10001
mov eax, dword [0x78b576c0]
mov dword [0x78b575bc], eax
mov dword [0x78b575b0], 0xc0000409
mov dword [0x78b575b4], 1
mov eax, dword [0x78b53610]
mov dword [ebp - 0x328], eax
mov eax, dword [0x78b54440]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x78b57600], eax
push 1
call sym.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x78b2c198
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x78b57600], 0
jne 0x78b2c183
push 1
call sym.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret
Function at 0x7a510a
Capabilities:
Execute anti-debugging instructions

Disassembly:
push cx
mov word [esp], sp
mov word [esp], dx
lea esp, [esp + 2]
mov dword [esp + 0x20], edi
lea esp, [esp + 0x20]
call fcn.007a511a
mov dword [esp], ecx
mov dword [esp], edi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], esi
jmp 0x7a50d9

Function at 0x7a513b
Capabilities:
Execute anti-debugging instructions

Disassembly:
pushal
mov dword [esp + 0x28], ecx
pushfd
lea esp, [esp + 2]
mov word [esp], si
lea esp, [esp + 1]
jmp 0x7a5058
mov dword [esp + 8], eax
pushfd
jmp 0x7a507a
Function at 0x8b078c
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov dword [esp], edi
xchg word [esp + 0x25], dx
sub esp, 0
pushal
lea esp, [esp + 0x53]
xchg cx, ax
jmp 0x8b0793
mov word [esp + 0x22], bp
jmp 0x8b0765
xchg ecx, eax
mov ax, si
mov eax, esp
mov eax, dword [esp]
neg dx
setb dh
jmp 0x8b07e9
xchg dl, ah
pop ecx
xor cx, cx
pop edx
mov ah, 0x21
rdtsc
jmp 0x8b0813
setl dl
mov eax, 0x4a5cb65a
setnp al
lea edx, [ecx + ebx]
btr eax, edx
pushal
jmp 0x8b07cd
rdtsc
mov cl, byte [esp + 0xa]
lea eax, [esp + ecx]
pop word [esp + 0xa]
push ax
jmp 0x8b0846
mov eax, esi
lea eax, [eax + ecx]
xchg dh, cl
inc ah
lea ecx, reloc.oleaut32.dll_SysFreeString
mov ecx, edx
jmp 0x8b07fd
push eax
mov eax, 0xf822c609
mov ax, 0x5ac8
sub esp, 6
push edi
rdtsc
jmp 0x8b0889
mov al, 0xa9
xchg dl, dh
xchg ah, dl
not ecx
sub esp, 0x13
xchg al, ah
jmp 0x8b0830
lea eax, [ebx + ebp]
mov ah, 0x9e
xchg dword [esp + 0x1c], eax
neg dx
pushal
jmp 0x8b08a0
mov dword [esp + 4], ebx
cmc
mov ecx, ebp
bswap eax
mov ch, 0x30
pop dword [esp + 0x1f]
jmp 0x8b0855
mov al, byte [esp + 0x25]
dec ax
add esp, 1
xchg word [esp + 0x21], ax
bt ecx, eax
pop dword [esp + 0x24]
jmp 0x8b086b
lea esp, [esp + 0x50]
mov ax, word [esp]
lea eax, [edx*4]
bswap edx
btr cx, bx
mov ecx, dword [esp]
jmp 0x8b0939
bsf dx, cx
pop dword [esp + 4]
lea ecx, [esi + ebp]
push word [esp + 9]
jmp 0x8b091f
mov edx, dword [esp + 9]
xchg dl, cl
mov dword [esp + 2], ecx
sub esp, 0x14
rol edx, cl
lea esp, [esp + 0x15]
jmp 0x8b08de
xchg word [esp + 6], dx
xchg word [esp + 5], dx
ror ecx, cl
lea eax, reloc.oleaut32.dll_SysFreeString
cld
call fcn.008b0909
sub byte [ebx - 3], cl
std
mov al, cl
sub esp, 0x13
mov ah, dh
bswap eax
xchg ecx, eax
jmp 0x8b08f4

Function at 0x8b10b0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword [eax]
jmp 0x8b1067
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
jmp 0x8b102d
mov eax, dword [eax + 8]
push eax
jmp 0x8b0ffa
pushfd
lea esp, [esp + 2]
mov dword [esp + 0x10], edi
lea esp, [esp + 0x10]
jmp 0x8b1043
Function at 0x407701
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x407710
pop dword [ebp - 0x24]
mov eax, 0x407710
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0xd044e18b
sub dword [ebp - 0x34], 0x81f29c40
mov dword [ebp - 0x30], 0x7dc35d4a
sub dword [ebp - 0x30], 0x4b901105
mov dword [ebp - 0x2c], 0xd6afed0
sub dword [ebp - 0x2c], 0xc11ebaa2
mov dword [ebp - 0x28], 0x13e687b4
add dword [ebp - 0x28], 0xec19784c
lea eax, [ebp - 0x34]
push eax
mov eax, 0x8758375b
add eax, 0x78e848b9
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0x7fd49d95
add dword [ebp - 0x34], 0xf49dcbc1
mov dword [ebp - 0x30], 0xe6158b1d
sub dword [ebp - 0x30], 0xa4a929a8
mov dword [ebp - 0x2c], 0xcf0036d4
add dword [ebp - 0x2c], 0x946f3598
mov dword [ebp - 0x28], 0xb2d27dd
sub dword [ebp - 0x28], 0xb2d27dd
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0x37cb075b
sub eax, 0x378a874b
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x3ba88
push 0
call eax
mov ecx, 0x5ff4a02
add ecx, 0xfa010ffb
xor esi, esi
add esi, eax
mov edx, 0xe162241d
sub edx, 0xe121381d
add edx, dword [ebp - 0x24]
mov edi, 0x1cd55b58
mov ebx, dword [edx]
mov dword [ebp - 0x14], 0x4a9c44bb
xor ebx, edi
add dword [ebp - 8], ebx
mov dword [esi], ebx
xor dword [ebp - 4], ecx
add esi, 4
add edx, 0xe7aad564
add edx, 0x18552aa0
loop 0x407829
add eax, 0xe297b524
add eax, 0x1d69a5a3
mov ebx, eax
add eax, 0xc7449564
sub eax, 0xc744955f
mov ecx, 0x805c4980
sub ecx, 0x801c4980
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x10002860
Capabilities:
Allocate or change rwx memory
Check for software breakpoints
Extract resource via kernel32 functions

Disassembly:
push esi
push 4
push 0x3000
push 0xe
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
xor eax, eax
test esi, esi
je 0x10002973
mov ecx, dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test ecx, ecx
mov word [esi], ax
je 0x100028a5
jmp 0x10002890
cmp byte [ecx + eax], 0xcc
je 0x100028a0
add eax, 1
cmp eax, 6
jb 0x10002890
jmp 0x100028a5
mov word [esi], 1
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push edi
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x100028d7
push 0x8000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop ebx
xor eax, eax
pop esi
ret 0xc
push ebp
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
test ebp, ebp
je 0x10002945
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x10002945
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
je 0x10002945
push 0x40
push 0x3000
mov eax, 0x40000000
call fcn.10002030
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x1000295c
push 0x40
push 0x3000
call fcn.10002030
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x1000295c
push 0x40
push 0x3000
push edi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
jne 0x1000295c
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop ebp
pop edi
pop ebx
xor eax, eax
pop esi
ret 0xc
mov eax, edi
mov edx, ebp
mov edi, ebx
call fcn.10001f80
push ebx
call fcn.100021d0
add esp, 4
pop ebp
pop edi
pop ebx
pop esi
ret 0xc
Function at 0x10002980
Capabilities:
Allocate or change rwx memory
Check for software breakpoints
Extract resource via kernel32 functions

Disassembly:
push esi
push 4
push 0x3000
push 0xe
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
xor eax, eax
test esi, esi
je 0x10002a93
mov ecx, dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test ecx, ecx
mov word [esi], ax
je 0x100029c5
jmp 0x100029b0
cmp byte [ecx + eax], 0xcc
je 0x100029c0
add eax, 1
cmp eax, 6
jb 0x100029b0
jmp 0x100029c5
mov word [esi], 1
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push edi
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x100029f7
push 0x8000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop ebx
xor eax, eax
pop esi
ret 0xc
push ebp
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
test ebp, ebp
je 0x10002a65
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x10002a65
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
je 0x10002a65
push 0x40
push 0x3000
mov eax, 0x40000000
call fcn.10002030
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x10002a7c
push 0x40
push 0x3000
call fcn.10002030
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x10002a7c
push 0x40
push 0x3000
push edi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
jne 0x10002a7c
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop ebp
pop edi
pop ebx
xor eax, eax
pop esi
ret 0xc
mov eax, edi
mov edx, ebp
mov edi, ebx
call fcn.10001f80
push ebx
call fcn.100021d0
add esp, 4
pop ebp
pop edi
pop ebx
pop esi
ret 0xc
Function at 0x100035e0
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
test ebx, ebx
jbe 0x100037ef
mov eax, dword [esp + 0x18]
push esi
xor ecx, ecx
add eax, 8
push edi
mov edi, dword [esp + 0x18]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 6
xor edx, edx
mov eax, ecx
div ebx
add ecx, 1
mov eax, ecx
and edi, 0xffffff
add ecx, 1
movsx esi, byte [edx + ebp]
xor edx, edx
div ebx
shl esi, 0x18
or esi, edi
mov eax, ecx
add ecx, 1
movsx edx, byte [edx + ebp]
shl edx, 0x10
xor edx, esi
and edx, 0xff0000
xor esi, edx
xor edx, edx
div ebx
movsx eax, byte [edx + ebp]
shl eax, 8
xor eax, esi
and eax, 0xff00
xor esi, eax
xor edx, edx
mov eax, ecx
div ebx
mov eax, dword [esp + 0x14]
add ecx, 1
movzx edx, byte [edx + ebp]
xor edx, esi
and edx, 0xff
xor esi, edx
xor dword [eax - 8], esi
xor edx, edx
mov eax, ecx
div ebx
add ecx, 1
mov eax, ecx
and esi, 0xffffff
add ecx, 1
movsx edi, byte [edx + ebp]
xor edx, edx
div ebx
shl edi, 0x18
or edi, esi
mov esi, dword [esp + 0x14]
movsx eax, byte [edx + ebp]
shl eax, 0x10
xor eax, edi
and eax, 0xff0000
xor edi, eax
xor edx, edx
mov eax, ecx
div ebx
add ecx, 1
mov eax, ecx
add ecx, 1
movsx edx, byte [edx + ebp]
shl edx, 8
xor edx, edi
and edx, 0xff00
xor edi, edx
xor edx, edx
div ebx
movzx eax, byte [edx + ebp]
xor eax, edi
and eax, 0xff
xor edi, eax
xor edx, edx
mov eax, ecx
div ebx
xor dword [esi - 4], edi
and edi, 0xffffff
movsx edx, byte [edx + ebp]
shl edx, 0x18
or edi, edx
add ecx, 1
mov eax, ecx
xor edx, edx
div ebx
add ecx, 1
add esi, 0xc
mov dword [esp + 0x14], esi
movsx eax, byte [edx + ebp]
shl eax, 0x10
xor eax, edi
and eax, 0xff0000
xor edi, eax
xor edx, edx
mov eax, ecx
div ebx
add ecx, 1
mov eax, ecx
add ecx, 1
movsx edx, byte [edx + ebp]
shl edx, 8
xor edx, edi
and edx, 0xff00
xor edi, edx
xor edx, edx
div ebx
movzx eax, byte [edx + ebp]
xor eax, edi
and eax, 0xff
xor edi, eax
xor dword [esi - 0xc], edi
sub dword [esp + 0x10], 1
jne 0x10003615
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
jmp 0x10003770
mov ebp, dword [esp + 0x20]
lea esi, [esp + 0x14]
lea edi, [esp + 0x10]
mov eax, ebp
call fcn.10002e80
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [ebp + ebx*4], ecx
mov dword [ebp + ebx*4 + 4], edx
add ebx, 2
cmp ebx, 0x12
jb 0x10003770
mov ebx, ebp
add ebx, 0x4c
mov dword [esp + 0x18], 4
jmp 0x100037b0
mov ebp, 0x80
jmp 0x100037c0
mov eax, dword [esp + 0x20]
lea esi, [esp + 0x14]
lea edi, [esp + 0x10]
call fcn.10002e80
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [ebx - 4], eax
mov dword [ebx], ecx
add ebx, 8
sub ebp, 1
jne 0x100037c0
sub dword [esp + 0x18], 1
jne 0x100037b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret