joyce8/EMBER2024-capa huggingface dataset:
Function at 0x9d4300
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x511000]
push edi
jmp 0x9d431a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x9d4321
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x9d4310
mov eax, 1
add ebx, ebx
jne 0x9d4333
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x9d4344
jne 0x9d4363
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x9d4363
dec eax
add ebx, ebx
jne 0x9d4350
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x9d4328
add ebx, ebx
jne 0x9d435f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x9d43b5
xor ecx, ecx
sub eax, 3
jb 0x9d437b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x9d43ea
sar eax, 1
mov ebp, eax
jmp 0x9d4386
add ebx, ebx
jne 0x9d4386
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x9d4354
inc ecx
add ebx, ebx
jne 0x9d4394
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x9d4354
add ebx, ebx
jne 0x9d43a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x9d4396
jne 0x9d43b2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x9d4396
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x9d43d4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x9d43c6
jmp 0x9d4316
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x9d43d4
add edi, ecx
jmp 0x9d4316
pop esi
mov edi, esi
mov ecx, 0x1854b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x9d43f2
cmp byte [edi], 0x57
jne 0x9d43f2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x9d43f7
lea edi, [esi + 0x5d1000]
mov eax, dword [edi]
or eax, eax
je 0x9d4466
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5d9548]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5d96a8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x9d4424
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5d96b0]
or eax, eax
je 0x9d4460
mov dword [ebx], eax
add ebx, 4
jmp 0x9d4441
call dword [esi + 0x5d96ac]
mov ebp, dword [esi + 0x5d96b4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x9d449a
sub esp, 0xffffff80
jmp 0x743fe4
Function at 0x4a9961
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4de034]
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 0x4a99ac
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004a9e23
test al, al
jne 0x4a99a6
sub edx, 2
cmp edx, edi
jne 0x4a998c
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4a99ce
lea eax, [edi + 2]
cmp edx, eax
je 0x4a99ce
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004a955a
add esp, 0x10
jmp 0x4a9ac8
push esi
lea ecx, [ebp - 0x255]
call fcn.004a9e23
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 0x4a9a11
push dword [ebp - 0x25c]
jmp 0x4a99be
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 0x4a9a4e
cmp word [ebp - 0x226], 0
je 0x4a9a6f
cmp word [ebp - 0x226], ax
jne 0x4a9a4e
cmp word [ebp - 0x224], 0
je 0x4a9a6f
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004a955a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4a9abb
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4a9a28
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4a9aa3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4a9ac8
push 0x4a8f42
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00405bd7
add esp, 0x10
jmp 0x4a9a98
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.0040335a
leave
ret

Function at 0x56b591
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x56b2fc
call fcn.0056b5b2
sub esp, 4
mov dword [esp], 0x28c7ab9d
pop ebx
xor dword [eax], edi
sub ebx, ebx
inc eax
mov ebx, ebx
cmp eax, esi
jne fcn.0056b591
ret
Function at 0x4014c0
Capabilities:
Create thread
Execute command

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x402b95
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x405004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
push str.title_Steam
call esi
push 8
call fcn.00401c04
mov dword [ebp - 0x1c], eax
mov dword [eax], str.Microvolts.exe
mov dword [eax + 4], 0x401250
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
push ecx
push 0
push eax
push 0x401b40
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x20
mov dword [ebp - 0x18], eax
test eax, eax
je 0x40161a
mov dword [ebp - 4], 1
cmp dword [ebp - 0x14], 0
jne 0x40154d
push 1
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
call dword [sym.imp.MSVCP140.dll__Thrd_id]
mov ecx, dword [ebp - 0x14]
cmp ecx, eax
jne 0x401562
push 5
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
push 0
push ecx
push dword [ebp - 0x18]
call dword [sym.imp.MSVCP140.dll__Thrd_join]
add esp, 0xc
test eax, eax
je 0x40157d
push 2
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
push dword [0x405018]
xorps xmm0, xmm0
push str._npid:__d_n
movlpd qword [ebp - 0x18], xmm0
call fcn.00401020
add esp, 8
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [0x405018]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
jne 0x4015d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.nigger_1:_0x_X_n
call fcn.00401020
push str.PAUSE
call esi
add esp, 0xc
jmp 0x4015f2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.nigger_2_n
call fcn.00401020
push str.PAUSE
call esi
add esp, 8
cmp dword [ebp - 0x14], 0
je 0x4015fe
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
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.00401bf6
mov esp, ebp
pop ebp
ret
push 6
mov dword [ebp - 0x14], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3

Function at 0x4024b3
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4029a5
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x405004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ax, word [0x403214]
xorps xmm0, xmm0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x30], 0xa
movq xmm0, qword [str.MyPassword]
mov dword [ebp - 0x2c], 0xf
movq qword [ebp - 0x40], xmm0
mov word [ebp - 0x38], ax
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 1
mov edx, str.Input_Password:
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.004014f0
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
lea edx, [ebp - 0x28]
call fcn.00401720
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x28]
mov edi, dword [ebp - 0x28]
cmovae edx, edi
cmp dword [ebp - 0x18], 0xa
je 0x401319
lea ecx, [ebp - 0x40]
mov esi, 6
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4012e4
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4012d3
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x40130b
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x40130b
cmp esi, 0xfffffffe
je 0x401307
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x40130b
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x40130b
xor eax, eax
jmp 0x401310
sbb eax, eax
or eax, 1
mov edx, str.Good_Job
test eax, eax
jne 0x40131e
mov edx, str.Password_Incorect.
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push 0x401920
call fcn.004014f0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push str.pause
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov eax, dword [ebp - 0x14]
add esp, 4
cmp eax, 0x10
jb 0x401379
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x40136f
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40136f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edi
call fcn.00401c7f
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401c41
mov esp, ebp
pop ebp
ret

Function at 0x4024e7
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x403e59
pop dword [ebp - 0x10]
mov eax, 0x696b7b2e
add eax, 0x96d4c32b
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x59083297
add dword [ebp - 0x20], 0xf54a12b4
mov dword [ebp - 0x1c], 0x76d73060
sub dword [ebp - 0x1c], 0x44a3e41b
mov dword [ebp - 0x18], 0x1f2a5cd1
sub dword [ebp - 0x18], 0xd2de18a3
mov dword [ebp - 0x14], 0x22356664
add dword [ebp - 0x14], 0xddca999c
lea eax, [ebp - 0x20]
push eax
mov eax, 0x8b89d804
add eax, 0x74b69860
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0xb046330d
sub dword [ebp - 0x20], 0x3bd3c9b7
mov dword [ebp - 0x1c], 0x6fffae98
add dword [ebp - 0x1c], 0xd16cb2dd
mov dword [ebp - 0x18], 0xea67dfaf
sub dword [ebp - 0x18], 0x86f87343
mov dword [ebp - 0x14], 0xabdfe1a8
sub dword [ebp - 0x14], 0xabdfe1a8
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0x33c2f272
sub eax, 0x338281ca
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x3510d
push 0
call eax
mov ecx, 0x6143fa96
sub ecx, 0x6143b950
xor edi, edi
add edi, eax
mov esi, 0x410000
add esi, dword [ebp - 0x10]
mov ebx, 0xfce4ea5f
add ebx, 0x3cc08eea
add dword [ebp - 8], edx
mov edx, dword [esi]
sub dword [ebp - 8], 0xe9b20d29
add edx, ebx
xor dword [ebp - 0xc], edx
mov dword [edi], edx
xor dword [ebp - 4], eax
add edi, 4
add esi, 0x58928ec
sub esi, 0x58928e8
loop 0x403f77
add eax, 0x5b732bc1
sub eax, 0x5b7233d6
mov ebx, eax
add eax, 0x1dd0b62e
add eax, 0xe22f49d7
mov ecx, 0xd2ebd8ba
sub ecx, 0xd2abd8ba
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x449559
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5ddf80]
jne 0x449563
repz ret
jmp fcn.0044bbfe

Function at 0x453288
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5ddf80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0044eb02
and dword [ebp - 0x14], 0
cmp dword [0x5dfcf4], 0
mov dword [ebp - 0x18], eax
jne 0x45333b
push 0x4b12f0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4533e3
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4b12e4
push ebx
call edi
test eax, eax
je 0x4533e3
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x4b12d4
push ebx
mov dword [0x5dfcf4], eax
call edi
push eax
call esi
push 0x4b12c0
push ebx
mov dword [0x5dfcf8], eax
call edi
push eax
call esi
push 0x4b12a4
push ebx
mov dword [0x5dfcfc], eax
call edi
push eax
call esi
mov dword [0x5dfd04], eax
test eax, eax
je 0x45333b
push 0x4b128c
push ebx
call edi
push eax
call esi
mov dword [0x5dfd00], eax
mov eax, dword [0x5dfd00]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x453394
cmp dword [0x5dfd04], ecx
je 0x453394
push eax
call esi
push dword [0x5dfd04]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x453394
test ebx, ebx
je 0x453394
call edi
test eax, eax
je 0x45338b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x45338b
test byte [ebp - 8], 1
jne 0x453394
or dword [ebp + 0x10], 0x200000
jmp 0x4533c7
mov eax, dword [0x5dfcf8]
cmp eax, dword [ebp - 0x18]
je 0x4533c7
push eax
call esi
test eax, eax
je 0x4533c7
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4533c7
mov eax, dword [0x5dfcfc]
cmp eax, dword [ebp - 0x18]
je 0x4533c7
push eax
call esi
test eax, eax
je 0x4533c7
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5dfcf4]
call esi
test eax, eax
je 0x4533e3
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4533e5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00449559
leave
ret
Function at 0x401410
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401467
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401467
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x401456
cmp esi, edx
jae 0x401467
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x401444
cmp esi, edx
jae 0x401467
movzx eax, word [esi]
neg eax
pop edi
sbb eax, eax
and eax, esi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x40278a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4027c9
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4027c9
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4027c9
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4027c9
cmp dword [ecx + 0x74], 0xe
jbe 0x4027c9
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x408af5
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411d74
push 0x411d6c
push str.FlsAlloc
push 0x1f
call fcn.00408a30
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408b29
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f138]
call esi
jmp 0x408b2f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x408b73
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411d84
push 0x411d7c
push str.FlsGetValue
push 0x21
call fcn.00408a30
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408baa
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f138]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x408bb2
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411d8c
push 0x411d84
push str.FlsSetValue
push 0x22
call fcn.00408a30
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408bec
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x40f138]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40a3c6
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x417018]
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 0x40a411
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0040a561
test al, al
jne 0x40a40b
sub edx, 2
cmp edx, edi
jne 0x40a3f1
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x40a433
lea eax, [edi + 2]
cmp edx, eax
je 0x40a433
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0040a312
add esp, 0x10
jmp 0x40a52d
push esi
lea ecx, [ebp - 0x255]
call fcn.0040a561
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 0x40a476
push dword [ebp - 0x25c]
jmp 0x40a423
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 0x40a4b3
cmp word [ebp - 0x226], 0
je 0x40a4d4
cmp word [ebp - 0x226], ax
jne 0x40a4b3
cmp word [ebp - 0x224], 0
je 0x40a4d4
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0040a312
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x40a520
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x40a48d
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x40a508
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x40a52d
push 0x40a142
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040c2b0
add esp, 0x10
jmp 0x40a4fd
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.00402356
leave
ret

Function at 0x40dd30
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40dd5d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40dd5d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x438c92
Capabilities:
Encode data using xor

Disassembly:
push 0x438a14
pop esi
sub edx, ebx
dec edx
mov ebx, ebx
call fcn.00438ccb
and ebx, ebx
sub edx, 0x99909aca
xor dword [ecx], esi
sub edx, 0x9825fb93
add ebx, ebx
inc ecx
and ebx, ebx
sub ebx, edx
add ebx, edx
cmp ecx, edi
jne fcn.00438c92
sub edx, 1
ret
Function at 0x401000
Capabilities:
Accept command line arguments
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x404060]
xor eax, ebp
mov dword [ebp - 0xc], eax
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0x4046b8
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x401071
push 0x400
push 0x4040a0
push 1
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x32
push 0x40406c
push 2
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x10
push 0x40406c
push 0x4040a0
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x4011bc
push 0x4046b8
call sub.MSVCR71.dll_strlen
add esp, 4
add eax, 0x4046b7
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
cmp eax, 0x5c
jne 0x4010a2
mov ecx, dword [ebp - 4]
mov byte [ecx], 0
mov edx, dword [ebp - 4]
sub edx, 1
mov dword [ebp - 4], edx
jmp 0x401086
push 0x4046b8
call dword [sym.imp.MSVCR71.dll__chdir]
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea eax, [ebp - 0x118]
push eax
call sub.MSVCR71.dll_strcpy
add esp, 8
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.MSVCR71.dll__strupr]
add esp, 4
push 0x404014
lea edx, [ebp - 0x118]
push edx
call dword [sym.imp.MSVCR71.dll_strstr]
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40110d
push str..EXE
call sub.MSVCR71.dll_strlen
add esp, 4
add eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov byte [eax], 0
lea ecx, [ebp - 0x118]
push ecx
call sub.MSVCR71.dll_strlen
add esp, 4
lea edx, [ebp + eax - 0x119]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
movsx ecx, byte [eax]
cmp ecx, 0x22
jne 0x401142
mov edx, dword [ebp - 8]
mov byte [edx], 0
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x401126
lea ecx, [ebp - 0x118]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
movsx eax, byte [edx]
cmp eax, 0x22
jne 0x401161
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
jmp 0x40114b
mov edx, dword [ebp + 8]
mov dword [0x4044a8], edx
mov dword [0x4044ac], 0
push 0x104
mov eax, dword [ebp - 8]
push eax
push 0x4044b0
call dword [sym.imp.MSVCR71.dll_strncpy]
add esp, 0xc
push 0x404bc0
push 0x4045b4
call sub.MSVCR71.dll_strcpy
add esp, 8
push 0
push 0x4011d0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
push 0x66
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_DialogBoxParamA]
mov eax, 1
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00401dbb
mov esp, ebp
pop ebp
ret 0x10

Function at 0x401710
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [0x404bc4], eax
push 0
push 0
push 0x401740
call dword [sym.imp.MSVCR71.dll__beginthread]
add esp, 0xc
pop ebp
ret