joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49ff08
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eeb80
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x521808]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.004650f0
dec eax
cmp eax, 9
ja case.default.0x49fdd9
jmp dword [eax*4 + 0x49ff24]
push 0x11f
push str.T:_srcgithubgrpc_javagrpc_java_helper32protobuf_21.7_srcgoogle_protobuf_map_field.h
push 3
lea ecx, [ebp - 0x34]
call fcn.0044cbf0
push str.Unsupported
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.0044ce30
push eax
lea ecx, [ebp - 0x59]
call fcn.0044ccc0
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
call fcn.0044cc80
push 0x137
push str.T:_srcgithubgrpc_javagrpc_java_helper32protobuf_21.7_srcgoogle_protobuf_map_field.h
push 3
lea ecx, [ebp - 0x58]
call fcn.0044cbf0
push str.Cant_get_here.
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.0044ce30
push eax
lea ecx, [ebp - 0x65]
call fcn.0044ccc0
lea ecx, [ebp - 0x58]
call fcn.0044cc80
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004af547
mov esp, ebp
pop ebp
ret 4
mov ecx, esi
call fcn.0045fba0
push eax
lea ecx, [ebp - 0x59]
call fcn.0049fd60
jmp 0x49fe59
mov ecx, esi
call fcn.0045f800
mov dword [ebp - 0x64], eax
lea ecx, [ebp - 0x59]
lea eax, [ebp - 0x64]
mov dword [ebp - 0x60], edx
push eax
call fcn.0049fcf0
jmp 0x49fe59
mov ecx, esi
call fcn.0045f5c0
mov ecx, esi
call fcn.0045f5c0
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x59]
lea eax, [ebp - 0x60]
push eax
call fcn.0049fcb0
jmp 0x49fe59
mov ecx, esi
call fcn.00460020
mov ecx, esi
call fcn.00460020
mov dword [ebp - 0x64], eax
lea ecx, [ebp - 0x59]
lea eax, [ebp - 0x64]
mov dword [ebp - 0x60], edx
push eax
call fcn.0049fcf0
jmp 0x49fe59
mov ecx, esi
call fcn.0045fde0
mov ecx, esi
call fcn.0045fde0
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x59]
lea eax, [ebp - 0x60]
push eax
call fcn.0049fcb0
jmp 0x49fe59
mov ecx, esi
call fcn.0045ef30
movzx eax, al
xor eax, 0x811c9dc5
imul eax, eax, 0x1000193
jmp 0x49fe59

Function at 0x4a2ea0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax + edx*4]
push esi
push edi
mov edi, ecx
mov esi, dword [ebx + 0x28]
mov ecx, edi
push ebx
call fcn.0049fda0
xor eax, dword [edi + 8]
push ebx
push 0x9e3779b9
push 0x7f4a7c15
push 0
push eax
call fcn.004b0270
mov eax, dword [edi + 4]
mov ecx, edi
dec eax
and edx, eax
lea eax, [ebp - 0xc]
push edx
push eax
call fcn.004a07a0
mov ebx, esi
test esi, esi
jne 0x4a2eb4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4a60b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004d2818
Function at 0x4b1646
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x4d2361
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
mov edx, dword [ebp + 0xc]
push ebx
sar ecx, 6
push esi
push edi
imul edi, eax, 0x30
mov eax, dword [ecx*4 + 0x526528]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4d23a2
cmp byte [edx], 0xa
jne 0x4d23a2
or byte [eax + edi + 0x28], 4
jmp 0x4d23a7
and byte [eax + edi + 0x28], 0xfb
lea eax, [edx + ecx]
mov ebx, edx
mov dword [ebp - 8], eax
mov esi, edx
cmp edx, eax
jae 0x4d2498
mov al, byte [ebx]
cmp al, 0x1a
je 0x4d2479
cmp al, 0xd
je 0x4d23d0
mov byte [esi], al
inc esi
inc ebx
jmp 0x4d246e
lea eax, [ebx + 1]
cmp eax, dword [ebp - 8]
jae 0x4d23f0
cmp byte [eax], 0xa
jne 0x4d23e5
push 2
mov byte [esi], 0xa
pop eax
jmp 0x4d23eb
xor eax, eax
mov byte [esi], 0xd
inc eax
add ebx, eax
inc esi
jmp 0x4d246e
push 0
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4d2467
cmp dword [ebp - 0x14], 0
je 0x4d2467
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x526528]
test byte [eax + edi + 0x28], 0x48
je 0x4d243e
mov dl, byte [ebp - 1]
cmp dl, 0xa
jne 0x4d242e
mov byte [esi], dl
jmp 0x4d246a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x526528]
mov byte [eax + edi + 0x2a], dl
jmp 0x4d246a
cmp byte [ebp - 1], 0xa
jne 0x4d2450
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x4d2450
mov byte [esi], 0xa
jmp 0x4d23ed
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004db804
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4d246b
mov byte [esi], 0xd
inc esi
mov edx, dword [ebp + 0xc]
cmp ebx, dword [ebp - 8]
jb 0x4d23b9
jmp 0x4d2498
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x526528]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4d2493
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4d2498
mov cl, byte [ebx]
mov byte [esi], cl
inc esi
sub esi, edx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d24a3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
sar ecx, 6
imul edi, eax, 0x30
mov dword [ebp - 8], ecx
push 0xa
mov eax, dword [ecx*4 + 0x526528]
pop ebx
mov edx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp + 0xc]
test esi, esi
je 0x4d24e7
cmp word [edx], bx
jne 0x4d24e7
or byte [edi + eax + 0x28], 4
jmp 0x4d24ec
and byte [edi + eax + 0x28], 0xfb
lea eax, [edx + esi*2]
mov ebx, edx
mov dword [ebp - 0xc], eax
mov esi, edx
cmp edx, eax
jae 0x4d2640
mov dword [ebp - 0x10], 0xd
movzx eax, word [ebx]
cmp eax, 0x1a
je 0x4d2620
cmp ax, word [ebp - 0x10]
je 0x4d2525
mov word [esi], ax
add esi, 2
add ebx, 2
jmp 0x4d2615
lea eax, [ebx + 2]
cmp eax, dword [ebp - 0xc]
jae 0x4d254b
push 0xa
pop ecx
cmp word [eax], cx
jne 0x4d253b
push ecx
pop eax
push 4
jmp 0x4d2540
push 0xd
pop eax
push 2
mov word [esi], ax
pop eax
add ebx, eax
jmp 0x4d260f
push 0
mov ebx, eax
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4d2606
cmp dword [ebp - 0x18], 0
je 0x4d2606
mov ecx, dword [ebp - 8]
push 0xa
mov eax, dword [ecx*4 + 0x526528]
test byte [edi + eax + 0x28], 0x48
pop eax
je 0x4d25d2
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x4d2596
mov word [esi], ax
jmp 0x4d25ca
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ecx*4 + 0x526528]
mov word [ebp - 0x20], dx
push 0xa
mov byte [edi + eax + 0x2a], dl
mov ecx, dword [ecx*4 + 0x526528]
mov al, byte [ebp - 0x1f]
pop edx
mov byte [edi + ecx + 0x2b], al
mov ecx, dword [ebp - 8]
mov eax, dword [ecx*4 + 0x526528]
mov byte [edi + eax + 0x2c], dl
mov edx, dword [ebp + 0xc]
add esi, 2
jmp 0x4d2615
cmp word [ebp - 4], ax
jne 0x4d25e7
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x4d25e7
mov word [esi], ax
add esi, 2
jmp 0x4d2615
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004db804
mov edx, dword [ebp + 0xc]
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4d2612
jmp 0x4d2609
mov edx, dword [ebp + 0xc]
push 0xd
pop eax
mov word [esi], ax
add esi, 2
mov ecx, dword [ebp - 8]
cmp ebx, dword [ebp - 0xc]
jb 0x4d2505
jmp 0x4d2640
mov ecx, dword [ecx*4 + 0x526528]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x4d2637
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x4d2640
mov cx, word [ebx]
mov word [esi], cx
add esi, 2
sub esi, edx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4dc350
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004dc1cd

Function at 0x4defe7
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004dec89

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x432072
nop
mov ebx, 0x40c7d0
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x440465a7
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x432060
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4320d2
nop
mov ebx, 0x42f314
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x67185122
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x10156490
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jle 0x101564dc
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x10], eax
xor edi, edi
push 0
mov ebx, ecx
push ecx
mov esi, edx
push edx
push dword [ebp - 0x10]
call sub.wsock32.dll_send
cmp eax, 0xffffffff
je 0x101564e0
add edi, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
cmp dword [eax + 4], 0
je 0x10156515
mov eax, edi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
jmp 0x101564d4
call sub.wsock32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x1015653f
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 4]
cmp dword [ecx + 4], 0
jne 0x1015653f
mov ecx, dword [ebp - 0x10]
mov edx, 2
push dword [ebp + 0x18]
call fcn.101a0dc0
add esp, 4
test eax, eax
mov ecx, ebx
mov edx, esi
jns 0x101564af
jmp 0x10156548
cmp edi, ebx
jge 0x101564d2
mov ecx, dword [ebp - 0x10]
mov edx, 2
push dword [ebp + 0x18]
call fcn.101a0dc0
add esp, 4
mov ecx, eax
xor eax, eax
dec eax
test ecx, ecx
mov ecx, ebx
mov edx, esi
jns 0x101564af
jmp 0x101564d4
push eax
call fcn.101a77e0
add esp, 4
xor eax, eax
dec eax
jmp 0x101564d4

Function at 0x10159c80
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.10159c90

Function at 0x10159c90
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x28
mov eax, dword [0x101f1014]
xor eax, ebp
mov dword [ebp - 8], eax
lea esi, [ebp - 0x2c]
push esi
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov esi, dword [esi + 0x1c]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10157a00
mov eax, esi
add esp, 0x28
pop esi
pop ebp
ret
Function at 0x10009560
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x1000956f
pop dword [ebp - 0x20]
mov eax, 0x3231d60f
add eax, 0xddcebf60
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x893da57
add dword [ebp - 0x30], 0x45be6af4
mov dword [ebp - 0x2c], 0x4b4176a5
sub dword [ebp - 0x2c], 0x190e2a60
mov dword [ebp - 0x28], 0x89ab769b
add dword [ebp - 0x28], 0xc2a0cd93
mov dword [ebp - 0x24], 0x1beeeee3
sub dword [ebp - 0x24], 0x1beeeee3
lea eax, [ebp - 0x30]
push eax
mov eax, 0x448003ce
add eax, 0xcb841c66
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0xefb2d427
add dword [ebp - 0x30], 0x84bf952f
mov dword [ebp - 0x2c], 0xdcc552be
sub dword [ebp - 0x2c], 0x9b58f149
mov dword [ebp - 0x28], 0x8b07f937
add dword [ebp - 0x28], 0xd8677335
mov dword [ebp - 0x24], 0xf0dd4799
sub dword [ebp - 0x24], 0xf0dd4799
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, 0xa396fb66
sub eax, 0x9392db1a
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x4925c
push 0
call eax
mov ecx, 0xee01524a
sub ecx, 0xee010250
xor edx, edx
add edx, eax
mov esi, 0xb0b92664
add esi, 0x5f4c579c
add esi, dword [ebp - 0x20]
mov ebx, 0x9cf6849
xor dword [ebp - 0xc], 0x79838c2b
mov edi, dword [esi]
xor dword [ebp - 0x18], 0xbca97598
xor edi, ebx
sub dword [ebp - 0xc], 0x3e5182ea
mov dword [edx], edi
sub dword [ebp - 0xc], edi
add edx, 0xe84f39e0
sub edx, 0xe84f39dc
add esi, 4
loop 0x1000968d
add eax, 0xeda8ef1a
sub eax, 0xeda7bc5f
xor ebx, ebx
add ebx, eax
add eax, 0xc8b3a29
add eax, 0xf374c5dc
mov ecx, 0xffd77c16
sub ecx, 0xefd77c16
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x100346a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100512d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x100346d0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x10034700
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x10034700
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x100347fa
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10034729
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1003475d
push dword [esi + 0x4c]
movsx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
test eax, eax
js 0x100347fa
cmp eax, 1
jle 0x100347bb
cmp eax, 3
jne 0x100347fa
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.10009560
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x100347d9
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x100347fa
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x100347fa
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
Function at 0x100396b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100412f8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100512d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x1005128c]
cmp eax, 0xffffffff
jne 0x100396e6
xor ebx, ebx
jmp 0x100396ef
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x1003972f
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0xc]
test eax, eax
jne 0x1003976e
test esi, esi
jne 0x10039772
push 0x10038230
push 0x10052ad8
call fcn.10009560
mov eax, dword [0x1005128c]
add esp, 8
cmp eax, 0xffffffff
je 0x1003972f
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x1003975c
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x1003975c
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x100397b4
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x1003979d
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x10039772
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x10039700
nop
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x100397d9
mov edx, dword [esi + 0x1c]
test edx, edx
je 0x100397d9
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x14]
call fcn.10009560
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x100397c0
jmp 0x10039700
Function at 0x401a40
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [ecx]
lea eax, [esp + 8]
push 0
push eax
mov eax, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8

Function at 0x100289d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x100330b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10035b0c]
test dword [ebp + 8], eax
je 0x10028a7a
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x808]
push eax
call fcn.1001861e
xor eax, eax
add esp, 0xc
mov word [ebp - 8], ax
mov eax, dword [0x10035b08]
test eax, eax
je 0x10028a6d
lea ecx, [ebp - 0x808]
push ecx
push eax
call fcn.1001861e
mov eax, dword [0x100330ac]
pop ecx
pop ecx
test eax, eax
jle 0x10028a7a
push esi
mov esi, dword [0x10035b10]
push edi
mov edi, dword [0x10035b14]
cdq
push edx
push eax
push edi
push esi
call fcn.10029420
add esi, 1
mov dword [0x10035b10], esi
adc edi, 0
or eax, edx
mov dword [0x10035b14], edi
pop edi
pop esi
jne 0x10028a7a
push dword [0x10035b08]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
pop ecx
jmp 0x10028a7a
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10028d50
leave
ret

Function at 0x408f9a
Capabilities:
Encode data using xor

Disassembly:
call 0x408e8d
mov ecx, 0x1f7
call 0x408f9a
rcr dword [esi + 0x30], 0x4c
push cs
pop es
xor byte [esi + ecx + 7], cl
loop 0x408f9d
mov eax, 0x50402e7
out dx, al
clc
div esi
cmc
retf 0x3d52
Function at 0x401c57
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x401c66
pop dword [ebp - 0x24]
mov eax, 0xdec444a5
sub eax, 0xde84283f
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0x78f2994a
add dword [ebp - 0x34], 0xd55fac01
mov dword [ebp - 0x30], 0x6e07874c
add dword [ebp - 0x30], 0xc42bc4f9
mov dword [ebp - 0x2c], 0x8cfbf858
add dword [ebp - 0x2c], 0xbf504bd6
mov dword [ebp - 0x28], 0x7bd08a32
sub dword [ebp - 0x28], 0x7bd08a32
lea eax, [ebp - 0x34]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0x21eb8189
sub dword [ebp - 0x34], 0xad791833
mov dword [ebp - 0x30], 0x8032930c
add dword [ebp - 0x30], 0xc139ce69
mov dword [ebp - 0x2c], 0x79378173
add dword [ebp - 0x2c], 0xea37eaf9
mov dword [ebp - 0x28], 0xa34096b6
sub dword [ebp - 0x28], 0xa34096b6
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0x8c9ab219
sub eax, 0x8c5a81ed
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x3691a
push 0
call eax
mov ecx, 0x83b77862
add ecx, 0x7c48cff8
mov esi, eax
mov edi, 0x5d35ad36
sub edi, 0x5cf53d36
add edi, dword [ebp - 0x24]
mov ebx, 0x5d309c3c
sub ebx, 0xb719500a
sub dword [ebp - 0xc], esi
mov edx, dword [edi]
sub edx, ebx
xor dword [ebp - 0x1c], 0x17cba6f3
mov dword [esi], edx
xor dword [ebp - 0x10], 0xd9b2d0d9
add esi, 0xf99b0743
add esi, 0x664f8c1
add edi, 0x7a64d42a
add edi, 0x859b2bda
loop 0x401d83
add eax, 0xe41827f5
sub eax, 0xe41713ba
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x24]
call ebx
leave
ret

Function at 0x401fb2
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, 0x404f28
jmp fcn.0040170c

Function at 0x401ff6
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x404f28
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402013
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
je 0x402018
push 1
pop eax
pop esi
ret
call fcn.00401fb2
pop esi
ret
Function at 0x10025c73
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x10025c82
pop dword [ebp - 0x48]
mov eax, 0xa01dfea8
add eax, 0x6fe45dda
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0x75e18705
add dword [ebp - 0x58], 0xd870be46
mov dword [ebp - 0x54], 0x3bf9aaa5
sub dword [ebp - 0x54], 0x9c65e60
mov dword [ebp - 0x50], 0x871ea79b
add dword [ebp - 0x50], 0xc52d9c93
mov dword [ebp - 0x4c], 0x1c4c5c10
add dword [ebp - 0x4c], 0xe3b3a3f0
lea eax, [ebp - 0x58]
push eax
mov eax, 0xc50ffdf4
add eax, 0x4af35324
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0xd372a60e
sub dword [ebp - 0x58], 0x5f003cb8
mov dword [ebp - 0x54], 0x6b9e7cc8
add dword [ebp - 0x54], 0xd5cde4ad
mov dword [ebp - 0x50], 0x3d0e36b0
add dword [ebp - 0x50], 0x266135bc
mov dword [ebp - 0x4c], 0x4e39b7b
sub dword [ebp - 0x4c], 0x4e39b7b
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, 0x32fe3a1d
add eax, 0xdd051747
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x39f9a
push 0
call eax
mov ecx, 0x45babc6e
add ecx, 0xba458707
mov edx, eax
mov edi, 0x184dc39a
add edi, 0xf7bac066
add edi, dword [ebp - 0x48]
mov esi, 0x31525e94
xor dword [ebp - 0x20], 0xd1022c17
mov ebx, dword [edi]
xor ebx, esi
sub dword [ebp - 0x30], 0xbba654e9
mov dword [edx], ebx
sub dword [ebp - 0x18], edi
add edx, 0x4d72c90e
sub edx, 0x4d72c90a
add edi, 4
loop 0x10025d9e
add eax, 0x100a7
mov ebx, eax
add eax, 0xadb24315
add eax, 0x524dbcf0
mov ecx, 0x5c517f59
add ecx, 0xb3ae80a7
add ecx, dword [ebp - 0x48]
call ebx
leave
ret