joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52c730
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x591980], eax
je 0x52c755
mov eax, 0x10dd
jmp 0x52c8ed
cmp dword [0x591984], 0
je 0x52c768
mov eax, dword [0x591984]
jmp 0x52c8ed
cmp dword [ebp + 8], 0
jne 0x52c778
mov eax, 6
jmp 0x52c8ed
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x52c7a1
mov dword [ebp - 0xc], 6
mov ecx, dword [ebp - 0xc]
mov dword [0x591984], ecx
mov edx, dword [ebp + 8]
mov dword [0x591988], edx
mov eax, dword [ebp - 0xc]
jmp 0x52c8ed
push 0x18
call fcn.00413b31
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x52c7fa
mov dword [ebp - 0xc], 8
mov ecx, dword [ebp - 0xc]
mov dword [0x591984], ecx
cmp dword [ebp - 0x18], 0
je 0x52c7e9
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.00413b6b
add esp, 4
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp + 8]
mov dword [0x591988], ecx
mov eax, dword [ebp - 0xc]
jmp 0x52c8ed
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.0052b1b0
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0052b1b0
mov dword [ebp + 0xc], eax
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x36]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
sub edx, dword [ebp - 8]
mov dword [ebp - 4], edx
cmp dword [ebp - 8], 0
je 0x52c83a
cmp dword [ebp - 8], 0x1e
jbe 0x52c856
mov dword [ebp - 0xc], 9
cmp dword [0x591978], 0
je 0x52c851
jmp 0x52c7ca
jmp 0x52c7c1
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x52c87d
mov dword [ebp - 0xc], 9
cmp dword [0x591978], 0
je 0x52c878
jmp 0x52c7ca
jmp 0x52c7c1
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x14]
push edx
push 0x40
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x52c8aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
jmp 0x52c7c1
mov edx, dword [ebp - 0x18]
mov dword [edx + 4], 1
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [0x591990]
mov dword [edx], eax
mov ecx, dword [ebp - 0x18]
mov dword [0x591990], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x10001620
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x1000163e
push 0
push 0
push 0
push 0x10001440
push 0
push 0
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc

Function at 0x100019c5
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x10006004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 4
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x10001a9d
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
jmp 0x10001a8e
cmp dword [ebp - 0x20], 0x10
jb 0x10001a7c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x10001a7c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x10001a7c
mov edx, dword [esi]
test edx, edx
jne 0x10001a4a
push 0x200
push edx
push dword [0x1000661c]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x10001a96
jmp 0x10001a70
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x10001a70
shl eax, 3
push eax
push edx
push 0
push dword [0x1000661c]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x10001a96
shl dword [esi + 4], 1
mov dword [esi], edx
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [esi + 8]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x10001a05
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1000274a
leave
ret

Function at 0x10001aab
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
xor ebx, ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call fcn.100019c5
cmp dword [esi], ebx
je 0x10001b0b
push edi
mov edi, ebx
cmp dword [esi + 8], ebx
jbe 0x10001b0a
mov eax, dword [esi]
push dword [eax + edi*4]
push ebx
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x10001b01
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 4]
mov ecx, ebx
call fcn.10001872
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
push 0
pop ebx
cmp edi, dword [esi + 8]
jb 0x10001ad1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001b0f
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
test eax, eax
je 0x10001b5d
push edi
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x10001b4d
push ebx
mov eax, dword [esi]
push dword [eax + edi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x10001b44
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x10001b21
mov eax, dword [esi]
pop ebx
push eax
push 0
push dword [0x1000661c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
ret

Function at 0x10001b5f
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
imul esi, ecx, 0x2c
push edi
add esi, dword [0x10006630]
mov al, byte [esi + 0x14]
mov edi, dword [esi]
and al, 1
je 0x10001b7b
sub edi, 5
movzx eax, al
lea ebx, [eax*2 + 5]
lea eax, [ebp - 4]
push eax
push 0x40
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10001b9c
push 0xa
pop eax
jmp 0x10001bdb
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x10001bb7
mov eax, dword [esi]
mov word [eax], 0xf9eb
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [esi + 0x14], 6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10002108
Capabilities:
Allocate or change rwx memory

Disassembly:
mov edx, dword [0x10006624]
push esi
xor esi, esi
jmp 0x1000211a
cmp dword [edx + 4], esi
jne 0x10002173
mov edx, dword [edx]
test edx, edx
jne 0x10002113
push 0x40
push 0x3000
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
test edx, edx
je 0x10002177
push 0x20
mov dword [edx + 4], esi
lea ecx, [edx + 0x20]
mov dword [edx + 8], esi
pop esi
mov eax, dword [edx + 4]
add esi, 0x20
mov dword [ecx], eax
mov dword [edx + 4], ecx
add ecx, 0x20
cmp esi, 0xfe0
jbe 0x10002143
mov eax, dword [0x10006624]
mov dword [edx], eax
mov dword [0x10006624], edx
mov eax, dword [edx + 4]
pop esi
mov ecx, dword [eax]
inc dword [edx + 8]
mov dword [edx + 4], ecx
ret
test edx, edx
jne 0x10002166
xor eax, eax
pop esi
ret
Function at 0x401000
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
push str._JAVA_LAUNCHER_DEBUG
call fcn.00408d33
pop ecx
test eax, eax
je 0x401046
push str.Windows_original_main_args:_n
call fcn.00408bef
xor esi, esi
pop ecx
cmp dword [0x425628], esi
jle 0x401046
mov eax, dword [0x42562c]
push dword [eax + esi*4]
push esi
push str.wwwd_args__d____s_n
call fcn.00408bef
add esp, 0xc
inc esi
cmp esi, dword [0x425628]
jl 0x401027
call dword [sym.imp.kernel32.dll_GetCommandLineA]
push eax
call fcn.00407cdb
call fcn.0040392e
mov edi, eax
lea eax, [edi*4 + 4]
push eax
call fcn.004039b0
pop ecx
pop ecx
mov esi, eax
call fcn.00403934
xor ecx, ecx
test edi, edi
jle 0x401080
mov edx, dword [eax + ecx*8]
mov dword [esi + ecx*4], edx
inc ecx
cmp ecx, edi
jl 0x401075
mov eax, dword [0x424010]
and dword [esi + ecx*4], 0
mov ebx, eax
test eax, eax
jne 0x401091
mov ebx, dword [esi]
mov ecx, dword [0x42400c]
test ecx, ecx
jne 0x40109d
mov ecx, dword [esi]
mov eax, dword [0x425420]
push 0
push 0
push 1
test eax, eax
setne dl
movzx edx, dl
push edx
push ebx
push ecx
push 0x41c24c
push 0x41c23c
push dword [0x425424]
push 1
push eax
push 1
push esi
push edi
call fcn.00403472
add esp, 0x38
pop edi
pop esi
pop ebx
ret
Function at 0x403e2f
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x9c]
sub esp, 0x11c
mov eax, dword [0x424070]
xor eax, ebp
mov dword [ebp + 0x98], eax
mov eax, dword [ebp + 0xa4]
push ebx
push esi
push edi
mov edi, dword [sym.imp.advapi32.dll_RegEnumKeyA]
mov esi, 0x104
push esi
lea ecx, [ebp - 0x6c]
push ecx
xor ebx, ebx
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0xa8]
push ebx
push eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], ebx
call edi
test eax, eax
jne 0x403ed2
mov eax, dword [ebp - 0x80]
push dword [eax + 8]
inc dword [ebp - 0x74]
lea eax, [ebp - 0x6c]
push eax
call fcn.00407cdb
pop ecx
pop ecx
test eax, eax
je 0x403ebb
test ebx, ebx
je 0x403eaf
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.00407cdb
pop ecx
pop ecx
test eax, eax
jle 0x403ebb
push ebx
call fcn.00403a18
pop ecx
lea eax, [ebp - 0x6c]
push eax
call fcn.004039f7
pop ecx
mov ebx, eax
push esi
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x74]
push dword [ebp - 0x78]
call edi
test eax, eax
je 0x403e7c
xor edi, edi
cmp ebx, edi
jne 0x403ed6
xor eax, eax
jmp 0x403f42
lea eax, [ebp - 0x70]
push eax
push 0x20019
push edi
push ebx
push dword [ebp - 0x78]
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
push ebx
test eax, eax
je 0x403f05
call fcn.00403a18
pop ecx
cmp dword [ebp - 0x70], edi
je 0x403ed2
push dword [ebp - 0x70]
call dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x403ed2
call fcn.00403a18
pop ecx
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x6c]
push eax
push edi
push edi
push str.JavaHome
push dword [ebp - 0x70]
mov dword [ebp - 0x7c], esi
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x403ef5
cmp dword [ebp - 0x70], edi
je 0x403f38
push dword [ebp - 0x70]
call dword [sym.imp.advapi32.dll_RegCloseKey]
lea eax, [ebp - 0x6c]
push eax
call fcn.004039f7
pop ecx
mov ecx, dword [ebp + 0x98]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004098e8
add ebp, 0x9c
leave
ret
Function at 0x407cdb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x407cea
pop dword [ebp - 0x24]
mov eax, 0xb5d4fe4a
sub eax, 0xb5948160
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0xa654beea
add dword [ebp - 0x34], 0xa7fd8661
mov dword [ebp - 0x30], 0x651086cf
add dword [ebp - 0x30], 0xcd22c576
mov dword [ebp - 0x2c], 0xd3d6c225
add dword [ebp - 0x2c], 0x78758209
mov dword [ebp - 0x28], 0x28551870
add dword [ebp - 0x28], 0xd7aae790
lea eax, [ebp - 0x34]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0xb9b5ea81
sub dword [ebp - 0x34], 0x4543812b
mov dword [ebp - 0x30], 0x24c54499
add dword [ebp - 0x30], 0x1ca71cdc
mov dword [ebp - 0x2c], 0xebb6d563
sub dword [ebp - 0x2c], 0x884768f7
mov dword [ebp - 0x28], 0xeab63b8f
sub dword [ebp - 0x28], 0xeab63b8f
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0x2e052e86
sub eax, 0x2dc36e3a
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x3a17d
push 0
call eax
mov ecx, 0xf7acea93
add ecx, 0x8535729
xor edi, edi
add edi, eax
mov ebx, 0x16c22517
sub ebx, 0x167efb17
add ebx, dword [ebp - 0x24]
mov esi, 0x934b176
sub esi, 0x448b6424
mov edx, dword [ebx]
mov dword [ebp - 0xc], 0xc412e32f
xor edx, esi
add dword [ebp - 4], edx
mov dword [edi], edx
add dword [ebp - 0x14], 0x22b6f6d6
add edi, 0x9011dd53
add edi, 0x6fee22b1
add ebx, 0x40bb260e
add ebx, 0xbf44d9f6
loop 0x407e09
add eax, 0x496ca73d
add eax, 0xb6945286
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x408f37
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x422550
call fcn.0040dcb0
xor esi, esi
cmp dword [0x4274a8], esi
jne 0x408df7
push esi
push esi
push 1
push esi
call dword [sym.imp.kernel32.dll_HeapSetInformation]
mov eax, 0x5a4d
cmp word [0x400000], ax
je 0x408e0a
mov dword [ebp - 0x1c], esi
jmp 0x408e40
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x408e05
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x408e05
cmp dword [eax + 0x400074], 0xe
jbe 0x408e05
xor ecx, ecx
cmp dword [eax + 0x4000e8], esi
setne cl
mov dword [ebp - 0x1c], ecx
call fcn.0040f80c
test eax, eax
jne 0x408e51
push 0x1c
call fcn.00407cdb
pop ecx
call fcn.0040d831
test eax, eax
jne 0x408e62
push 0x10
call fcn.00407cdb
pop ecx
call fcn.0040dae6
mov dword [ebp - 4], esi
call fcn.00407cdb
test eax, eax
jns 0x408e7b
push 0x1b
call fcn.00407cdb
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x4274a4], eax
call fcn.00407cdb
mov dword [0x42565c], eax
call fcn.00407cdb
test eax, eax
jns 0x408ea1
push 8
call fcn.00407cdb
pop ecx
call fcn.0040f1ff
test eax, eax
jns 0x408eb2
push 9
call fcn.00407cdb
pop ecx
push 1
call fcn.00407cdb
pop ecx
cmp eax, esi
je 0x408ec5
push eax
call fcn.00407cdb
pop ecx
mov eax, dword [0x425634]
mov dword [0x425638], eax
push eax
push dword [0x42562c]
push dword [0x425628]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], esi
jne 0x408ef2
push eax
call fcn.00407cdb
call fcn.00408bb3
jmp 0x408f27
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.0040dcf5
ret
call fcn.00407cdb
jmp 0x408dd6

Function at 0x4098e8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x424070]
jne 0x4098f2
repz ret
jmp fcn.004114ed

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x214879e8
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
mov ecx, 0x418100c0
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x407b70
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x410128
call fcn.00407b7c
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x412c08
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x407914
cmp eax, esi
jne 0x407907
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x407917
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4078ee
xor esi, esi
inc esi
mov eax, dword [0x412c04]
cmp eax, esi
jne 0x40792a
push 0x1f
call sub.MSVCR90.dll__amsg_exit
pop ecx
jmp 0x407959
mov eax, dword [0x412c04]
test eax, eax
jne 0x407953
mov dword [0x412c04], esi
push 0x40d2ec
push 0x40d2e0
call sub.MSVCR90.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x407959
jmp 0x407a7d
mov dword [0x4123fc], esi
mov eax, dword [0x412c04]
cmp eax, esi
jne 0x40797d
push 0x40d2dc
push 0x40d2c8
call sub.MSVCR90.dll__initterm
pop ecx
pop ecx
mov dword [0x412c04], 2
cmp dword [ebp - 0x20], ebx
jne 0x40798a
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x412c0c], ebx
je 0x4079ab
push 0x412c0c
call fcn.00407e50
pop ecx
test eax, eax
je 0x4079ab
push ebx
push 2
push ebx
call dword [0x412c0c]
mov eax, dword [sym.imp.MSVCR90.dll__wcmdln]
cmp dword [eax], ebx
je 0x407a7d
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x407a15
cmp cx, bx
je 0x4079d0
cmp dword [ebp - 0x1c], ebx
jne 0x407a15
movzx ecx, word [eax]
cmp cx, bx
je 0x4079e5
cmp cx, 0x20
ja 0x4079e5
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x4079d0
test byte [ebp - 0x40], 1
je 0x4079f1
movzx ecx, word [ebp - 0x3c]
jmp 0x4079f4
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x400000
call main
mov dword [0x4123f8], eax
cmp dword [0x4123ec], ebx
jne 0x407a5a
push eax
call dword [sym.imp.MSVCR90.dll_exit]
cmp cx, 0x22
jne 0x407a26
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x4079ba
cmp dword [0x4123fc], ebx
jne 0x407a68
call dword [sym.imp.MSVCR90.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x4123f8]
jmp 0x407a89
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.00407bc1
ret
call 0x581000
jmp 0x4078b1
Function at 0x4042fd
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x406028]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x110], 0x104
push eax
push 0x20019
xor ebx, ebx
mov esi, 0x401288
push ebx
push esi
mov edi, 0x80000000
mov byte [ebp - 0x108], bl
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404380
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x108]
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x4043a0
push ecx
push ebx
push ebx
push 0x10
xor edx, edx
push 0xc
inc edx
pop ecx
call fcn.0040ff65
xor eax, eax
cmp dword [0x406724], ebx
je 0x404391
mov dword [0x406080], ebx
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404bf0
leave
ret
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.msvcrt.dll_atoi]
pop ecx
mov dword [0x406080], eax
call fcn.00404402
xor eax, eax
jmp 0x404390

Function at 0x404402
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x406028]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, 0x401288
xor ebx, ebx
push edi
mov edx, 0xa0
mov dword [ebp - 0x210], ebx
mov ecx, esi
call fcn.00402125
mov edi, 0x104
cmp eax, edi
jge 0x404518
push esi
mov edx, edi
lea ecx, [ebp - 0x108]
call fcn.00401590
test eax, eax
js 0x404527
lea eax, [ebp - 0x108]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov edx, edi
lea ecx, [ebp - 0x108]
call fcn.00402125
lea esi, [ebp - 0x108]
add esi, eax
jmp 0x404485
cmp byte [esi], 0x5c
je 0x404494
dec esi
lea eax, [ebp - 0x108]
cmp esi, eax
ja 0x40447f
cmp byte [esi], 0x5c
jne 0x404504
lea eax, [ebp - 0x210]
mov byte [esi], bl
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x108]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404504
push edi
lea eax, [ebp - 0x20c]
push eax
push ebx
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x404504
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x108]
mov dword [ebp - 0x210], ebx
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea eax, [ebp - 0x108]
cmp esi, eax
ja 0x404468
cmp dword [ebp - 0x210], ebx
je 0x404518
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404bf0
leave
ret
call fcn.00402159
int3
Function at 0x404e70
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x404eae
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x404ea6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x404eb0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x404e96
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x404f80
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x404fb1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x404fb1
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x404fb1
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40a49f
Capabilities:
Encode data using xor

Disassembly:
call 0x40a418
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or eax, dword [ebx - 0x178f73c]
xor esi, 0xde5af04
add eax, esi
lea esp, [esp - 0xe]
mov esi, dword [esp + 0xe]
lea esp, [esp + 0x12]
xor esi, dword [esp]
push eax
sub eax, 0xf24f2b00
mov eax, esp
or dword [eax - 0x22], ebx
pop eax
jmp 0x40a448
xor dword [esp], esi
xor eax, 0
mov dword [esp], esi
add esp, 4
add esi, dword [ebp + 8]
push ebp
add ebp, 0xc
mov ecx, dword [ebp]
pop ebp
ja 0x40a464
xor edx, 0
jmp 0x40a46f
xor edx, edx
jmp 0x40a486
jmp 0x40a492
xor eax, eax
push 0x8427d7c0
call 0x40a49f
stc
add esp, 8
add esi, 0
cmp ecx, 0
je 0x40a4db
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
add bl, dl
xor byte [esi], bl
mov dl, byte [esi]
inc esi
add ebx, edi
rol ebx, 8
dec ecx
jne 0x40a4b4
lea esp, [esp - 4]
xchg dword [esp], ebx
mov ebx, dword [esp]
or eax, edx
xor eax, eax
add eax, dword [esp]
add esp, 4
pop esi
pop edi
pop ebx
xchg dword [esp], ecx
mov dword [esp], ecx
lea esp, [esp + 4]
pop edx
leave
je 0x40a4f2
add eax, 0
jno 0x40a4f7
add esi, 0
ret 0x10