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

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa05000]
push edi
jmp 0x12d5c0a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x12d5c11
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x12d5c00
mov eax, 1
add ebx, ebx
jne 0x12d5c23
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x12d5c34
jne 0x12d5c53
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x12d5c53
dec eax
add ebx, ebx
jne 0x12d5c40
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x12d5c18
add ebx, ebx
jne 0x12d5c4f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x12d5ca5
xor ecx, ecx
sub eax, 3
jb 0x12d5c6b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x12d5cda
sar eax, 1
mov ebp, eax
jmp 0x12d5c76
add ebx, ebx
jne 0x12d5c76
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x12d5c44
inc ecx
add ebx, ebx
jne 0x12d5c84
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x12d5c44
add ebx, ebx
jne 0x12d5c91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x12d5c86
jne 0x12d5ca2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x12d5c86
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x12d5cc4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x12d5cb6
jmp 0x12d5c06
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x12d5cc4
add edi, ecx
jmp 0x12d5c06
pop esi
mov edi, esi
mov ecx, 0x691e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x12d5ce2
cmp byte [edi], 0xe
jne 0x12d5ce2
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 0x12d5ce7
lea edi, [esi + 0xecb000]
mov eax, dword [edi]
or eax, eax
je 0x12d5d5f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xeea77c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xeea8bc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x12d5d14
mov ecx, edi
jns 0x12d5d43
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xeea8c0]
or eax, eax
je 0x12d5d59
mov dword [ebx], eax
add ebx, 4
jmp 0x12d5d31
call dword [esi + 0xeea8d0]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x12d5d90
cmp al, 0xef
ja 0x12d5d83
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x12d5d65
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x12d5d72
mov ebp, dword [esi + 0xeea8c4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
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 0x12d5dc4
sub esp, 0xffffff80
jmp 0x4ab8cc
Function at 0x100099a0
Capabilities:
Allocate or change rwx memory
Create process on windows
Encode data using base64
Encrypt data using speck
Execute anti-debugging instructions
Execute shellcode via indirect call
Hide graphical window
Parse pe header
Resume thread

Disassembly:
jmp 0x10016255
push ebp
movzx ebp, sp
mov ebp, esp
or ax, sp
cwde
push ebx
push edi
setno ah
shr eax, cl
cmp esp, edx
push esi
lea esp, [esp - 0x138]
btr eax, 0x14
mov eax, dword [0x1007aa00]
cmc
cmp al, ah
xor eax, ebp
cmp esi, 0x489a9c8f
test ecx, 0x896ee28
mov dword [ebp - 0x10], eax
mov ax, cx
mov dword [ebp - 0x138], 0x2e48beca
cwde
xor al, 0xb3

Function at 0x1001c610
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1001f3aa
push ebx
push esi
call fcn.1001f2d6
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1001f26a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001f357
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001f3a9
push edi
push eax
call fcn.1001d34d
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001f377
call fcn.1001ddb2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001f3a8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001f26a
add esp, 0x20
test eax, eax
jne 0x1001f396
push edi
call fcn.1001ddb2
jmp 0x1001f39e
push ebx
call fcn.1001ddb2
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1001f617
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10026d10
push 0x10026d08
push str.FlsAlloc
push 0x1f
call fcn.1001f533
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001f64b
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002514c]
call esi
jmp 0x1001f651
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001f695
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10026d20
push 0x10026d18
push str.FlsGetValue
push 0x21
call fcn.1001f533
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001f6cc
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002514c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1001f6d4
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10026d28
push 0x10026d20
push str.FlsSetValue
push 0x22
call fcn.1001f533
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001f70e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1002514c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10024cb0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10024cdd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10024cdd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4012a0
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x420
mov eax, dword [0x4454b4]
xor eax, esp
mov dword [esp + 0x41c], eax
push ebx
push ebp
lea eax, [esp + 8]
xor ebx, ebx
push eax
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebp, eax
mov eax, dword [esp + 8]
cmp eax, 4
jge 0x4012f6
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x41c]
xor ecx, esp
call fcn.0041fe96
add esp, 0x420
ret
cmp ebp, ebx
je 0x4013e9
push esi
mov esi, 1
cmp eax, esi
jle 0x4013e8
push edi
mov dword [esp + 0x14], esi
push 0x206
lea edx, [esp + 0x22a]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x230], cx
call fcn.00421bf0
push 0x207
lea eax, [esp + 0x2d]
push ebx
push eax
mov byte [esp + 0x34], bl
call fcn.00421bf0
mov ecx, dword [ebp + esi*4]
push ecx
lea edx, [esp + 0x240]
push 0x104
push edx
call fcn.0042010e
lea eax, [esp + 0x3c]
push eax
lea edi, [esp + 0x44]
lea ebx, [esp + 0x24c]
mov dword [esp + 0x40], 0x208
call fcn.00401020
add esp, 0x28
cmp esi, 1
jne 0x40139e
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401383
sub eax, edx
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, 0x449310
call fcn.004015f0
jmp 0x4013da
cmp esi, 2
je 0x4013da
cmp esi, 3
jne 0x4013be
push 0x449308
lea edx, [esp + 0x20]
push 0x43c6e4
push edx
call fcn.00420217
jmp 0x4013d7
cmp esi, 5
jne 0x4013da
push 0x449304
lea eax, [esp + 0x20]
push 0x43c6e4
push eax
call fcn.004201f5
add esp, 0xc
inc esi
xor ebx, ebx
cmp esi, dword [esp + 0x10]
jl 0x401311
pop edi
pop esi
mov ecx, dword [0x449310]
cmp dword [ecx - 0xc], 1
jge 0x4013f9
mov dword [esp + 0xc], ebx
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [esp + 0x424]
mov eax, dword [esp + 0xc]
pop ebp
pop ebx
xor ecx, esp
call fcn.0041fe96
add esp, 0x420
ret
Function at 0x401870
Capabilities:
Set registry value

Disassembly:
sub esp, 0x11c
mov eax, dword [0x4454b4]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push esi
push 0x103
lea eax, [esp + 0x19]
push 0
xor bl, bl
push eax
mov esi, ecx
mov byte [esp + 0x20], bl
call fcn.00421bf0
add esp, 0xc
test esi, esi
je 0x4018b9
push esi
lea ecx, [esp + 0x18]
push 0x104
push ecx
call fcn.0042033e
add esp, 0xc
lea edx, [esp + 0xc]
push edx
push 0x2001f
push 0
push str.SoftwareHNCHwpCtrlModules_
push SysReAllocString
mov dword [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4018e7
mov esi, dword [esp + 0xc]
jmp 0x40191e
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0xc]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push str.SoftwareHNCHwpCtrlModules_
push SysReAllocString
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x401951
mov esi, dword [esp + 8]
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [esp + 0x18]
push eax
push 1
push 0
push str.EUHwpFilePathCheckerModule
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x401946
mov bl, 1
test esi, esi
je 0x401951
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x120]
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.0041fe96
add esp, 0x11c
ret
Function at 0x401970
Capabilities:
Access peb ldr_data
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x43696d
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x4454b4]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push edi
mov eax, dword [0x4454b4]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x138], ebx
mov dword [esp + 0x1c], ebx
push ebx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push 0x43cca0
mov ecx, esi
mov dword [esp + 0x28], esi
mov byte [esi + 4], bl
call fcn.00402cc0
push 0x103
lea eax, [esp + 0x29]
push ebx
push eax
mov dword [esp + 0x28], 1
mov byte [esp + 0x30], bl
call fcn.00421bf0
add esp, 0xc
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
lea ecx, [esp + 0xc]
push ecx
push 0x2001f
push ebx
push str.SoftwareHNCHwpCtrlModules_
mov dword [esp + 0x148], 1
push SysReAllocString
mov dword [esp + 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x401aa7
mov edi, dword [esp + 0xc]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x18]
push ecx
push ebx
push str.EUHwpFilePathCheckerModule
push edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x401a9c
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x401a6b
cmp eax, 2
jne 0x401a9c
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x401a7b
cmp byte [esp + eax + 0x23], bl
je 0x401a7f
jmp 0x401a9c
mov byte [esp + 0x24], bl
lea eax, [esp + 0x24]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401a86
sub eax, edx
push eax
lea edx, [esp + 0x28]
push edx
mov ecx, esi
call fcn.00402cc0
cmp edi, ebx
je 0x401aa7
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.0041fe96
add esp, 0x130
ret
Function at 0x401bd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43689b
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x4454b4]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esi], 0x43cb3c
lea edi, [esi + 0x78]
mov dword [esp + 0x38], 1
test edi, edi
jne 0x401c14
xor eax, eax
jmp 0x401c17
mov eax, dword [edi + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x401c82
push 2
push 0
lea ecx, [esp + 0x28]
call fcn.0041006a
mov byte [esp + 0x38], 2
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x10], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x14], edx
mov edx, dword [eax + 0xc]
lea eax, [esp + 0x10]
push eax
push 0x44695c
push 0
push 0
push 1
push 0x10
push edi
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
call fcn.004098ca
add esp, 0x1c
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov edx, dword [esi + 0x98]
push edx
call dword [sym.imp.USER32.dll_CloseWindow]
mov ecx, edi
mov byte [esp + 0x38], 0
call fcn.0040da3e
mov ecx, esi
mov dword [esp + 0x38], 0xffffffff
call fcn.00405fa4
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret

Function at 0x403180
Capabilities:
Extract resource via kernel32 functions

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

Function at 0x409dfc
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x435b55
call fcn.00420f1d
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x409e21
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x409e67
lea ecx, [ebp - 0x10]
call fcn.004017d0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004039e0
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004017b0
mov eax, esi
call fcn.00420ff5
ret 8
Function at 0x40ffdb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x410022
call fcn.0040ab5c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x410022
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41003e
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040fb55
mov esi, eax
test edi, edi
je 0x41003c
test ebx, ebx
je 0x41003c
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41fe96
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4454b4]
jne 0x41fea0
repz ret
jmp fcn.004249ff

Function at 0x42638c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 8], 0
jne 0x42639f
xor eax, eax
jmp 0x426438
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0xc], ecx
push 8
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax + 0x78]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x20]
mov dword [ebp - 0x10], ecx
and dword [ebp - 4], 0
jmp 0x4263d7
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 0x18]
jae 0x426436
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax*4]
mov dword [ebp - 0x14], edx
push dword [ebp + 0xc]
push dword [ebp - 0x14]
call fcn.00426341
pop ecx
pop ecx
movzx eax, al
test eax, eax
je 0x426434
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x1c]
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
movzx eax, word [ecx + eax*2]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax*4]
mov eax, edx
jmp 0x426438
jmp 0x4263d0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x42fce0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004254ba
and dword [ebp - 4], 0
cmp dword [0x449284], 0
mov ebx, eax
jne 0x42fd91
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x42fe42
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x43bdc4
push edi
call esi
test eax, eax
je 0x42fe42
push eax
call fcn.00425448
mov dword [esp], 0x43bdb4
push edi
mov dword [0x449284], eax
call esi
push eax
call fcn.00425448
mov dword [esp], 0x43bda0
push edi
mov dword [0x449288], eax
call esi
push eax
call fcn.00425448
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44928c], eax
call esi
push eax
call fcn.00425448
pop ecx
mov dword [0x449294], eax
test eax, eax
je 0x42fd91
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00425448
pop ecx
mov dword [0x449290], eax
mov eax, dword [0x449290]
cmp eax, ebx
je 0x42fde9
cmp dword [0x449294], ebx
je 0x42fde9
push eax
call fcn.004254c3
push dword [0x449294]
mov esi, eax
call fcn.004254c3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42fde9
test edi, edi
je 0x42fde9
call esi
test eax, eax
je 0x42fde0
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42fde0
test byte [ebp - 0xc], 1
jne 0x42fde9
or dword [ebp + 0x10], 0x200000
jmp 0x42fe22
mov eax, dword [0x449288]
cmp eax, ebx
je 0x42fe22
push eax
call fcn.004254c3
pop ecx
test eax, eax
je 0x42fe22
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x42fe22
mov eax, dword [0x44928c]
cmp eax, ebx
je 0x42fe22
push eax
call fcn.004254c3
pop ecx
test eax, eax
je 0x42fe22
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x449284]
call fcn.004254c3
pop ecx
test eax, eax
je 0x42fe42
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42fe44
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403378
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.004056d8
test esi, esi
jne 0x4033b0
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00405814
jmp 0x4033ce
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004032bc
mov edi, eax
test esi, esi
je 0x4033ce
cmp dword [ebx], 0
je 0x4033ce
dec esi
jmp 0x4033b7
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x403a38
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x491020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403ad0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x403ab0
xor eax, eax
push ebp
push 0x403aa9
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 0x403b08
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403ab0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x491020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x491020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404bf8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x499054], 0
je 0x404c59
cmp word [0x499330], 0xd7b2
jne 0x404c21
cmp dword [0x499338], 0
jbe 0x404c21
mov eax, 0x49932c
call dword [0x499348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
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 0x404c84
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x49102c], 0
jne 0x404c75
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret