joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100044c0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x278
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x274], eax
push ebx
push ebp
mov ebp, dword [esp + 0x284]
push esi
push edi
push 0x100
xor ebx, ebx
lea eax, [esp + 0x128]
push ebx
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x100
lea ecx, [esp + 0x20]
push ebx
push ecx
mov dword [esp + 0x24], ebx
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x51
lea edx, [esp + 0x22c]
push ebx
push edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x130], ebp
mov dword [esp + 0x12c], 1
call sub.MSVCR90.dll_memset
mov eax, dword [0x1000d084]
add esp, 0xc
push eax
lea ecx, [esp + 0x22c]
push 0x100071d0
push ecx
call dword [sym.imp.MSVCR90.dll_sprintf]
lea eax, [esp + 0x234]
add esp, 0xc
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10004561
sub eax, esi
push eax
lea edx, [esp + 0x22c]
push edx
mov esi, ebp
call fcn.10002690
add esp, 8
lea eax, [esp + 0x10]
push eax
push ebx
mov ecx, 0x41
lea esi, [esp + 0x128]
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
push ebx
lea ecx, [esp + 0x24]
push ecx
push ebx
mov dword [esp + 0x24], 0x14
mov dword [esp + 0x28], ebx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
je 0x100046a5
push 0x51
lea edx, [esp + 0x22c]
push ebx
push edx
call sub.MSVCR90.dll_memset
add esp, 0xc
push ebx
push 0x51
lea eax, [esp + 0x230]
push eax
push ebp
call dword [sym.imp.WS2_32.dll_recv]
push 0x51
lea ecx, [esp + 0x22c]
push ebx
push ecx
mov byte [esp + eax + 0x234], bl
call sub.MSVCR90.dll_memset
mov edx, dword [0x1000e558]
add esp, 0xc
push edx
lea eax, [esp + 0x22c]
push 0x100071d0
push eax
call dword [sym.imp.MSVCR90.dll_sprintf]
lea eax, [esp + 0x234]
add esp, 0xc
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10004620
sub eax, esi
push eax
lea ecx, [esp + 0x22c]
push ecx
mov esi, ebp
call fcn.10002690
add esp, 8
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 0x10]
push edx
push ebx
push ebx
lea eax, [esp + 0x24]
push eax
mov ecx, 0x41
lea esi, [esp + 0x130]
lea edi, [esp + 0x28]
push ebx
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x24], 0x14
mov dword [esp + 0x28], ebx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
je 0x100046a5
push 0x51
lea ecx, [esp + 0x22c]
push ebx
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
push ebx
push 0x51
lea edx, [esp + 0x230]
push edx
push ebp
call dword [sym.imp.WS2_32.dll_recv]
mov eax, 1
jmp 0x100046a7
xor eax, eax
mov ecx, dword [esp + 0x284]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100061d0
add esp, 0x278
ret
Function at 0x100048b0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x134
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x12c], eax
push ebx
push edi
xor ebx, ebx
push ebx
push 0xf
mov dword [esp + 0x10], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
lea eax, [esp + 8]
push eax
push edi
call sub.KERNEL32.dll_Process32First
lea eax, [esp + 0x2c]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100048f0
sub eax, edx
mov edx, eax
xor ecx, ecx
test edx, edx
jle 0x10004918
mov al, byte [esp + ecx + 0x2c]
cmp al, 0x41
jl 0x10004913
cmp al, 0x5f
jg 0x10004913
add al, 0x20
mov byte [esp + ecx + 0x2c], al
inc ecx
cmp ecx, edx
jl 0x10004901
mov ecx, esi
lea eax, [esp + 0x2c]
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10004940
test dl, dl
je 0x1000493c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10004940
add eax, 2
add ecx, 2
test dl, dl
jne 0x10004920
xor eax, eax
jmp 0x10004945
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1000495a
lea ecx, [esp + 8]
push ecx
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x100048e5
jmp 0x10004969
mov edx, dword [esp + 0x10]
mov dword [0x1000f218], edx
mov ebx, 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x134]
pop edi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.100061d0
add esp, 0x134
ret
Function at 0x10005160
Capabilities:
Enumerate threads
Print debug messages
Suspend thread

Disassembly:
sub esp, 0x12c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
call fcn.10004a20
mov esi, 0x1000723c
call fcn.100048b0
test eax, eax
jne 0x100051b3
mov esi, 0x10007248
call fcn.100048b0
test eax, eax
jne 0x100051b3
mov esi, str.gostop.exe
call fcn.100048b0
test eax, eax
je 0x100052bf
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea ecx, [esp + 0x18]
push ecx
push eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0x1c
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x100052b0
mov ebx, dword [sym.imp.MSVCR90.dll_sprintf]
mov ebp, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [esp + 0x20]
push edx
push 0
push 0x2000000
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
cmp esi, 0xffffffff
je 0x10005289
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
cmp eax, 0xf
je 0x10005215
cmp eax, 0xfffffff1
jne 0x10005289
push esi
call fcn.10004990
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov edi, eax
mov eax, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x1c]
push ecx
push edx
push eax
push edi
lea ecx, [esp + 0x48]
push str._xsize:_d_tid:_d_pid:_d_base:_ld_delta:_ld_n
push ecx
call ebx
mov eax, dword [0x1000f218]
mov ecx, dword [esp + 0x40]
add esp, 0x1c
cmp eax, ecx
jne 0x10005289
lea edx, [edi - 0x100001]
cmp edx, 0x3feffffe
ja 0x10005289
push ecx
push eax
push edi
lea eax, [esp + 0x40]
push str.stop:_x_d:_d_n
push eax
call ebx
add esp, 0x14
lea ecx, [esp + 0x34]
push ecx
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x100052a9
mov dword [esp + 0x10], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
push eax
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x100051e7
jmp 0x100052b0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x138]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100061d0
add esp, 0x12c
ret
Function at 0x100052e0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x108
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
push ebp
push edi
push 0x104
lea eax, [esp + 0x10]
push 0
push eax
call sub.MSVCR90.dll_memset
mov edi, dword [sym.imp.MSVCR90.dll_sprintf]
push esi
lea ecx, [esp + 0x1c]
push str._c_route_delete__s
push ecx
call edi
mov ebx, dword [sym.imp.SHELL32.dll_ShellExecuteA]
add esp, 0x18
push 0
push 0
lea edx, [esp + 0x14]
push edx
push str.cmd.exe
push 0
push 0
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7d0
call ebp
push str.mask_255.255.255.255_0.0.0.0
push esi
lea eax, [esp + 0x14]
push str._c_route_add__s__s
push eax
call edi
add esp, 0x10
push 0
push 0
lea ecx, [esp + 0x14]
push ecx
push str.cmd.exe
push 0
push 0
call ebx
push 0x7d0
call ebp
mov ecx, dword [0x1000f21c]
shl ecx, 4
pop edi
lea ecx, [ecx + 0x1000e588]
pop ebp
mov eax, esi
sub ecx, esi
pop ebx
jmp 0x10005390
mov dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
test dl, dl
jne 0x10005390
mov ecx, dword [esp + 0x104]
inc dword [0x1000f21c]
xor ecx, esp
call fcn.100061d0
add esp, 0x108
ret
Function at 0x100054e0
Capabilities:
List tcp connections and listeners

Disassembly:
sub esp, 0x108
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
push ebp
push esi
push edi
push 0
push 5
push 2
push 1
lea eax, [esp + 0x20]
push eax
push 0
mov dword [esp + 0x28], 0
call sub.IPHLPAPI.DLL_GetExtendedTcpTable
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
mov ebp, eax
push 0
push 5
push 2
push 1
lea edx, [esp + 0x20]
push edx
push ebp
call sub.IPHLPAPI.DLL_GetExtendedTcpTable
xor ebx, ebx
cmp dword [ebp], ebx
jbe 0x1000562e
lea edi, [ebp + 0x18]
cmp dword [edi - 0x14], 5
jne 0x10005621
mov eax, dword [edi]
push eax
call fcn.10005440
add esp, 4
lea edx, [esp + 0x14]
mov edi, edi
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
test cl, cl
jne 0x10005560
lea eax, [esp + 0x14]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10005571
sub eax, edx
mov edx, eax
xor ecx, ecx
test edx, edx
jle 0x10005599
mov al, byte [esp + ecx + 0x14]
cmp al, 0x41
jl 0x10005594
cmp al, 0x5f
jg 0x10005594
add al, 0x20
mov byte [esp + ecx + 0x14], al
inc ecx
cmp ecx, edx
jl 0x10005582
movzx ecx, word [edi - 4]
push ecx
call sub.WS2_32.dll_ntohs
movzx esi, ax
mov ecx, str.game.exe
lea eax, [esp + 0x14]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100055d0
test dl, dl
je 0x100055cc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100055d0
add eax, 2
add ecx, 2
test dl, dl
jne 0x100055b0
xor eax, eax
jmp 0x100055d5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x100055e1
cmp esi, 0x1964
jmp 0x1000561f
mov ecx, str.poker.exe
lea eax, [esp + 0x14]
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10005610
test dl, dl
je 0x1000560c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10005610
add eax, 2
add ecx, 2
test dl, dl
jne 0x100055f0
xor eax, eax
jmp 0x10005615
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x10005621
cmp esi, 0x3b63
je 0x1000563e
inc ebx
add edi, 0x18
cmp ebx, dword [ebp]
jb 0x10005545
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10005524
push ebp
call dword [sym.imp.MSVCR90.dll_free]
mov ecx, dword [esp + 0x118]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.100061d0
add esp, 0x108
ret
Function at 0x10005d30
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [0x1000f284]
lea eax, [esp]
push eax
push 0x1000f220
push 0
push 0
push 0x10008028
push ecx
mov dword [esp + 0x18], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, 0x1000f220
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10005d60
sub eax, edx
mov ecx, eax
xor eax, eax
test ecx, ecx
jle 0x10005d8d
mov edx, eax
and edx, 0x80000001
jns 0x10005d80
dec edx
or edx, 0xfffffffe
inc edx
add dl, al
sub byte [eax + 0x1000f220], dl
inc eax
cmp eax, ecx
jl 0x10005d71
pop ecx
ret

Function at 0x10005d90
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [0x1000f284]
lea eax, [esp]
push eax
push 0x1000f230
push 0
push 0
push 0x10008040
push ecx
mov dword [esp + 0x18], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, 0x1000f230
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10005dc0
sub eax, edx
mov ecx, eax
xor eax, eax
test ecx, ecx
jle 0x10005ded
mov edx, eax
and edx, 0x80000001
jns 0x10005de0
dec edx
or edx, 0xfffffffe
inc edx
add dl, al
sub byte [eax + 0x1000f230], dl
inc eax
cmp eax, ecx
jl 0x10005dd1
pop ecx
ret

Function at 0x10005df0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [0x1000f284]
lea eax, [esp]
push eax
push 0x1000f240
push 0
push 0
push 0x10008058
push ecx
mov dword [esp + 0x18], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, 0x1000f240
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10005e20
sub eax, edx
mov ecx, eax
xor eax, eax
test ecx, ecx
jle 0x10005e4d
mov edx, eax
and edx, 0x80000001
jns 0x10005e40
dec edx
or edx, 0xfffffffe
inc edx
add dl, al
sub byte [eax + 0x1000f240], dl
inc eax
cmp eax, ecx
jl 0x10005e31
pop ecx
ret

Function at 0x10005e50
Capabilities:
Create thread

Disassembly:
sub esp, 0x14
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push edi
lea eax, [esp + 8]
push eax
push 0
push 0
push 0x10005f00
push 0
push 0
mov byte [0x10008078], 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x10005e83
push eax
call edi
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0x100016e0
push 0
push 0
call esi
test eax, eax
je 0x10005e9e
push eax
call edi
lea edx, [esp + 0x10]
push edx
push 0
push 0
push 0x10002900
push 0
push 0
call esi
test eax, eax
je 0x10005eb9
push eax
call edi
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0x100038f0
push 0
push 0
call esi
test eax, eax
je 0x10005ed4
push eax
call edi
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0x10005670
push 0
push 0
call esi
test eax, eax
je 0x10005eef
push eax
call edi
pop edi
pop esi
add esp, 0x14
ret

Function at 0x100061d0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x100061da
repz ret
jmp fcn.1000658d
Function at 0x1000192e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
jmp 0x100556a7
in al, 0xfc
invalid
inc ebp
in al, dx
jno 0x10055671
inc ebp
in eax, dx
mov byte gs:[ebp - 0x12], 0x68

Function at 0x100037b5
Capabilities:
Contain obfuscated stackstrings

Disassembly:
jmp 0x100555fb
call eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0xc]
div ecx
test edx, edx
je 0x10055621
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
lea eax, [ebp - 0x30]
mov dword [ebp + 0xc], ecx
push eax

Function at 0x10004912
Capabilities:
Query environment variable

Disassembly:
jmp 0x1008643e
mov edi, edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10086452
xor edi, edi
jmp 0x10086489
push ebx
push esi
call fcn.10086347
sub eax, esi
sar eax, 1
lea ebx, [eax + eax]
push ebx
call fcn.1000419c
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10086479
push ebx
push esi
push edi
call fcn.10002135
add esp, 0xc
push 0
call fcn.10002815
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop ebx
mov eax, edi
pop edi
pop esi
ret

Function at 0x10004a48
Capabilities:
Terminate process

Disassembly:
jmp 0x100795af
push 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x100795bf
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.10002383
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x100264a0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x100bdbe8]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x100264fb
mov ecx, dword [ebp - 0x194]
mov eax, ecx
shr eax, 8
movzx edx, al
movzx eax, cl
lea eax, [eax + eax*4]
lea eax, [edx + eax*2]
cmp eax, 0x16
jge 0x100264fb
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10003f44
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
call fcn.10003f44
mov esp, ebp
pop ebp
ret
Function at 0x4027a8
Capabilities:
Terminate process

Disassembly:
test eax, eax
je 0x4027b6
call dword [0x51a01c]
or eax, eax
je 0x4027b7
ret
mov al, 1
jmp fcn.00402834

Function at 0x4027c0
Capabilities:
Terminate process

Disassembly:
test eax, eax
je 0x4027ce
call dword [0x51a020]
or eax, eax
jne 0x4027cf
ret
mov al, 2
jmp fcn.00402834

Function at 0x4027d8
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [eax]
test ecx, ecx
je 0x402810
test edx, edx
je 0x4027fa
push eax
mov eax, ecx
call dword [0x51a024]
pop ecx
or eax, eax
je 0x402809
mov dword [ecx], eax
ret
mov al, 2
jmp fcn.00402834
mov dword [eax], edx
mov eax, ecx
call dword [0x51a020]
or eax, eax
jne 0x4027f3
ret
mov al, 1
jmp fcn.00402834
test edx, edx
je 0x402824
push eax
mov eax, edx
call dword [0x51a01c]
pop ecx
or eax, eax
je 0x402809
mov dword [ecx], eax
ret

Function at 0x402834
Capabilities:
Terminate process

Disassembly:
and eax, 0x7f
mov ecx, dword [0x51e004]
test ecx, ecx
je 0x402844
pop edx
call ecx
dec eax
mov al, byte [eax + 0x40285d]
jns 0x402858
call fcn.00406cb0
mov eax, dword [eax + 4]
jmp fcn.00403c50

Function at 0x4029bc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x4029eb
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403dc4
jmp 0x402a09
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.00402944
mov edi, eax
test ebx, ebx
je 0x402a09
cmp dword [esi], 0
je 0x402a09
dec ebx
jmp 0x4029f2
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402ee0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402f78
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402f58
xor eax, eax
push ebp
push 0x402f51
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 0x402f94
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 0x402f58
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret

Function at 0x4031f8
Capabilities:
Terminate process

Disassembly:
test eax, eax
je 0x403212
mov ecx, eax
mov ecx, dword [ecx]
cmp ecx, edx
je 0x403212
mov ecx, dword [ecx - 0x24]
test ecx, ecx
jne 0x4031fe
mov al, 0xa
jmp fcn.00402834
ret

Function at 0x403244
Capabilities:
Terminate process

Disassembly:
cmp dword [0x51e01c], 0
je 0x402ae3
call dword [0x51e01c]
mov eax, 0xd2
jmp fcn.00403c50
push eax
push ecx
mov eax, dword [eax]
call fcn.00403214
pop ecx
pop eax
je 0x403253
jmp ebx
pop ecx
jmp 0x402ad4
Function at 0x40325c
Capabilities:
Terminate process

Disassembly:
push ebx
mov ebx, edx
mov eax, dword [eax]
call fcn.00403214
mov eax, ebx
pop ebx
jne 0x403271
pop ecx
jmp 0x402ad4
ret

Function at 0x403b2c
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, 0x51e4a4
mov esi, 0x51e038
mov edi, 0x51e03c
cmp byte [ebx + 0x24], 0
jne 0x403b5b
cmp dword [edi], 0
je 0x403b5b
mov edx, dword [edi]
mov eax, edx
xor edx, edx
mov dword [edi], edx
mov ebp, eax
call ebp
cmp dword [edi], 0
jne 0x403b4a
cmp dword [0x51e040], 0
je 0x403ba2
call fcn.00403aa8
cmp byte [0x51e048], 0
je 0x403b88
mov edx, 0x51a02c
mov eax, 0x51e21c
call fcn.0040654c
call fcn.004064cf
jmp 0x403b9b
push 0
push 0x51a04c
push 0x51a02c
push 0
call sub.user32.dll_MessageBoxA
xor eax, eax
mov dword [0x51e040], eax
cmp byte [ebx + 0x24], 2
jne 0x403bb2
cmp dword [esi], 0
jne 0x403bb2
xor eax, eax
mov dword [ebx + 0xc], eax
call fcn.0040397c
cmp byte [ebx + 0x24], 1
jbe 0x403bc2
cmp dword [esi], 0
je 0x403bdf
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x403bdf
call fcn.00405f24
mov eax, dword [ebx + 0x10]
mov edx, dword [eax + 0x10]
cmp edx, dword [eax + 4]
je 0x403bdf
push edx
call sub.kernel32.dll_FreeLibrary
call fcn.00403954
cmp byte [ebx + 0x24], 1
jne 0x403bed
call dword [ebx + 0x28]
cmp byte [ebx + 0x24], 0
je 0x403bf8
call fcn.00403af8
cmp dword [ebx], 0
jne 0x403c05
mov eax, dword [esi]
push eax
call sub.kernel32.dll_ExitProcess
mov eax, dword [ebx]
push esi
mov esi, eax
mov edi, ebx
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
pop esi
jmp 0x403ba2

Function at 0x403c94
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004027a8
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x51e049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x403c5c
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x404344
Capabilities:
Terminate process

Disassembly:
test edx, edx
je fcn.00404308
mov ecx, dword [edx - 4]
shr ecx, 1
je fcn.00404308
push ecx
push edx
push eax
call sub.oleaut32.dll_SysReAllocStringLen
test eax, eax
je 0x4042f0
ret

Function at 0x4043ec
Capabilities:
Terminate process

Disassembly:
mov al, 1
jmp fcn.00402834
test ecx, ecx
je fcn.00404308
push eax
push ecx
push edx
call sub.oleaut32.dll_SysAllocStringLen
test eax, eax
je 0x4042f0
pop edx
push dword [edx]
mov dword [edx], eax
call sub.oleaut32.dll_SysFreeString
ret
Function at 0x4044b4
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
mov esi, edx
mov edi, ecx
xor edx, edx
mov al, byte [esi]
mov dl, byte [esi + 1]
xor ecx, ecx
cmp al, 0xa
je 0x4044f3
cmp al, 0xb
je 0x4044f3
cmp al, 0xc
je 0x4044fd
cmp al, 0xd
je 0x404510
cmp al, 0xe
je 0x40452e
cmp al, 0xf
je 0x4044f3
cmp al, 0x11
je 0x4044f3
mov al, 2
pop edi
pop esi
pop ebx
jmp fcn.00402834
mov dword [ebx], ecx
add ebx, 4
dec edi
jg 0x4044f3
jmp 0x404542
mov dword [ebx], ecx
mov dword [ebx + 4], ecx
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], ecx
add ebx, 0x10
dec edi
jg 0x4044fd
jmp 0x404542
push ebp
mov ebp, edx
mov edx, dword [esi + ebp + 0xa]
mov eax, ebx
add ebx, dword [esi + ebp + 2]
mov ecx, dword [esi + ebp + 6]
mov edx, dword [edx]
call fcn.004044b4
dec edi
jg 0x404513
pop ebp
jmp 0x404542
push ebp
mov ebp, edx
mov eax, ebx
add ebx, dword [esi + ebp + 2]
mov edx, esi
call fcn.00404488
dec edi
jg 0x404531
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x404548
Capabilities:
Terminate process

Disassembly:
mov ecx, 1
jmp fcn.004044b4

Function at 0x404580
Capabilities:
Terminate process

Disassembly:
push eax
push ebx
push esi
push edi
mov ebx, eax
mov esi, edx
mov edi, ecx
xor edx, edx
mov al, byte [esi]
mov dl, byte [esi + 1]
cmp al, 0xa
je 0x4045c7
cmp al, 0xb
je 0x4045e1
cmp al, 0xc
je 0x4045f8
cmp al, 0xd
je 0x404607
cmp al, 0xe
je 0x404625
cmp al, 0xf
je 0x40463b
cmp al, 0x11
je 0x40464a
pop edi
pop esi
pop ebx
pop eax
mov al, 2
jmp fcn.00402834
cmp ecx, 1
mov eax, ebx
jg 0x4045d8
call fcn.00403ce0
jmp 0x404659
mov edx, ecx
call fcn.00403d04
jmp 0x404659
cmp ecx, 1
mov eax, ebx
jg 0x4045ef
call fcn.00404308
jmp 0x404659
mov edx, ecx
call fcn.00404320
jmp 0x404659
mov eax, ebx
add ebx, 0x10
call fcn.004052d0
dec edi
jg 0x4045f8
jmp 0x404659
push ebp
mov ebp, edx
mov edx, dword [esi + ebp + 0xa]
mov eax, ebx
add ebx, dword [esi + ebp + 2]
mov ecx, dword [esi + ebp + 6]
mov edx, dword [edx]
call fcn.00404580
dec edi
jg 0x40460a
pop ebp
jmp 0x404659
push ebp
mov ebp, edx
mov eax, ebx
add ebx, dword [esi + ebp + 2]
mov edx, esi
call fcn.00404554
dec edi
jg 0x404628
pop ebp
jmp 0x404659
mov eax, ebx
add ebx, 4
call fcn.00405fec
dec edi
jg 0x40463b
jmp 0x404659
mov eax, ebx
mov edx, esi
add ebx, 4
call fcn.00405b80
dec edi
jg 0x40464a
pop edi
pop esi
pop ebx
pop eax
ret

Function at 0x404660
Capabilities:
Terminate process

Disassembly:
mov ecx, 1
jmp fcn.00404580