joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d7200
Capabilities:
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x51afe8
push eax
mov dword fs:[0], esp
sub esp, 0x10
xor al, al
push ebx
push ebp
push esi
mov esi, ecx
mov cl, byte [esi + 0xc]
test cl, cl
je 0x4d7324
mov ecx, dword [esi + 4]
xor ebp, ebp
sub ecx, ebp
je 0x4d7336
dec ecx
je 0x4d727c
dec ecx
jne 0x4d7324
mov eax, dword [esi + 8]
cmp eax, ebp
je 0x4d734b
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp eax, 1
jne 0x4d734b
mov dword [esi + 8], ebp
mov eax, dword [esi + 0x18]
cmp eax, ebp
je 0x4d7275
mov eax, dword [0x65b154]
lea ecx, [esi + 0x10]
push eax
push ebp
call fcn.004d7780
mov bl, 1
jmp 0x4d7317
mov edx, dword [0x65b154]
mov cl, byte [esi + 0x10]
push edi
lea edi, [esi + 0x10]
push edx
mov byte [esp + 0x14], cl
push ebp
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
call fcn.004d7580
mov eax, dword [esi + 8]
mov dword [esp + 0x28], ebp
cmp eax, ebp
je 0x4d7305
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp eax, 1
jne 0x4d7305
mov dword [esi + 8], ebp
mov eax, dword [esi + 0x18]
cmp eax, ebp
je 0x4d72d4
mov eax, dword [0x65b154]
mov ecx, edi
push eax
push ebp
call fcn.004d7780
mov eax, dword [esp + 0x14]
mov bl, 1
cmp eax, ebp
jne 0x4d72e3
mov eax, 0x65b150
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x14]
pop edi
cmp ecx, ebp
je 0x4d7313
mov al, byte [ecx - 1]
test al, al
je 0x4d7309
cmp al, 0xff
je 0x4d7309
dec al
mov byte [ecx - 1], al
jmp 0x4d7313
xor bl, bl
jmp 0x4d72ea
dec ecx
push ecx
call fcn.0050ae41
add esp, 4
test bl, bl
je 0x4d7322
mov dword [esi + 4], 0xffffffff
mov byte [esi + 0xc], 0
mov al, bl
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
mov eax, dword [esi]
cmp eax, ebp
je 0x4d734b
push eax
call fcn.004d8300
add esp, 4
mov dword [esi], ebp
mov bl, 1
jmp 0x4d7317
mov ecx, dword [esp + 0x1c]
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x4d7c50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceA]
push ebp
push esi
push edi
xor edi, edi
push 0x6bed2c
push str.E2EE_IDR_DLL
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x4d7c9f
call fcn.0051494e
mov edi, dword [eax + 0xc]
test edi, edi
jne 0x4d7c84
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
push 0x6bed2c
push str.E2EE_IDR_DLL
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x4d7c9f
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
jne 0x4d7cb5
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4d7cc9
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x10], ebp
jne 0x4d7ce2
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
mov edi, dword [esp + 0x18]
push edi
push ebx
push ebp
call fcn.004d8400
add esp, 0xc
test al, al
jne 0x4d7d81
mov eax, dword [edi + 8]
cmp eax, ebx
jb 0x4d7d89
mov esi, dword [0x65b15c]
jae 0x4d7d11
call fcn.00505c75
mov ecx, edi
call fcn.004d7f90
mov eax, dword [edi + 8]
mov ecx, eax
sub ecx, ebx
cmp ecx, esi
jae 0x4d7d25
mov esi, ecx
test esi, esi
jbe 0x4d7d63
mov ecx, dword [edi + 4]
sub eax, esi
sub eax, ebx
push eax
lea eax, [ecx + esi]
add eax, ebx
add ecx, ebx
push eax
push ecx
call fcn.004f65f0
mov ebp, dword [edi + 8]
add esp, 0xc
sub ebp, esi
mov ecx, edi
push 0
push ebp
call fcn.004d7e70
test al, al
je 0x4d7d5f
mov ecx, dword [edi + 4]
mov dword [edi + 8], ebp
mov byte [ecx + ebp], 0
mov ebp, dword [esp + 0x10]
mov edi, dword [edi + 4]
test edi, edi
jne 0x4d7d6f
mov edi, 0x65b158
mov ecx, ebx
mov esi, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
pop ecx
ret
mov edx, ebx
push 0
sub edx, eax
mov ecx, edi
push edx
call fcn.004d7da0
jmp 0x4d7d63
Function at 0x4e06e0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x710630]
xor edx, edx
cmp eax, edx
jne 0x4e0706
xor eax, eax
mov byte [eax + 0x710530], al
inc eax
cmp eax, 0x100
jl 0x4e06ee
mov dword [0x710630], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x710530
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4e0797
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4e076a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4e0738
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4e07a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4e07f3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4e07da
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4e7170
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x51b1fe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004e7a90
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x65e944
call fcn.0050ae18
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4e7203
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0050ae18
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4e71fc
push 0
mov ecx, eax
call fcn.004de310
mov dword [esi + 0xc], eax
jmp 0x4e7205
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4e7205
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4f81ea
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4f820a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004f77aa
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4f822d
test byte [esp + 8], 2
je 0x4f822d
call fcn.004f781d
mov dword [eax], 0xd
call fcn.004f7826
mov dword [eax], 5
jmp 0x4f8206
xor eax, eax
ret

Function at 0x50d4a5
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x50d4dd
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0050b532
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0050b50a
jmp 0x50d4e9
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x50eb9a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x50ebdc
call fcn.0051494e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x50ebdc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x50ebd3
xor eax, eax
jmp 0x50ebe4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0050ebea
pop edi
pop esi
pop ebx
ret 4

Function at 0x514e7e
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x514eac
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x514eca
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00514de4
jmp 0x514eca
mov eax, dword [esi + 0x14]
test eax, eax
je 0x514eca
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00514de4
test edi, edi
mov eax, edi
jne 0x514eb4
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

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 0x10001bb0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x21c
mov eax, dword [0x100145b0]
xor eax, esp
mov dword [esp + 0x218], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x22c]
mov ebp, ecx
mov eax, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
push 0x2001f
push 0
push edi
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0xc]
mov esi, eax
test esi, esi
jne 0x10001c1e
test ecx, ecx
je 0x10001c10
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x14]
mov esi, eax
mov dword [esp + 0xc], ecx
je 0x10001c2c
test ecx, ecx
je 0x10001cd1
push ecx
jmp 0x10001ccb
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x38]
push edx
push 0
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
jne 0x10001c9e
jmp 0x10001c60
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x10]
call fcn.10001bb0
mov edi, eax
test edi, edi
jne 0x10001ced
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push eax
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x38]
push eax
push edi
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
je 0x10001c60
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x10001cb5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
mov edx, dword [ebp]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x10001cd1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.10006a26
add esp, 0x21c
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x10001cfc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x10001cd3
Function at 0x10003b20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x1000e1e0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x100145b0]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov eax, dword [ebp + 0x418]
mov edi, dword [ebp + 0x410]
mov ebx, dword [ebp + 0x414]
mov dword [ebp - 0x14], eax
call dword [0x10014590]
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], eax
mov dword [ebp], eax
push 2
push eax
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
mov dword [ebp - 0x18], edi
jne 0x10003bad
call fcn.100012d0
mov esi, eax
jmp 0x10003c8e
mov ecx, dword [ebp - 0x14]
push ecx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x10003bc9
call fcn.100012d0
jmp 0x10003c85
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 0x20], eax
jne 0x10003be2
call fcn.100012d0
jmp 0x10003c85
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
mov dword [ebp - 0x14], esi
jae 0x10003c18
lea edx, [ebp + 4]
cmp dword [ebp], edx
je 0x10003c06
lea ecx, [ebp]
call fcn.10001b30
lea ecx, [ebp - 0x1c]
call fcn.10001ac0
mov eax, 0x8007000e
jmp 0x10003ca2
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.10002a30
mov dword [ebp - 4], 1
jmp 0x10003c3a
mov ebx, dword [ebp]
test ebx, ebx
jne 0x10003c48
mov esi, 0x8007000e
jmp 0x10003c87
call dword [0x10014590]
mov ecx, dword [ebp - 0x20]
push esi
push ebx
push esi
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x10003c69
call fcn.100012d0
jmp 0x10003c85
mov edx, dword [ebp]
mov word [edx + eax*2], 0
mov eax, dword [ebp + 0x41c]
mov ecx, dword [ebp]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.100039b0
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp + 4]
cmp dword [ebp], edx
je 0x10003ca0
lea ecx, [ebp]
call fcn.10001b30
mov edi, edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.10006a26
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10005d10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1000e40b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x100145b0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi], vtable.ATL::CComAggObject_class_ScopesAxCtrl_.0
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov byte [esi + 0x3c], al
mov dword [esi + 0x10], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0xc], vtable.ATL::CComContainedObject_class_ScopesAxCtrl_.2.0
mov dword [esi + 0x14], vtable.ATL::CComContainedObject_class_ScopesAxCtrl_.1.0
mov dword [esi + 0x1c], vtable.ATL::CComContainedObject_class_ScopesAxCtrl_.0
mov dword [esi + 0x20], ecx
mov ecx, dword [0x1001530c]
mov edx, dword [ecx]
mov dword [esp + 0x14], eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4

Function at 0x10006a26
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100145b0]
jne 0x10006a30
repz ret
jmp fcn.1000931b
Function at 0x100088ac
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x10014728]
je 0x100088c7
inc edi
cmp edi, 0x17
jb 0x100088b8
cmp edi, 0x17
jae 0x10008a47
push ebp
push 3
call fcn.1000bfe0
cmp eax, 1
pop ecx
je 0x10008a13
push 3
call fcn.1000bfe0
test eax, eax
pop ecx
jne 0x100088fb
cmp dword [0x10015420], 1
je 0x10008a13
cmp ebx, 0xfc
je 0x10008a46
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x100155c8
push ebp
call fcn.1000bf7b
add esp, 0xc
test eax, eax
je 0x10008931
push esi
push esi
push esi
push esi
push esi
call fcn.10008e6f
add esp, 0x14
push 0x104
mov esi, 0x100155e1
push esi
push 0
mov byte [0x100156e5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10008975
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.1000bf7b
add esp, 0xc
test eax, eax
je 0x10008975
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.10008e6f
add esp, 0x14
push esi
call fcn.1000bef0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x100089ba
push esi
call fcn.1000bef0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x100158dc
push 0x1001099c
sub ecx, eax
push ecx
push eax
call fcn.1000be35
add esp, 0x14
test eax, eax
je 0x100089ba
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.10008e6f
add esp, 0x14
jmp 0x100089bc
xor esi, esi
push 0x10010998
push ebx
push ebp
call fcn.1000bdc4
add esp, 0xc
test eax, eax
je 0x100089dc
push esi
push esi
push esi
push esi
push esi
call fcn.10008e6f
add esp, 0x14
push dword [edi*8 + 0x1001472c]
push ebx
push ebp
call fcn.1000bdc4
add esp, 0xc
test eax, eax
je 0x100089fe
push esi
push esi
push esi
push esi
push esi
call fcn.10008e6f
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.1000bc07
add esp, 0xc
jmp 0x10008a46
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x10008a46
cmp ebp, 0xffffffff
je 0x10008a46
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x1001472c]
push dword [esi]
call fcn.1000bef0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x1000bc07
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.1000a183
xor ebx, ebx
cmp dword [0x10015d60], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x1000bcdd
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1000bdbd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x1000bdbd
push eax
call fcn.1000a115
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10015d60], eax
call esi
push eax
call fcn.1000a115
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10015d64], eax
call esi
push eax
call fcn.1000a115
mov dword [0x10015d68], eax
lea eax, [ebp - 0xc]
push eax
call fcn.10008659
test eax, eax
pop ecx
pop ecx
je 0x1000bcab
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10008e6f
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x1000bcdd
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.1000a115
cmp eax, ebx
pop ecx
mov dword [0x10015d70], eax
je 0x1000bcdd
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1000a115
pop ecx
mov dword [0x10015d6c], eax
mov eax, dword [0x10015d6c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x1000bd62
cmp dword [0x10015d70], ecx
je 0x1000bd62
push eax
call fcn.1000a18c
push dword [0x10015d70]
mov esi, eax
call fcn.1000a18c
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x1000bd62
cmp edi, ebx
je 0x1000bd62
call esi
cmp eax, ebx
je 0x1000bd2f
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1000bd2f
test byte [ebp - 0x18], 1
jne 0x1000bd62
lea eax, [ebp - 0x10]
push eax
call fcn.10008690
test eax, eax
pop ecx
je 0x1000bd4a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10008e6f
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x1000bd59
or dword [ebp + 0x10], 0x200000
jmp 0x1000bd9d
or dword [ebp + 0x10], 0x40000
jmp 0x1000bd9d
mov eax, dword [0x10015d64]
cmp eax, dword [ebp - 8]
je 0x1000bd9d
push eax
call fcn.1000a18c
cmp eax, ebx
pop ecx
je 0x1000bd9d
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1000bd9d
mov eax, dword [0x10015d68]
cmp eax, dword [ebp - 8]
je 0x1000bd9d
push eax
call fcn.1000a18c
cmp eax, ebx
pop ecx
je 0x1000bd9d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10015d60]
call fcn.1000a18c
cmp eax, ebx
pop ecx
je 0x1000bdbd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1000bdbf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4038fa
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
add ecx, 4
mov dword [0x4040fa], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x404658], eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4045ec], eax
mov dword [0x4040f2], eax
mov dword [0x4045d8], 0x30
mov dword [0x4045dc], 2
jmp 0x40393f
mov dword [0x4045e0], 0x403153
mov dword [0x4045e4], 0
mov dword [0x4045e8], 0
mov dword [0x404600], 0x40454e
mov dword [0x4045f8], 0xf
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4045f0], eax
mov dword [0x404604], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4045f4], eax
push 0x4045d8
fadd dword [ebp + 0x40]
add bh, bh
adc eax, sym.imp.user32.dll_RegisterClassExA
push 0
push dword [0x4040f2]
push 0
push 0
push 0x1e5
push 0x203
push 0xfffff98e
push 0xfffff9c0
push 0xcf0000
push str.asdlkjalsdj_ai8
push 0x40454e
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x404650], eax
push 5
push dword [0x404650]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x404650]
call dword [sym.imp.user32.dll_UpdateWindow]
xor edi, edi
lea ebx, [0x404608]
jmp 0x403a13
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x403a05
mov eax, dword [0x404610]
jmp 0x403a2e
call 0x402bd5
ret

Function at 0x3164300
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0316438f
jae 0x316430e
xor ecx, ecx
call fcn.0316438f
jae 0x316433d
xor eax, eax
call fcn.0316438f
jae 0x316434d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0316438f
adc al, al
jae 0x316432f
jne 0x3164379
stosb byte es:[edi], al
jmp 0x3164311
call fcn.0316439b
sub ecx, ebx
jne 0x3164356
call fcn.03164399
jmp 0x3164375
lodsb al, byte [esi]
shr eax, 1
je 0x3164383
adc ecx, ecx
jmp 0x3164372
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.03164399
cmp eax, 0x7d00
jae 0x3164372
cmp ah, 5
jae 0x3164373
cmp eax, 0x7f
ja 0x3164374
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x3164311
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8