joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418f90
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x70
lea eax, [esp]
push esi
mov esi, dword [esp + 0x78]
push 0x10
mov word [esi], 0
push 0
push eax
call fcn.00416300
lea eax, [esp + 0x14]
push 0x10
push eax
call fcn.004189b0
lea eax, [esp + 0x34]
push 0x10
push eax
call fcn.00418a10
lea eax, [esp + 0x24]
push 0x10
push eax
call fcn.00418a60
lea eax, [esp + 0x44]
push 0x10
push eax
call fcn.00418bd0
lea eax, [esp + 0x54]
push 0x10
push eax
call fcn.00418c60
lea eax, [esp + 0x64]
push 0x10
push eax
call fcn.00418c20
lea eax, [esp + 0x14]
lea ecx, [esp + 4]
lea edx, [esp + 0x24]
push eax
lea eax, [esp + 0x38]
push 0x10
push ecx
push 0x51a1ac
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
test eax, eax
je 0x419064
lea eax, [esp + 0x44]
lea ecx, [esp + 4]
push eax
push ecx
call fcn.00416160
test al, al
je 0x419032
mov word [esi], 2
jmp 0x419064
lea eax, [esp + 0x54]
lea ecx, [esp + 4]
push eax
push ecx
call fcn.00416160
test al, al
je 0x41904c
mov word [esi], 3
jmp 0x419064
lea eax, [esp + 0x64]
lea ecx, [esp + 4]
push eax
push ecx
call fcn.00416160
test al, al
je 0x419064
mov word [esi], 1
cmp word [esi], 1
pop esi
sbb al, al
add esp, 0x70
inc al
ret 4

Function at 0x419790
Capabilities:
Decrypt data using tea
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
mov edx, 0xc6ef3720
push edi
mov esi, dword [eax]
push ebp
mov edi, dword [eax + 4]
mov ebx, 0x1f
mov ecx, dword [esp + 0x18]
mov eax, esi
mov ebp, esi
shl eax, 4
add edx, 0x61c88647
shr ebp, 5
add eax, dword [ecx + 8]
add ebp, dword [ecx + 0xc]
xor eax, ebp
lea ebp, [edx + esi - 0x61c88647]
xor eax, ebp
sub edi, eax
mov ebp, edi
mov eax, edi
shl ebp, 4
shr eax, 5
add ebp, dword [ecx]
add eax, dword [ecx + 4]
xor ebp, eax
lea eax, [edi + edx - 0x61c88647]
xor ebp, eax
mov eax, ebx
sub esi, ebp
dec ebx
test eax, eax
jne 0x4197ab
mov eax, dword [esp + 0x14]
pop ebp
mov dword [eax], esi
mov dword [eax + 4], edi
pop edi
pop esi
pop ebx
ret 8

Function at 0x419850
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
xor edx, edx
push edi
mov esi, dword [eax]
push ebp
mov edi, dword [eax + 4]
mov ebx, 0x1f
mov ecx, dword [esp + 0x18]
sub edx, 0x61c88647
mov eax, edi
shl eax, 4
mov ebp, edi
shr ebp, 5
add eax, dword [ecx]
add ebp, dword [ecx + 4]
xor eax, ebp
lea ebp, [edi + edx]
xor eax, ebp
add esi, eax
mov ebp, esi
mov eax, esi
shl ebp, 4
shr eax, 5
add ebp, dword [ecx + 8]
add eax, dword [ecx + 0xc]
xor ebp, eax
lea eax, [edx + esi]
xor ebp, eax
mov eax, ebx
add edi, ebp
dec ebx
test eax, eax
jne 0x419868
mov eax, dword [esp + 0x14]
pop ebp
mov dword [eax], esi
mov dword [eax + 4], edi
pop edi
pop esi
pop ebx
ret 8
Function at 0x419a00
Capabilities:
Check if file exists

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x10
lea ecx, [esp]
push esi
push eax
push ecx
call fcn.004199b0
lea ecx, [esp + 4]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, dword [esp + 0x18]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x419a6f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 2
jb 0x419a4b
cmp eax, 3
jbe 0x419a64
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x419a59
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ax, 0x20b
pop esi
add esp, 0x10
ret 8
mov ax, 0x20c
pop esi
add esp, 0x10
ret 8
mov ax, 0x200
pop esi
add esp, 0x10
ret 8

Function at 0x419a80
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x10
mov eax, 0x5c
mov byte [esp], al
push esi
mov byte [esp + 5], al
mov byte [esp + 7], al
mov byte [esp + 6], 0x2e
mov byte [esp + 8], 0x53
mov byte [esp + 0xa], 0x74
mov byte [esp + 0xc], 0x6c
mov byte [esp + 0xd], 0x55
mov eax, 0x6e
push 0
mov byte [esp + 0xd], al
mov byte [esp + 0xf], al
mov byte [esp + 0x12], 0x73
mov byte [esp + 0x13], 0x62
lea ecx, [esp + 8]
push 0x80
mov byte [esp + 0x18], 0
push 3
push 0
push 3
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, dword [esp + 0x18]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x419b26
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 2
jb 0x419b02
cmp eax, 3
jbe 0x419b1b
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x419b10
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ax, 0x20b
pop esi
add esp, 0x10
ret 8
mov ax, 0x20c
pop esi
add esp, 0x10
ret 8
mov ax, 0x200
pop esi
add esp, 0x10
ret 8

Function at 0x419b40
Capabilities:
Read file on windows

Disassembly:
sub esp, 4
push esi
push edi
mov esi, dword [esp + 0x14]
mov word [esi + 6], 0xffff
push esi
call fcn.00419950
lea eax, [esp + 8]
push 0
mov ecx, dword [esp + 0x14]
push eax
xor eax, eax
mov edx, dword [ecx]
mov ax, word [esi + 2]
push eax
push esi
push edx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov edi, eax
push esi
call fcn.00419900
cmp edi, 1
jne 0x419b86
cmp word [esi + 6], 0xffff
jne 0x419b8c
mov word [esi + 6], 0x23b
mov ax, word [esi + 6]
pop edi
pop esi
add esp, 4
ret 8
Function at 0x419d00
Capabilities:
Contain obfuscated stackstrings
Read .ini file

Disassembly:
sub esp, 0x24
mov eax, 0x53
mov byte [esp + 8], al
mov byte [esp + 0xa], al
mov byte [esp + 9], 0x59
mov byte [esp + 0xb], 0x54
mov byte [esp + 0xc], 0x45
mov byte [esp + 0xd], 0x4d
mov ecx, 0x49
mov byte [esp + 0x14], al
mov byte [esp + 0xf], cl
mov byte [esp + 0x11], cl
mov byte [esp + 0xe], 0x2e
mov byte [esp + 0x10], 0x4e
mov byte [esp + 0x12], 0
mov byte [esp + 0x16], 0x6e
mov byte [esp + 0x17], 0x74
mov edx, 0x65
mov byte [esp + 0x1c], al
mov byte [esp + 0x15], dl
mov byte [esp + 0x1a], dl
mov byte [esp + 0x18], 0x69
mov byte [esp + 0x19], 0x6e
mov byte [esp + 0x1b], 0x6c
mov byte [esp + 0x1e], 0x74
mov byte [esp + 0x1d], dl
mov byte [esp], cl
mov byte [esp + 0x1f], 0x75
mov byte [esp + 0x20], 0x70
mov byte [esp + 0x21], 0
mov byte [esp + 1], 0x6f
mov byte [esp + 2], 0x45
mov byte [esp + 3], 0x6e
mov byte [esp + 4], 0x74
lea eax, [esp + 8]
lea ecx, [esp]
lea edx, [esp + 0x14]
push eax
mov byte [esp + 9], 0x72
mov byte [esp + 0xa], 0x79
mov byte [esp + 0xb], 0
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntA]
add esp, 0x24
ret
Function at 0x41a630
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 4
mov byte [esp + 3], 0
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
push ebp
lea eax, [esi + 4]
mov dword [esi], eax
mov cx, word [edi + 4]
mov word [esi + 4], cx
mov ax, word [edi + 0xa]
mov word [esi + 6], ax
mov dx, word [edi + 0x14]
mov word [esi + 0x16], dx
lea edx, [esi + 0x24]
mov cx, word [edi + 8]
mov word [esi + 8], cx
lea ecx, [esi + 4]
mov ax, word [edi + 6]
push ecx
mov word [esi + 0xa], ax
mov dword [esi + 0x10], edx
call fcn.0041a540
test al, al
jne 0x41a7a1
test byte [edi + 0x1c], 4
je 0x41a693
mov byte [esp + 0x13], 1
xor cx, cx
xor dx, dx
movzx ebp, cx
lea eax, [ebp*8]
sub eax, ebp
shl eax, 2
shl ebp, 2
lea eax, [eax + eax*4]
mov word [eax + esi + 0x36], cx
lea ebx, [eax + esi]
cmp cx, 3
lea eax, [ebp + ebp*8]
lea ebp, [eax + edi]
mov ax, word [ebp + 0xe]
mov word [ebx + 0x9c], ax
mov ax, word [ebp + 0x12]
mov word [ebx + 0x8e], ax
mov ax, word [ebp + 0x16]
mov word [ebx + 0x34], ax
mov ax, word [ebp + 0x18]
mov word [ebx + 0x32], ax
mov eax, dword [ebp + 0x1c]
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp + 0x24]
mov dword [ebx + 0x28], eax
lea eax, [esi + 4]
mov dword [ebx + 0xa4], eax
jne 0x41a710
mov dword [ebx + 0xa8], 0
jmp 0x41a71c
lea eax, [ebx + 0xb0]
mov dword [ebx + 0xa8], eax
test cx, cx
jne 0x41a72d
mov dword [ebx + 0xac], 0
jmp 0x41a736
lea eax, [ebx - 0x68]
mov dword [ebx + 0xac], eax
cmp byte [esp + 0x13], 0
je 0x41a74b
cmp word [ebp + 0xe], 0xffff
jne 0x41a74b
or dword [ebx + 0x2c], 8
jmp 0x41a751
mov word [ebx + 0x36], dx
inc dx
inc cx
cmp cx, 4
jb 0x41a699
push esi
call fcn.0041a5b0
push esi
call fcn.0041a4f0
push esi
call fcn.0041a4b0
mov eax, dword [esi + 0x10]
push eax
call fcn.0041b5a0
mov word [esi + 0xc], ax
test ax, ax
je 0x41a797
add esi, 4
push esi
call fcn.0041b410
xor ax, ax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 8
push esi
call fcn.0041a480
mov ax, 9
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 8
Function at 0x424cc3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x46d7d0
cmp edx, dword [eax]
je 0x424ce5
add eax, 8
inc ecx
cmp eax, 0x46d860
jl 0x424cd6
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x46d7d0]
jne 0x424e13
mov eax, dword [0x52a074]
cmp eax, 1
je 0x424ded
test eax, eax
jne 0x424d16
cmp dword [0x46cf0c], 1
je 0x424ded
cmp edx, 0xfc
je 0x424e13
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x424d4d
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00420980
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00420900
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x424d90
lea eax, [ebp - 0x1a4]
push eax
call fcn.00420900
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x42f944
push edi
call fcn.00420a70
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00420980
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00420990
lea eax, [ebp - 0xa0]
push 0x42f924
push eax
call fcn.00420990
push dword [esi + 0x46d7d4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00420990
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0042b25c
add esp, 0x2c
pop edi
jmp 0x424e13
lea eax, [ebp + 8]
lea esi, [esi + 0x46d7d4]
push 0
push eax
push dword [esi]
call fcn.00420900
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 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
mov ecx, 0x6e250301
nop
nop
test eax, eax
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x4ab45a0
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x1001ed8
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x10090c4]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [0x100919c], 1
push ebx
push esi
push edi
jne 0x1001f07
or dword [0x100919c], 1
call fcn.01001e77
mov dword [0x1009198], eax
push 4
pop eax
call fcn.01005df0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1001f29
xor eax, eax
jmp 0x1001fe6
mov ebx, dword [ebp - 0x28]
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x4c]
lea edi, [eax - 1]
not edi
and edi, esi
sub edi, eax
mov dword [ebp - 0xc], eax
mov eax, dword [0x10090ec]
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xffff1000
add esi, 0x11000
add esi, ebx
cmp edi, esi
jb 0x1001f22
cmp eax, 1
je 0x1001fc7
mov dword [ebp - 8], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1001f22
mov eax, dword [ebp - 0x20]
add dword [ebp - 8], eax
test dword [ebp - 0x1c], ebx
je 0x1001f70
test dword [ebp - 0x18], 0x100
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 8], eax
je 0x1001fa2
xor eax, eax
inc eax
jmp 0x1001fe6
cmp edi, eax
jb 0x1001f22
cmp eax, esi
jae 0x1001fb1
mov dword [ebp - 8], esi
push 4
push ebx
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x10090ec]
jmp 0x1001fca
mov dword [ebp - 8], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0x10]
push ecx
inc eax
push eax
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x5c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01005dc2
leave
ret

Function at 0x100270e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
cmp word [ecx], 0
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
je 0x1002799
cmp word [eax], 0
push ebx
push esi
push edi
je 0x1002794
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
jmp 0x100277a
movzx eax, word [edi]
test ax, ax
je 0x100279d
movzx ecx, word [esi]
movzx eax, ax
sub ecx, eax
jne 0x1002780
push esi
call ebx
push edi
mov dword [ebp - 4], eax
call ebx
mov ecx, dword [ebp - 4]
sub eax, edi
sub ecx, esi
xor eax, ecx
test eax, 0xfffffffe
jne 0x1002780
jmp 0x1002775
inc esi
inc esi
movzx ecx, word [esi]
inc edi
inc edi
movzx eax, word [edi]
sub ecx, eax
je 0x100277a
cmp esi, dword [ebp - 4]
jb 0x1002767
cmp word [esi], 0
jne 0x100273a
cmp word [edi], 0
je 0x100279d
push dword [ebp + 8]
call ebx
cmp word [eax], 0
mov dword [ebp + 8], eax
jne 0x1002732
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
mov eax, dword [ebp + 8]
jmp 0x1002796
Function at 0x1002e83
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x88], eax
cmp eax, ebx
jne 0x1002ea7
xor al, al
jmp 0x1002ec9
lea eax, [ebp - 4]
push eax
push ebx
push esi
push 0x1002e38
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x1002ec7
push eax
mov bl, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop esi
pop ebx
leave
ret
Function at 0x1004dc9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x14
mov eax, 0x100738e
call fcn.01005f91
xor edi, edi
mov dword [ebp - 0x14], edi
push 2
push edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
mov dword [ebp - 0x18], ebx
cmp ebx, edi
jne 0x1004e15
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jg 0x1004e09
mov esi, eax
jmp 0x1004f09
and eax, 0xffff
or eax, 0x80070000
jmp 0x1004e02
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
jne 0x1004e45
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x1004efe
and eax, 0xffff
or eax, 0x80070000
jmp 0x1004efe
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
cmp ebx, edi
je 0x1004e28
push esi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
cmp byte [esi + ebx], 0
mov edi, ebx
je 0x1004eaf
lea edi, [esi + 1]
cmp edi, 0x400
ja 0x1004e87
push edi
call fcn.01001ffd
test al, al
je 0x1004e87
mov eax, edi
call fcn.01005eb0
mov edi, esp
jmp 0x1004e92
push edi
lea ecx, [ebp - 0x14]
call fcn.010039db
mov edi, eax
test edi, edi
jne 0x1004e9d
mov esi, 0x8007000e
jmp 0x1004f00
lea eax, [esi + 1]
push eax
push ebx
push edi
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov byte [edi + esi], 0
test edi, edi
jne 0x1004eb7
xor eax, eax
jmp 0x1004ef2
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea ebx, [esi + esi]
cmp ebx, 0x400
ja 0x1004ee1
push ebx
call fcn.01001ffd
test al, al
je 0x1004ee1
mov eax, ebx
call fcn.01005eb0
mov eax, esp
jmp 0x1004eea
push ebx
lea ecx, [ebp - 0x14]
call fcn.010039db
push esi
push edi
push eax
call fcn.010020d0
push dword [ebp + 0x14]
lea ecx, [ebp - 0x20]
push eax
call fcn.01004980
mov esi, eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x14]
call fcn.01002e07
mov eax, esi
lea esp, [ebp - 0x30]
call fcn.01005fe5
ret 0x10
Function at 0x10050e2
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10090c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor esi, esi
push esi
mov dword [ebp - 0x14], eax
call dword [sym.imp.ole32.dll_CoInitialize]
push esi
push 8
push esi
push 2
push 6
push esi
push esi
push 0xffffffffffffffff
push esi
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
push 0x10012e4
push dword [ebp + 8]
mov ebx, 0x1009108
push 0x1009018
mov ecx, ebx
call fcn.010031c8
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, 0x100172c
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
mov dword [0x100918c], eax
lea eax, [ebp - 0xc]
movsw word es:[edi], word [esi]
xor esi, esi
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x10], esi
jmp 0x100517e
push 0x1001714
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x10051a2
push 0x1001700
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x10051b7
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.01001e29
mov edi, eax
cmp edi, esi
jne 0x1005159
mov ecx, ebx
call fcn.01002e83
push 1
push 4
push ebx
call fcn.01002c5d
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x10051da
push esi
push esi
push 0x64
push ebx
call fcn.01004fa6
push esi
push 1
push ebx
call fcn.01004579
jmp 0x10051cb
push esi
push 1
push 0x64
push ebx
call fcn.01004fa6
push esi
push 1
push ebx
call fcn.010044c7
mov dword [ebp - 0x10], eax
jmp 0x10051f8
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push esi
push esi
push esi
lea eax, [ebp - 0x30]
push eax
call edi
test eax, eax
jne 0x10051d0
push ebx
call fcn.01002cb2
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
call fcn.01002d01
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01005dc2
leave
ret 0x10
Function at 0x1005755
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x10090c4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x10091d8], 0
mov eax, dword [ebp + 8]
jne 0x1005781
cmp eax, 0x80
jne 0x100582e
cmp eax, 0x10
push esi
push edi
jg 0x10057bc
je 0x10057b5
dec eax
je 0x10057ae
dec eax
je 0x10057a7
dec eax
dec eax
je 0x10057a0
sub eax, 4
jne 0x10057cb
mov edi, 0x1001884
jmp 0x10057e5
mov edi, 0x100187c
jmp 0x10057e5
mov edi, 0x1001874
jmp 0x10057e5
mov edi, 0x100186c
jmp 0x10057e5
mov edi, 0x1001864
jmp 0x10057e5
sub eax, 0x20
je 0x10057e0
sub eax, 0x20
je 0x10057d9
sub eax, 0x40
je 0x10057d2
mov edi, 0x100185c
jmp 0x10057e5
mov edi, 0x1001850
jmp 0x10057e5
mov edi, 0x1001848
jmp 0x10057e5
mov edi, 0x1001840
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
mov esi, 0x100
push esi
lea eax, [ebp - 0x204]
push eax
call fcn.010056de
lea eax, [ebp - 0x204]
push eax
push edi
push 0x100182c
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.0100571a
add esp, 0x14
lea eax, [ebp - 0x104]
push eax
mov byte [ebp - 5], 0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01005dc2
leave
ret
Function at 0x1005ce7
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x10078b0
call fcn.01005ee4
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, 0x1009554
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1005aa2
cmp eax, esi
jne 0x1005a95
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1005aa5
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1005a7c
xor esi, esi
inc esi
mov eax, dword [0x1009550]
cmp eax, esi
jne 0x1005ab8
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1005ae7
mov eax, dword [0x1009550]
test eax, eax
jne 0x1005ae1
mov dword [0x1009550], esi
push 0x1001228
push 0x100121c
call fcn.010059de
pop ecx
pop ecx
test eax, eax
je 0x1005ae7
jmp 0x1005c0b
mov dword [0x1009218], esi
mov eax, dword [0x1009550]
cmp eax, esi
jne 0x1005b0b
push 0x1001218
push 0x100120c
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1009550], 2
cmp dword [ebp - 0x20], ebx
jne 0x1005b18
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1009560], ebx
je 0x1005b39
push 0x1009560
call fcn.01006279
pop ecx
test eax, eax
je 0x1005b39
push ebx
push 2
push ebx
call dword [0x1009560]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x1005c0b
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x1005ba3
cmp cx, bx
je 0x1005b5e
cmp dword [ebp - 0x1c], ebx
jne 0x1005ba3
movzx ecx, word [eax]
cmp cx, bx
je 0x1005b73
cmp cx, 0x20
ja 0x1005b73
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x1005b5e
test byte [ebp - 0x40], 1
je 0x1005b7f
movzx ecx, word [ebp - 0x3c]
jmp 0x1005b82
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x1009214], eax
cmp dword [0x1009208], ebx
jne 0x1005be8
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x1005bb4
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x1005b48
cmp dword [0x1009218], ebx
jne 0x1005bf6
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1009214]
jmp 0x1005c17
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01005f29
ret
call fcn.010063c6
jmp 0x1005a3f