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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100254a3
mov eax, dword fs:[0]
push eax
sub esp, 0x35c
push ebx
push esi
push edi
lea edi, [ebp - 0x368]
mov ecx, 0xd7
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x10031424]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
movzx eax, byte [0x100313cb]
cmp eax, 1
jne 0x1001b961
mov byte [0x100313cb], 0
mov esi, esp
push str.._Config.txt
push 0xff
push 0x100339b0
push 0
push 0x100299a8
push str.Config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp esi, esp
call fcn.100213b0
mov dword [ebp - 0x148], 0x20
mov esi, esp
lea eax, [ebp - 0x148]
push eax
lea ecx, [ebp - 0x13c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
cmp esi, esp
call fcn.100213b0
lea ecx, [ebp + 8]
call fcn.10002410
mov esi, esp
push eax
lea eax, [ebp - 0x35c]
push eax
call fcn.1001b5c0
add esp, 4
mov dword [ebp - 0x364], eax
mov ecx, dword [ebp - 0x364]
mov dword [ebp - 0x368], ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x368]
call fcn.10002410
push eax
push str.Hacking_PC_Name_:__s_Msg_:__s_n
lea edx, [ebp - 0x250]
push edx
call dword [sym.imp.MSVCR100D.dll_sprintf]
add esp, 0x10
cmp esi, esp
call fcn.100213b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x35c]
call fcn.10002320
mov ecx, 0x10033e98
call fcn.1001ae80
movzx eax, al
cmp eax, 1
jne 0x1001b961
lea ecx, [ebp + 8]
call fcn.10002450
cmp eax, 4
jbe 0x1001b8ea
mov ecx, 0x10033e98
call fcn.1001ae80
movzx eax, al
test eax, eax
je 0x1001b8ea
sub esp, 0x20
mov ecx, esp
mov dword [ebp - 0x334], esp
lea eax, [ebp - 0x250]
push eax
call fcn.10002270
mov dword [ebp - 0x364], eax
mov ecx, 0x10033e98
call fcn.10019f30
mov byte [0x100313cb], 1
jmp 0x1001b961
lea ecx, [ebp + 8]
call fcn.10002450
test eax, eax
jne 0x1001b949
sub esp, 0x20
mov ecx, esp
mov dword [ebp - 0x328], esp
push str.Hacking
call fcn.10002270
mov dword [ebp - 0x364], eax
mov ecx, 0x10033e98
call fcn.10019f30
sub esp, 0x20
mov ecx, esp
mov dword [ebp - 0x31c], esp
push str.nll_sendded
call fcn.10002270
mov dword [ebp - 0x364], eax
mov ecx, 0x10033e98
call fcn.10019f30
mov byte [0x100313cb], 1
jmp 0x1001b961
mov ecx, 0x10033e98
call fcn.1001ae80
movzx eax, al
test eax, eax
jne 0x1001b961
mov byte [0x100313cb], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10002320
push edx
mov ecx, ebp
push eax
lea edx, [0x1001b9ac]
call fcn.100213e0
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100215d0
add esp, 0x368
cmp ebp, esp
call fcn.100213b0
mov esp, ebp
pop ebp
ret
Function at 0x1001c210
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10025603
mov eax, dword fs:[0]
push eax
sub esp, 0x53c
push ebx
push esi
push edi
lea edi, [ebp - 0x548]
mov ecx, 0x14f
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x10031424]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x40], 0x20
mov esi, esp
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
cmp esi, esp
call fcn.100213b0
lea ecx, [ebp + 8]
call fcn.10002410
mov esi, esp
push eax
lea eax, [ebp - 0x530]
push eax
call fcn.1001b5c0
add esp, 4
mov dword [ebp - 0x544], eax
mov ecx, dword [ebp - 0x544]
mov dword [ebp - 0x548], ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x548]
call fcn.10002410
push eax
push str.Hacking_PC_Name_:__s_Msg_:__s_n
lea edx, [ebp - 0x448]
push edx
call dword [sym.imp.MSVCR100D.dll_sprintf]
add esp, 0x10
cmp esi, esp
call fcn.100213b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x530]
call fcn.10002320
sub esp, 0x20
mov ecx, esp
mov dword [ebp - 0x53c], esp
lea eax, [ebp - 0x448]
push eax
call fcn.10002270
mov dword [ebp - 0x544], eax
mov ecx, 0x10033e98
call fcn.10019f30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10002320
push edx
mov ecx, ebp
push eax
lea edx, [0x1001c34c]
call fcn.100213e0
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100215d0
add esp, 0x548
cmp ebp, esp
call fcn.100213b0
mov esp, ebp
pop ebp
ret
Function at 0x1001d150
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10025877
mov eax, dword fs:[0]
push eax
sub esp, 0x294
push ebx
push esi
push edi
lea edi, [ebp - 0x2a0]
mov ecx, 0xa5
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x10031424]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x29c], 0
push 0x10027b6b
lea ecx, [ebp - 0x34]
call fcn.10002270
mov dword [ebp - 4], 1
mov dword [ebp - 0xd4], 0x20
mov esi, esp
lea eax, [ebp - 0xd4]
push eax
lea ecx, [ebp - 0xc8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
cmp esi, esp
call fcn.100213b0
mov esi, esp
lea eax, [ebp - 0x1d0]
push eax
call dword [sym.imp.ADVAPI32.dll_GetCurrentHwProfileW]
cmp esi, esp
call fcn.100213b0
mov esi, esp
lea eax, [ebp - 0x1cc]
push eax
lea ecx, [ebp - 0xc8]
push ecx
push str._ls____ls
lea edx, [ebp - 0xa0]
push edx
call dword [sym.imp.MSVCR100D.dll_sprintf]
add esp, 0x10
cmp esi, esp
call fcn.100213b0
lea eax, [ebp - 0xa0]
push eax
mov ecx, dword [ebp + 8]
call fcn.10002270
mov ecx, dword [ebp - 0x29c]
or ecx, 1
mov dword [ebp - 0x29c], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.10002320
mov eax, dword [ebp + 8]
push edx
mov ecx, ebp
push eax
lea edx, [0x1001d280]
call fcn.100213e0
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100215d0
add esp, 0x2a0
cmp ebp, esp
call fcn.100213b0
mov esp, ebp
pop ebp
ret
Function at 0x1001d300
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100258b3
mov eax, dword fs:[0]
push eax
sub esp, 0x2b0
push ebx
push esi
push edi
lea edi, [ebp - 0x2bc]
mov ecx, 0xac
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x10031424]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [0x100313cd], 0
mov ecx, 0x10033e98
call fcn.1001ae80
movzx eax, al
test eax, eax
jne 0x1001d365
mov eax, 1
test eax, eax
je 0x1001d533
sub esp, 0x20
mov ecx, esp
mov dword [ebp - 0x2b4], esp
push str._HardWarIDLogger
call fcn.10002270
mov dword [ebp - 0x2bc], eax
call fcn.1001b770
add esp, 0x20
mov esi, esp
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, esp
call fcn.100213b0
lea eax, [ebp - 0x34]
push eax
mov ecx, 0x10033e98
call fcn.1001a5a0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.10002450
add eax, 1
push eax
call fcn.1001eeb0
add esp, 4
mov dword [ebp - 0x2a8], eax
mov eax, dword [ebp - 0x2a8]
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x34]
call fcn.10002410
push eax
mov eax, dword [ebp - 0x40]
push eax
call sub.MSVCR100D.dll_strcpy
add esp, 8
mov esi, esp
lea eax, [ebp - 0x1a8]
push eax
call dword [sym.imp.ADVAPI32.dll_GetCurrentHwProfileW]
cmp esi, esp
call fcn.100213b0
mov esi, esp
lea eax, [ebp - 0x1a4]
push eax
push 0x10027734
lea ecx, [ebp - 0xac]
push ecx
call dword [sym.imp.MSVCR100D.dll_sprintf]
add esp, 0xc
cmp esi, esp
call fcn.100213b0
lea eax, [ebp - 0x1d0]
push eax
call fcn.1001d150
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1d0]
call fcn.10002410
mov esi, esp
push eax
push str.Hacking_opened_Blocked_HWID_:__ls_connection_refused
push 0x10033ab0
call dword [sym.imp.MSVCR100D.dll_sprintf]
add esp, 0xc
cmp esi, esp
call fcn.100213b0
lea ecx, [ebp - 0x34]
call fcn.1000e350
cmp eax, 3
jbe 0x1001d515
lea ecx, [ebp - 0x34]
call fcn.10002410
mov esi, esp
push eax
lea ecx, [ebp - 0x1d0]
call fcn.10002410
push eax
call dword [sym.imp.MSVCR100D.dll_strstr]
add esp, 8
cmp esi, esp
call fcn.100213b0
test eax, eax
jne 0x1001d4b9
push 0
lea ecx, [ebp - 0x1d0]
call fcn.10002410
push eax
lea ecx, [ebp - 0x34]
call fcn.100024e0
cmp eax, dword [0x100276dc]
je 0x1001d515
push 0x1d
push str.XeonansePlayerAreaBitFunction
push 0x513146
call fcn.1001b470
add esp, 0xc
sub esp, 0x20
mov ecx, esp
mov dword [ebp - 0x29c], esp
push 0x10033ab0
call fcn.10002270
mov dword [ebp - 0x2bc], eax
call fcn.1001b770
add esp, 0x20
push 0x1d
push str.XeonansePlayerAreaBitFunction
push 0x513146
call fcn.1001b470
add esp, 0xc
mov esi, esp
push 0
call dword [sym.imp.MSVCR100D.dll_exit]
cmp esi, esp
call fcn.100213b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1d0]
call fcn.10002320
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.10002320
push edx
mov ecx, ebp
push eax
lea edx, [0x1001d570]
call fcn.100213e0
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100215d0
add esp, 0x2bc
cmp ebp, esp
call fcn.100213b0
mov esp, ebp
pop ebp
ret
Function at 0x1001f3e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10029e58
push 0x10022172
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffcc
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0x5a4d
je 0x1001f446
mov byte [ebp - 0x3d], 0
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x3d]
jmp 0x1001f4cf
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x38]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
cmp dword [ecx], 0x4550
je 0x1001f46d
mov byte [ebp - 0x3e], 0
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x3e]
jmp 0x1001f4cf
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x38]
add eax, dword [edx + 0xd8]
cmp dword [ebp + 0xc], eax
jb 0x1001f4a8
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
add edx, dword [ecx + 0xd8]
mov eax, dword [ebp - 0x3c]
add edx, dword [eax + 0xdc]
cmp dword [ebp + 0xc], edx
jae 0x1001f4a8
mov byte [ebp - 0x3f], 1
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x3f]
jmp 0x1001f4cf
mov byte [ebp - 0x40], 0
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x40]
jmp 0x1001f4cf
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1001f5b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10034308]
mov dword [ebp - 4], eax
jmp 0x1001f5c9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x1001f5e6
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x1001f5c0
mov esp, ebp
pop ebp
ret
Function at 0x1001f5f0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10034318], eax
je 0x1001f60e
mov eax, 0x10dd
jmp 0x1001f6f0
mov eax, dword [0x10034328]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1001f68d
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x10]
xor eax, eax
mov al, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
jne 0x1001f66b
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x10], 0
je 0x1001f66b
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x10]
push eax
call fcn.1001f760
add esp, 4
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
push edx
call sub.MSVCR100D.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x1001f616
mov dword [0x10034328], 0
call fcn.1001f700
mov ecx, dword [0x10034324]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
je 0x1001f6da
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call sub.MSVCR100D.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], edx
jmp 0x1001f6a5
mov dword [0x10034324], 0
mov dword [0x10034318], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1001fc60
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
cmp dword [eax], 0x52727464
je 0x1001fc75
xor eax, eax
jmp 0x1001fcea
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
add edx, 0x10000
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
add eax, 0x48
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
jmp 0x1001fca2
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0x38d
jae 0x1001fce5
mov edx, dword [ebp - 0xc]
imul edx, edx, 0x48
mov eax, dword [ebp - 0x10]
cmp dword [eax + edx + 0x40], 0
je 0x1001fce3
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 8]
jb 0x1001fcdf
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 4]
jb 0x1001fce3
xor eax, eax
jmp 0x1001fcea
jmp 0x1001fc99
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x1001fda0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x1003431c], 0
je 0x1001fdb9
mov eax, dword [0x1003431c]
jmp 0x1001fe59
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x1001fdcb
xor eax, eax
jmp 0x1001fe59
push 8
call sub.MSVCR100D.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1001fe21
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x1001fe0a
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call sub.MSVCR100D.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x1003431c], eax
mov dword [0x10034320], 0
mov eax, dword [ebp - 8]
jmp 0x1001fe59
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1001fe3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x1001fdeb
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x10034324]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x10034324], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x100206a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10020770
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1002075c
cmp dword [ebp - 4], 0x50000000
jb 0x100206dc
cmp dword [ebp - 4], 0x80000000
ja 0x100206dc
mov dword [ebp - 4], 0x80010000
jmp 0x100206b5
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call sub.MSVCR100D.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10020702
jmp 0x1002075c
cmp dword [ebp - 0x10], 0x10000
jne 0x10020745
cmp dword [ebp - 0x14], 0x10000
jb 0x10020745
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x10020738
mov eax, dword [ebp - 0x24]
jmp 0x1002075e
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10020757
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x14]
push ecx
call fcn.10020770
add esp, 4
mov dword [ebp - 4], eax
jmp 0x100206b5
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x100207b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.10020880
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x10020874
cmp dword [ebp - 4], 0x50000000
jb 0x100207f1
cmp dword [ebp - 4], 0x80000000
ja 0x100207f1
mov dword [ebp - 4], 0x4fff0000
jmp 0x100207ca
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call sub.MSVCR100D.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10020817
jmp 0x10020874
cmp dword [ebp - 0x10], 0x10000
jne 0x1002085a
cmp dword [ebp - 0x14], 0x10000
jb 0x1002085a
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x1002084d
mov eax, dword [ebp - 0x24]
jmp 0x10020876
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1002086f
mov ecx, dword [ebp - 0x1c]
sub ecx, 0x10000
push ecx
call fcn.10020880
add esp, 4
mov dword [ebp - 4], eax
jmp 0x100207ca
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x100215d0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10031424]
jne 0x100215da
repz ret
jmp fcn.10022990
Function at 0x4011f0
Capabilities:
Get file version info

Disassembly:
mov eax, 0x1b3c
call fcn.00401b30
mov eax, dword [str._unknown_]
mov ecx, dword [0x407204]
mov dx, word [0x407208]
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x2c], ecx
push 0x104
lea ecx, [esp + 0x248]
mov word [esp + 0x34], dx
mov edx, dword [esp + 0x1b54]
mov dword [esp + 0x36], eax
push ecx
mov dword [esp + 0x3e], eax
push edx
mov word [esp + 0x46], ax
call edi
lea ecx, [eax - 1]
mov eax, ecx
test eax, eax
jl 0x40125f
mov dl, 0x5c
cmp byte [esp + eax + 0x244], dl
je 0x40125f
dec eax
jns 0x401253
cmp ecx, eax

Function at 0x401520
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401526
sub eax, edx
mov dword [esp], eax
je 0x401581
mov eax, dword [esp + 8]
mov edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401540
push esi
push edi
mov edi, ebx
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401550
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
pop edi
pop esi
je 0x401581
test al, 0x10
jne 0x401581
mov eax, 1
pop ecx
ret
xor eax, eax
pop ecx
ret
Function at 0x401e08
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x4094f8], esi
push edi
jne 0x401e28
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x4094f4], esi
mov byte [0x4094f0], al
jne 0x401e8e
mov ecx, dword [0x40b548]
test ecx, ecx
je 0x401e6f
mov eax, dword [0x40b544]
sub eax, 4
cmp eax, ecx
jmp 0x401e68
mov eax, dword [eax]
test eax, eax
je 0x401e5a
call eax
mov eax, dword [0x40b544]
sub eax, 4
cmp eax, dword [0x40b548]
mov dword [0x40b544], eax
jae 0x401e52
mov eax, 0x40901c
mov esi, 0x409020
cmp eax, esi
mov edi, eax
jae 0x401e8e
mov eax, dword [edi]
test eax, eax
je 0x401e87
call eax
add edi, 4
cmp edi, esi
jb 0x401e7f
mov eax, 0x409024
mov esi, 0x409028
cmp eax, esi
mov edi, eax
jae 0x401ead
mov eax, dword [edi]
test eax, eax
je 0x401ea6
call eax
add edi, 4
cmp edi, esi
jb 0x401e9e
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x401ec7
push dword [ebp + 8]
mov dword [0x4094f8], 1
call fcn.00401d6e
pop ebp
ret

Function at 0x401f09
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x409370]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x409238]
je 0x401f3e
inc eax
cmp eax, 0x13
jb 0x401f2f
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x409238]
jne 0x402064
mov eax, dword [0x4094a8]
cmp eax, 1
je 0x40203c
cmp eax, edx
jne 0x401f6e
cmp dword [0x409234], 1
je 0x40203c
cmp ecx, 0xfc
je 0x402064
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x401fa4
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00402c30
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00402d30
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x401fd8
mov eax, edi
push eax
call fcn.00402d30
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x407768
push edi
call fcn.00401a00
add esp, 0x10
push edi
call fcn.00402d30
push dword [esi + 0x40923c]
mov ebx, eax
call fcn.00402d30
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00401b30
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00402c30
push edi
push ebx
call fcn.00402c40
push 0x407748
push ebx
call fcn.00402c40
push dword [esi + 0x40923c]
push ebx
call fcn.00402c40
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00402b2d
add esp, 0x2c
jmp 0x402064
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x40923c]
push dword [esi]
call fcn.00402d30
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00402dec
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x402b2d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x409614], ebx
push esi
push edi
jne 0x402bad
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x402be8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4077fc
push edi
call esi
test eax, eax
mov dword [0x409614], eax
je 0x402be8
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x409618], eax
call esi
cmp dword [0x4094b8], 2
mov dword [0x40961c], eax
jne 0x402bad
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x409624], eax
je 0x402bad
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x409620], eax
mov eax, dword [0x409620]
test eax, eax
je 0x402bf2
call eax
test eax, eax
je 0x402bd9
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x409624]
test eax, eax
je 0x402bd9
test byte [ebp - 8], 1
jne 0x402bf2
cmp dword [0x4094c4], 4
jb 0x402bec
or byte [ebp + 0x12], 0x20
jmp 0x402c11
xor eax, eax
jmp 0x402c21
or byte [ebp + 0x12], 4
jmp 0x402c11
mov eax, dword [0x409618]
test eax, eax
je 0x402c11
call eax
mov ebx, eax
test ebx, ebx
je 0x402c11
mov eax, dword [0x40961c]
test eax, eax
je 0x402c11
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x409614]
pop edi
pop esi
pop ebx
leave
ret