joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45d2b4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff4
mov ecx, dword [eax]
mov dword [edx], ecx
lea ecx, [eax + 4]
mov ecx, dword [ecx]
mov dword [edx + 4], ecx
lea ecx, [eax + 8]
mov ecx, dword [ecx]
mov dword [edx + 8], ecx
lea ecx, [eax + 0xc]
mov ecx, dword [ecx]
mov dword [edx + 0xc], ecx
lea ecx, [eax + 0x10]
mov ecx, dword [ecx]
mov dword [edx + 0x10], ecx
lea ecx, [eax + 0x14]
mov ecx, dword [ecx]
mov dword [edx + 0x14], ecx
lea ecx, [eax + 0x18]
mov ecx, dword [ecx]
mov dword [edx + 0x18], ecx
add eax, 0x1c
mov eax, dword [eax]
mov dword [edx + 0x1c], eax
xor eax, eax
mov dword [esp], 1
mov ecx, dword [edx + eax*4 + 0x1c]
mov edi, ecx
shl edi, 0x18
shr ecx, 8
or edi, ecx
mov ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4863e0]
mov dword [esp + 4], ecx
mov ecx, edi
shr ecx, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4863e0]
mov ebx, edi
shr ebx, 0x10
and ebx, 0xff
mov esi, dword [ebx*4 + 0x4863e0]
mov ebx, edi
shr ebx, 0x18
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x4863e0]
mov dword [esp + 8], ebx
mov ebx, ecx
shl ebx, 8
shr ecx, 0x18
or ebx, ecx
xor ebx, dword [esp + 4]
mov ecx, esi
shl ecx, 0x10
shr esi, 0x10
or ecx, esi
xor ebx, ecx
mov ecx, dword [esp + 8]
shl ecx, 0x18
mov esi, dword [esp + 8]
shr esi, 8
or ecx, esi
xor ebx, ecx
xor ebx, dword [edx + eax*4]
mov ecx, dword [esp]
xor ebx, dword [ecx*4 + 0x485f64]
mov dword [edx + eax*4 + 0x20], ebx
inc dword [esp]
mov ecx, dword [edx + eax*4 + 4]
xor ecx, dword [edx + eax*4 + 0x20]
mov dword [edx + eax*4 + 0x24], ecx
mov ebx, dword [edx + eax*4 + 8]
xor ebx, ecx
mov dword [edx + eax*4 + 0x28], ebx
mov edi, dword [edx + eax*4 + 0xc]
xor edi, ebx
mov dword [edx + eax*4 + 0x2c], edi
xor ecx, ecx
mov cl, byte [edx + eax*4 + 0x2c]
mov ecx, dword [ecx*4 + 0x4863e0]
mov dword [esp + 4], ecx
mov ecx, edi
shr ecx, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4863e0]
mov ebx, edi
shr ebx, 0x10
and ebx, 0xff
mov esi, dword [ebx*4 + 0x4863e0]
mov ebx, edi
shr ebx, 0x18
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x4863e0]
mov dword [esp + 8], ebx
mov ebx, ecx
shl ebx, 8
shr ecx, 0x18
or ebx, ecx
xor ebx, dword [esp + 4]
mov ecx, esi
shl ecx, 0x10
shr esi, 0x10
or ecx, esi
xor ebx, ecx
mov ecx, dword [esp + 8]
shl ecx, 0x18
mov esi, dword [esp + 8]
shr esi, 8
or ecx, esi
xor ebx, ecx
xor ebx, dword [edx + eax*4 + 0x10]
mov dword [edx + eax*4 + 0x30], ebx
mov ecx, dword [edx + eax*4 + 0x14]
xor ecx, dword [edx + eax*4 + 0x30]
mov dword [edx + eax*4 + 0x34], ecx
mov ebx, dword [edx + eax*4 + 0x18]
xor ebx, ecx
mov dword [edx + eax*4 + 0x38], ebx
mov ecx, dword [edx + eax*4 + 0x1c]
xor ecx, ebx
mov dword [edx + eax*4 + 0x3c], ecx
add eax, 8
cmp eax, 0x34
jl 0x45d2ff
add esp, 0xc
pop edi
pop esi
pop ebx
ret
Function at 0x46c3c4
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x46c3cc
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x46c5be
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x46c5d4
mov eax, esi
call fcn.0046a250
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.00404178
lea ecx, [ebp - 0x10]
mov edx, 0x46c5e8
mov eax, esi
call fcn.0046a250
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.00404178
lea ecx, [ebp - 0x14]
mov edx, 0x46c600
mov eax, esi
call fcn.0046a250
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.00404178
lea ecx, [ebp - 0x18]
mov edx, 0x46c61c
mov eax, esi
call fcn.0046a250
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.00404178
lea ecx, [ebp - 0x1c]
mov edx, 0x46c638
mov eax, esi
call fcn.0046a250
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.00404178
lea ecx, [ebp - 0x24]
mov edx, 0x46c650
mov eax, esi
call fcn.0046a250
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00408288
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.004087d0
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x46c668
mov eax, esi
call fcn.0046a250
mov eax, dword [ebp - 0x28]
call fcn.00467758
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x46c678
mov eax, esi
call fcn.0046a250
mov eax, dword [ebp - 0x2c]
call fcn.00467758
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x46c690
mov eax, esi
call fcn.0046a250
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.004087d0
inc eax
je 0x46c561
lea ecx, [ebp - 0x34]
mov edx, 0x46c690
mov eax, esi
call fcn.0046a250
mov eax, dword [ebp - 0x34]
call fcn.00408794
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.00409ce0
fstp qword [ebp - 0x3c]
wait
call fcn.0040a044
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x46c57c
lea ecx, [ebp - 0x40]
mov edx, 0x46c690
mov eax, esi
call fcn.0046a250
mov eax, dword [ebp - 0x40]
call fcn.00467758
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x46c6a0
mov eax, esi
call fcn.0046a250
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.00404178
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46c5c5
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00404148
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.00404148
ret
Function at 0x4775e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x47763a
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.004775d0
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.004663c4
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.00465fc4
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x477641
lea eax, [ebp - 4]
call fcn.00404124
ret
Function at 0x47b388
Capabilities:
Access peb ldr_data
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff30
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0xd0], ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x47b556
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebx + 0x68]
push 0x47b56c
lea eax, [ebp - 4]
push eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0xcc], eax
mov byte [ebp - 0xc8], 0xb
mov eax, dword [ebx + 8]
mov dword [ebp - 0xc4], eax
mov byte [ebp - 0xc0], 0xb
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0xbc], eax
mov byte [ebp - 0xb8], 0xb
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0xb4], eax
mov byte [ebp - 0xb0], 0xb
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0xac], eax
mov byte [ebp - 0xa8], 0xb
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0xa4], eax
mov byte [ebp - 0xa0], 0xb
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0x9c], eax
mov byte [ebp - 0x98], 0xb
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x94], eax
mov byte [ebp - 0x90], 0xb
mov eax, dword [ebx + 0x24]
mov dword [ebp - 0x8c], eax
mov byte [ebp - 0x88], 0xb
mov eax, dword [ebx + 0x28]
mov dword [ebp - 0x84], eax
mov byte [ebp - 0x80], 0xb
mov eax, dword [ebx + 0x2c]
mov dword [ebp - 0x7c], eax
mov byte [ebp - 0x78], 0xb
mov eax, dword [ebx + 0x30]
mov dword [ebp - 0x74], eax
mov byte [ebp - 0x70], 0xb
mov eax, dword [ebx + 0x34]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
mov eax, dword [ebx + 0x38]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0xb
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0xb
mov eax, dword [ebx + 0x40]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0
mov eax, dword [ebx + 0x44]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0
mov eax, dword [ebx + 0x48]
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0
mov eax, dword [ebx + 0x4c]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0
mov eax, dword [ebx + 0x50]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0
mov eax, dword [ebx + 0x54]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebx + 0x58]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebx + 0x5c]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0xb
mov eax, dword [ebx + 0x60]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
mov eax, dword [ebx + 0x64]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0xb
lea edx, [ebp - 0xcc]
mov ecx, 0x18
mov eax, 0x47b578
call fcn.00409410
push dword [ebp - 4]
mov eax, esi
mov edx, 3
call fcn.004044a4
lea eax, [ebp - 0xd0]
push eax
mov eax, dword [esi]
xor ecx, ecx
mov edx, 0x47b5cc
call fcn.00461f80
mov edx, dword [ebp - 0xd0]
mov eax, esi
call fcn.00404178
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47b55d
lea eax, [ebp - 0xd0]
call fcn.00404124
lea eax, [ebp - 4]
call fcn.00404124
ret
Function at 0x47da00
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x47da86
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push edi
push esi
call sub.kernel32.dll_GetLocaleInfoA_1
mov ebx, eax
test ebx, ebx
jne 0x47da41
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
call fcn.00404178
jmp 0x47da70
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404770
push ebx
mov eax, dword [ebp - 8]
call fcn.004045e4
push eax
push edi
push esi
call sub.kernel32.dll_GetLocaleInfoA_1
mov eax, dword [ebp + 8]
push eax
mov ecx, ebx
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00404644
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47da8d
lea eax, [ebp - 8]
call fcn.00404124
ret

Function at 0x483c48
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x114], edx
mov dword [ebp - 0x104], edx
mov dword [ebp - 0x108], edx
mov esi, eax
xor eax, eax
push ebp
push 0x483e2f
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.004267dc
push 0x483e3c
push 0
call sub.user32.dll_FindWindowA
mov ebx, eax
test ebx, ebx
jbe 0x483e06
lea edx, [ebp - 0x108]
mov eax, dword [0x487414]
add eax, 0x13b
call fcn.00408f20
mov eax, dword [ebp - 0x108]
lea edx, [ebp - 0x104]
call fcn.00408288
cmp dword [ebp - 0x104], 0
je 0x483e06
mov eax, ebx
call fcn.0045bc1c
mov eax, dword [0x4873c0]
mov eax, dword [eax]
call fcn.00405070
cmp eax, 0xf
jl 0x483e06
mov eax, 0x483e50
mov dword [ebp - 0x110], eax
mov eax, 0x483e60
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x110]
mov edx, 1
call fcn.0045bad4
mov dword [0x4896bc], eax
mov eax, dword [0x4896bc]
xor edx, edx
cmp edx, 0xffffffff
jne 0x483d1b
cmp eax, 0xffffffff
je 0x483e06
mov eax, dword [0x4896bc]
mov edx, eax
shl eax, 3
sub eax, edx
mov edx, dword [0x4873c0]
mov edx, dword [edx]
mov edx, dword [edx + eax*4 - 0x24]
mov dword [0x4896b8], edx
mov edx, dword [0x4873c0]
mov edx, dword [edx]
mov eax, dword [edx + eax*4 + 0x14]
mov dword [0x4896bc], eax
push 0xff
lea eax, [ebp - 0xff]
push eax
mov eax, dword [0x4896bc]
push eax
call sub.user32.dll_GetWindowTextA
lea eax, [ebp - 0x114]
lea edx, [ebp - 0xff]
mov ecx, 0xff
call fcn.00404394
mov eax, dword [ebp - 0x114]
mov edx, 0x483e50
call fcn.00404530
jne 0x483dfa
mov edx, 0x483e70
mov eax, esi
call fcn.00483a34
mov eax, dword [0x487414]
add eax, 0x13b
push eax
mov eax, dword [0x4896b8]
push eax
call sub.user32.dll_SetWindowTextA
mov dx, 5
mov ax, 5
call fcn.00406dc8
push eax
push 1
push 0x201
mov eax, dword [0x4896bc]
push eax
call sub.user32.dll_PostMessageA
push 0x64
call sub.kernel32.dll_Sleep_1
mov dx, 5
mov ax, 5
call fcn.00406dc8
push eax
push 1
push 0x202
mov eax, dword [0x4896bc]
push eax
call sub.user32.dll_PostMessageA
jmp 0x483e06
mov edx, 0x483e84
mov eax, esi
call fcn.00483a34
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x483e36
lea eax, [ebp - 0x114]
call fcn.00404124
lea eax, [ebp - 0x108]
mov edx, 2
call fcn.00404148
ret
Function at 0x4012eb
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x41104c], 1
mov dword [0x411050], 1
mov dword [0x411054], 1
mov dword [ebp - 4], 0x400000
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x40132c
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x40134f
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
movzx eax, ax
cmp eax, 0x10b
je 0x401371
cmp eax, 0x20b
je 0x401396
jmp 0x4013c1
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x5c]
cmp eax, 0xe
ja 0x401383
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x4013c6
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x6c]
cmp eax, 0xe
ja 0x4013ae
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x4013c6
mov eax, 0
leave
ret
Function at 0x401b94
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call fcn.00402bac
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call fcn.00402bac
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort

Function at 0x402768
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x402787
mov eax, 0
jmp 0x4027cb
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x4027aa
mov eax, 0
jmp 0x4027cb
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x4027c6
mov eax, 0
jmp 0x4027cb
mov eax, 1
leave
ret

Function at 0x4027cd
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x40282c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x402824
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x402824
mov eax, dword [ebp - 4]
jmp 0x402840
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x402801
mov eax, 0
leave
ret
Function at 0x410ecb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x410f0d
call fcn.00413e08
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x410f0d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x410f04
xor eax, eax
jmp 0x410f15
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00410f1b
pop edi
pop esi
pop ebx
ret 4

Function at 0x4145af
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4145dd
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4145fb
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00414515
jmp 0x4145fb
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4145fb
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00414515
test edi, edi
mov eax, edi
jne 0x4145e5
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x40481d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x40482c
pop dword [ebp - 8]
mov eax, 0x9bbe43b6
sub eax, 0x9b7dfb8a
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0x3593a256
sub dword [ebp - 0x18], 0xe7415d0b
mov dword [ebp - 0x14], 0x76122ac7
sub dword [ebp - 0x14], 0x43dede82
mov dword [ebp - 0x10], 0xeab397a3
sub dword [ebp - 0x10], 0x9e675375
mov dword [ebp - 0xc], 0xe0b73d58
sub dword [ebp - 0xc], 0xe0b73d58
lea eax, [ebp - 0x18]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0xcf32c607
sub dword [ebp - 0x18], 0x5ac05cb1
mov dword [ebp - 0x14], 0x4e70bf11
sub dword [ebp - 0x14], 0xd045d9c
mov dword [ebp - 0x10], 0x92a72e58
add dword [ebp - 0x10], 0xd0c83e14
mov dword [ebp - 0xc], 0xb9f71a2
sub dword [ebp - 0xc], 0xb9f71a2
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x417b5
push 0
call eax
mov ecx, 0xb5554e87
add ecx, 0x4aab087e
xor edi, edi
add edi, eax
mov ebx, 0xeca6b570
sub ebx, 0xec637170
add ebx, dword [ebp - 8]
mov esi, 0xc85045f6
add esi, 0x7025ea7d
mov dword [ebp - 4], 0x8661d32
mov edx, dword [ebx]
xor dword [ebp - 4], edi
xor edx, esi
mov dword [edi], edx
sub dword [ebp - 4], 0x4bebee8
add edi, 4
add ebx, 0x752bb532
sub ebx, 0x752bb52e
loop 0x404946
add eax, 0xf56c654b
sub eax, 0xf56b1664
mov ebx, eax
add eax, 0xa50e9f80
add eax, 0x5af16085
mov ecx, 0x4d95f59e
sub ecx, 0x4d55f59e
add ecx, dword [ebp - 8]
call ebx
leave
ret

Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c
Function at 0x419352
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
push esi
xor esi, esi
cmp dword [ebp + 8], esi
push edi
mov edi, ecx
mov dword [ebp - 4], esi
jne 0x419375
mov eax, 0x8876086c
jmp 0x41948a
cmp dword [ebp + 0xc], esi
push ebx
je 0x41940d
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
je 0x4193ed
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push dword [ebp + 8]
push esi
push 0xfde9
call ebx
push eax
mov dword [ebp + 0xc], eax
call fcn.004b447d
cmp eax, esi
pop ecx
mov dword [ebp - 4], eax
jne 0x4193d1
mov eax, 0x8007000e
jmp 0x419489
push esi
push esi
push dword [ebp + 0xc]
push eax
push 0xffffffffffffffff
push dword [ebp + 8]
push esi
push 0xfde9
call ebx
mov eax, dword [ebp - 4]
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], esi
cmp dword [ebp + 0xc], esi
je 0x41940d
push esi
push 0x10000000
push 3
push esi
push 1
push closesocket
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x419426
push esi
push 0x10000000
push 3
push esi
push 1
push closesocket
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push dword [ebp - 4]
mov dword [edi], eax
call fcn.004b44ad
mov eax, dword [edi]
cmp eax, 0xffffffff
pop ecx
je 0x419477
push esi
push esi
push esi
push 2
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, 0xffffffff
mov dword [edi + 4], eax
je 0x419477
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [edi + 0xc], eax
je 0x419477
cmp eax, esi
je 0x419484
push esi
push esi
push esi
push 4
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
mov dword [edi + 8], eax
jne 0x419487
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x88760b59
jmp 0x419489
mov dword [edi + 8], esi
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret 8
Function at 0x442db0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x38
mov eax, dword [0x534094]
xor eax, esp
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], esi
push edi
mov edi, ecx
test esi, esi
je 0x442f49
cmp dword [edi + 4], 0xffffffff
je 0x442de9
call fcn.00442d20
mov al, byte [esi]
sub al, 0x30
push esi
cmp al, 9
ja 0x442e11
xorps xmm0, xmm0
mov eax, 2
movlpd qword [esp + 0x2c], xmm0
mov word [esp + 0x24], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x24], eax
jmp 0x442e49
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x442f49
xorps xmm0, xmm0
lea eax, [esp + 0x24]
movaps xmmword [esp + 0x20], xmm0
movsx ecx, word [esi + 0xa]
push ecx
mov ecx, dword [esi + 0xc]
push dword [ecx]
push eax
call fcn.004b6770
mov ax, word [esi + 8]
add esp, 0xc
mov word [esp + 0x20], ax
push 0x3afc
call dword [sym.imp.WS2_32.dll_htons]
push 0
push 1
push 2
mov word [esp + 0x2e], ax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
mov dword [esp + 0x18], esi
cmp esi, 0xffffffff
jne 0x442e89
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.004b446a
mov esp, ebp
pop ebp
ret 0xc
push 4
lea eax, [esp + 0x3c]
mov dword [edi + 4], esi
push eax
push 0x1002
push 0xffff
push esi
mov dword [esp + 0x4c], 0x40000
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0x10
lea eax, [esp + 0x24]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x442eec
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push dword [esp + 0x18]
mov esi, eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 4], 0xffffffff
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.004b446a
mov esp, ebp
pop ebp
ret 0xc
push 0x31
push 0x401
push dword [esp + 0x1c]
push esi
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
mov edx, dword [esp + 0x1c]
mov ecx, edx
mov eax, dword [esp + 0x14]
mov dword [edi + 8], eax
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x442f10
sub ecx, esi
push ecx
push edx
lea ecx, [edi + 0xc]
call fcn.00443960
mov dword [edi + 0x24], 0x3afc
xor eax, eax
mov dword [edi + 0x40028], 1
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.004b446a
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esp + 0x3c]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, esp
call fcn.004b446a
mov esp, ebp
pop ebp
ret 0xc