joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402130
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x420
mov eax, dword [0x40c060]
push ebx
push edi
mov edi, dword [sym.imp.MSVCR71.dll_strstr]
mov ebx, ecx
push 0x408a60
push ebx
mov dword [esp + 0x42c], eax
call edi
add esp, 8
test eax, eax
je 0x402173
push 0x408a60
push ebx
mov byte [eax], 0x2f
call edi
add esp, 8
test eax, eax
jne 0x402161
xor eax, eax
mov word [esp + 0x10], 0
mov ecx, 0x103
lea edi, [esp + 0x12]
rep stosd dword es:[edi], eax
push 0x207
stosw word es:[edi], ax
lea eax, [esp + 0x14]
push eax
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esi + 0xc]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::operator_unsigned_short_int_const__]
push ebx
lea ecx, [esi + 0x28]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
mov edx, dword [ebp + 8]
push edx
lea ecx, [esi + 0x44]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
mov ebx, dword [sym.imp.WINMM.dll_timeGetTime]
xor edi, edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
call ebx
mov dword [esi + 0x74], eax
call ebx
mov dword [esi + 0x78], eax
mov eax, 1
mov dword [esi + 0x64], eax
mov dword [esi + 0x68], eax
mov eax, dword [esi + 0x60]
push edi
push eax
mov dword [esi + 0x7c], edi
mov dword [esi + 0x80], edi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea ecx, [esp + 0xc]
push ecx
push edi
push esi
push 0x402270
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x40e1b0
mov dword [esi + 0x60], eax
call ebx
mov edi, dword [esi + 0x64]
push 0x40e1b0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
je 0x402253
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x40e1b0
call ebx
mov edi, dword [esi + 0x64]
push 0x40e1b0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jne 0x402232
mov eax, dword [esi + 0x68]
mov ecx, dword [esp + 0x424]
test eax, eax
setne al
call fcn.00406fae
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x402960
Capabilities:
Create directory

Disassembly:
sub esp, 0x104
mov eax, dword [0x40c060]
push ebx
push ebp
mov ebp, dword [sym.imp.MSVCR71.dll__mkdir]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x110], eax
mov al, byte [edi]
xor ebx, ebx
xor esi, esi
cmp al, bl
je 0x4029b7
mov al, byte [edi]
cmp al, 0x5c
mov byte [esp + esi + 0x10], al
je 0x40299a
cmp al, 0x2f
je 0x40299a
inc edi
inc esi
jmp 0x4029b3
lea eax, [esp + 0x10]
push eax
mov byte [esp + esi + 0x14], bl
call ebp
add esp, 4
mov byte [esp + esi + 0x10], 0x5c
inc esi
mov byte [esp + esi + 0x10], bl
inc edi
cmp byte [edi], bl
jne 0x402988
lea ecx, [esp + 0x10]
push ecx
mov byte [esp + esi + 0x14], bl
call ebp
mov ecx, dword [esp + 0x114]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
call fcn.00406fae
add esp, 0x104
ret

Function at 0x402b20
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x40750e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, ecx
mov dword [esp + 8], edi
mov dword [edi], 0x408a88
mov dword [esp + 0x14], 7
mov eax, dword [edi + 0x458]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov esi, 0x408a84
lea ecx, [edi + 0x438]
mov dword [edi + 0x3f4], esi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov byte [esp + 0x14], 6
lea ecx, [edi + 0x3d4]
mov dword [edi + 0x390], esi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [edi + 0x10c]
mov byte [esp + 0x14], 5
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea esi, [edi + 0x100]
call fcn.00404a30
lea esi, [edi + 0xf4]
call fcn.00404a30
lea ecx, [edi + 0xd4]
mov byte [esp + 0x14], 2
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [edi + 0xb8]
mov byte [esp + 0x14], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [edi + 0x9c]
mov byte [esp + 0x14], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, edi
mov dword [esp + 0x14], 0xffffffff
call fcn.004020c0
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4037e0
Capabilities:
Create thread
Terminate thread

Disassembly:
push ecx
push eax
lea ecx, [esi + 0xd4]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
mov edx, dword [esi + 0x458]
mov cx, word [esp + 8]
push 0
push edx
mov word [esi + 0xf0], cx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea eax, [esp]
push eax
push 0
push esi
push 0x403830
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x458], eax
mov al, 1
pop ecx
ret 4

Function at 0x4038b0
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
push edi
push 0x408c24
push eax
mov edi, ecx
or ebx, 0xffffffff
call dword [sym.imp.MSVCR71.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x403929
cmp edi, 0xffffffff
jne 0x4038f2
mov ebx, dword [sym.imp.MSVCR71.dll_fseek]
push 2
push 0
push esi
call ebx
push esi
call dword [sym.imp.MSVCR71.dll_ftell]
push 0
push 0
push esi
mov edi, eax
call ebx
add esp, 0x1c
push edi
call sub.MFC71.DLL_operator_new_1
push esi
push edi
mov ebx, eax
push 1
push ebx
call dword [sym.imp.MSVCR71.dll_fread]
mov edx, edi
mov ecx, ebx
or eax, 0xffffffff
call fcn.004065e0
push esi
mov edi, eax
call dword [sym.imp.MSVCR71.dll_fclose]
push ebx
call sub.MFC71.DLL_operator_delete
add esp, 0x1c
mov eax, edi
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x405510
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x10
push edi
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40554d
push edi
mov dword [esi + 8], edi
call dword [sym.imp.USER32.dll_GetParent]
push esi
mov dword [esi + 0xc], eax
mov eax, dword [esi + 8]
push str.CWINBUTTON
push eax
call dword [sym.imp.USER32.dll_SetPropA]
test eax, eax
jne 0x405554
push str.SetProp_ERROR
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
pop edi
add esp, 0x10
ret
mov eax, dword [esi + 0xc]
test eax, eax
mov edi, dword [sym.imp.USER32.dll_GetWindowLongA]
push ebx
je 0x4055b0
push 0xfffffffffffffff0
push eax
call edi
test eax, 0xc00000
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
je 0x40557e
push 4
call ebx
mov dword [esi + 0x2e0], eax
mov ecx, dword [esi + 0xc]
push 0xfffffffffffffff0
push ecx
call edi
test eax, 0x800000
je 0x405597
push 5
call ebx
mov dword [esi + 0x2e4], eax
mov edx, dword [esi + 0xc]
push 0xfffffffffffffff0
push edx
call edi
test eax, 0x40000
je 0x4055b0
push 0x2d
call ebx
mov dword [esi + 0x2e8], eax
mov eax, dword [esi + 8]
push 0xfffffffffffffff0
push eax
call edi
mov ecx, dword [esi + 8]
mov ebx, dword [sym.imp.USER32.dll_SetWindowLongA]
or eax, 0xb
push eax
push 0xfffffffffffffff0
push ecx
call ebx
mov eax, dword [esi + 8]
lea edx, [esp + 8]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push 5
push 5
push ecx
mov ecx, dword [esp + 0x14]
push edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_CreateRoundRectRgn]
mov edx, dword [esi + 8]
push 1
mov edi, eax
push edi
push edx
call dword [sym.imp.USER32.dll_SetWindowRgn]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esi + 8]
push 0x405c90
push 0xfffffffffffffffc
push eax
call ebx
pop ebx
mov dword [esi + 0x10], eax
mov eax, 1
pop edi
add esp, 0x10
ret
Function at 0x406ced
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x408570
call fcn.00406eec
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x406d2d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x406d2d
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x406d45
cmp eax, 0x20b
je 0x406d32
mov dword [ebp - 0x1c], ebx
jmp 0x406d59
cmp dword [ecx + 0x84], 0xe
jbe 0x406d2d
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x406d53
cmp dword [ecx + 0x74], 0xe
jbe 0x406d2d
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x419450], 0xffffffff
or dword [0x419454], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x40e164]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x40e160]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x41944c], eax
call fcn.004070c8
call fcn.00407168
cmp dword [0x40c070], ebx
jne 0x406db9
push fcn.00407168
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.00407156
push 0x40c038
push 0x40c034
call sub.MSVCR71.dll__initterm
push 0x40710c
call fcn.00406c8a
mov eax, dword [0x40e15c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x40e158]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x406e0d
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x40c030
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x406e8b
cmp al, bl
je 0x406e37
cmp dword [ebp - 0x20], ebx
jne 0x406e8b
mov al, byte [esi]
cmp al, bl
je 0x406e47
cmp al, 0x20
ja 0x406e47
inc esi
mov dword [ebp - 0x24], esi
jmp 0x406e37
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x406e63
movzx eax, word [ebp - 0x54]
jmp 0x406e66
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.004072e2
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x406e83
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x406ee0
cmp al, 0x22
jne 0x406e9a
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR71.dll__ismbblead]
pop ecx
test eax, eax
je 0x406ead
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x406e25
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00406f27
ret
Function at 0x12db082
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x12db0ce
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x12db0c8
mov ecx, dword [0x131b7f8]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x12db0bc
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x12db0a1
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, 1
jmp 0x12db0ca
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x12dcc53
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
add ecx, 0xf8
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x78]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
add edx, dword [ecx + 0x20]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x1c]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
jmp 0x12dccbf
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
cmp eax, dword [edx + 0x18]
jae 0x12dcd08
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.012f6100
add esp, 8
test eax, eax
jne 0x12dcd06
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
xor edx, edx
mov dx, word [ecx + eax*2]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0x12dcd0a
jmp 0x12dccb6
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x12e58fa
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2cc
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.012df337
add esp, 4
and eax, 0xff
test eax, eax
je 0x12e5983
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push 0x2cc
push 0
lea eax, [ebp - 0x2cc]
push eax
call fcn.012f0820
add esp, 0xc
mov dword [ebp - 0x2cc], 0x10001
lea ecx, [ebp - 0x2cc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x12e5981
mov ecx, dword [ebp - 0x214]
cmp ecx, dword [ebp + 0xc]
jne 0x12e5981
jmp 0x12e5983
jmp 0x12e5903
mov esp, ebp
pop ebp
ret

Function at 0x12e5df3
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
movsx eax, byte [0x131c404]
test eax, eax
jne 0x12e5e07
call fcn.012e5d24
xor ecx, ecx
mov cl, byte [0x131c401]
test ecx, ecx
jne 0x12e5e8e
xor edx, edx
mov dl, byte [0x131c400]
test edx, edx
jne 0x12e5e8e
cmp dword [0x131c60c], 0
je 0x12e5e69
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0x180
mov ecx, dword [0x131c60c]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 4], eax
push 0
mov edx, dword [ebp - 4]
push edx
push 0x186
mov eax, dword [0x131c60c]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [0x131c60c]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
jmp 0x12e5e8e
push 0x10001
push 0x131c404
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 2
jne 0x12e5e8e
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esp, ebp
pop ebp
ret
Function at 0x12e8f9a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x12e8faa
xor eax, eax
jmp 0x12e9173
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x12e912b
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x1319eac]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x1319eac]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x1319eac]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x1319eac]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x1319eac]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x1319eac]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x1319eac]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x1319eac]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0x10]
sub ecx, 8
mov dword [ebp + 0x10], ecx
jmp 0x12e8fb3
cmp dword [ebp + 0x10], 0
je 0x12e916d
mov edx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp + 8]
xor ecx, eax
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
mov eax, dword [ecx*4 + 0x1319eac]
xor eax, edx
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
cmp dword [ebp + 0x10], 0
jne 0x12e9131
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x12f29b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x13174c8
cmp edx, dword [eax]
je 0x12f29d2
add eax, 8
inc ecx
cmp eax, 0x1317558
jl 0x12f29c3
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x13174c8]
jne 0x12f2b00
mov eax, dword [0x131c688]
cmp eax, 1
je 0x12f2ada
test eax, eax
jne 0x12f2a03
cmp dword [0x1317204], 1
je 0x12f2ada
cmp edx, 0xfc
je 0x12f2b00
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x12f2a3a
lea eax, [ebp - 0x1a4]
push 0x131b2c8
push eax
call fcn.012f0980
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.012f0b30
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x12f2a7d
lea eax, [ebp - 0x1a4]
push eax
call fcn.012f0b30
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x131b2c4
push edi
call fcn.012f0bb0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x131b2a8
push eax
call fcn.012f0980
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.012f0990
lea eax, [ebp - 0xa0]
push 0x131b2a4
push eax
call fcn.012f0990
push dword [esi + 0x13174cc]
lea eax, [ebp - 0xa0]
push eax
call fcn.012f0990
push 0x12010
lea eax, [ebp - 0xa0]
push 0x131b27c
push eax
call fcn.012f4f78
add esp, 0x2c
pop edi
jmp 0x12f2b00
lea eax, [ebp + 8]
lea esi, [esi + 0x13174cc]
push 0
push eax
push dword [esi]
call fcn.012f0b30
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x21122d38
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x21122d75
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x21122d95
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.21124958
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x21123010
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.211246e8
test esi, esi
jne 0x21123047
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.211247d8
jmp 0x21123068
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.21122eac
mov dword [esp], eax
test esi, esi
je 0x21123068
cmp dword [ebx], 0
je 0x21123068
dec esi
jmp 0x2112304f
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x211237c8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x211be020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x21123860
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x21123840
xor eax, eax
push ebp
push 0x21123839
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x2112387c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x21123840
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x211be020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x211be020], ax
mov esp, ebp
pop ebp
ret

Function at 0x21124564
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x211c304c], 0
je 0x211245c5
cmp word [0x211c3220], 0xd7b2
jne 0x2112458d
cmp dword [0x211c3228], 0
jbe 0x2112458d
mov eax, 0x211c321c
call dword [0x211c3238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x211be06c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x211245ec
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x211be030], 0
jne 0x211245e1
push 0
push 0x211be064
push 0x211be06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret