joyce8/EMBER2024-capa huggingface dataset:
Function at 0x470175
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x47028d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x47028d
mov eax, dword [esi + 0x3c]
push eax
call fcn.004a02e0
mov esi, eax
test esi, esi
je 0x47028d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x47028d
mov ecx, esi
call fcn.004700e0
cmp edi, eax
jge 0x47028d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x470213
mov dword [esp + 0x34], 1
jmp 0x47026e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x47028d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0046e910
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x474910
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x474976
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x474976
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x474957
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
Function at 0x475560
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x4755a9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x475a20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ae510
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004755d0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00475650
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00475650
lea ecx, [esi + 0xc]
call fcn.0049e841
lea ecx, [esi + 0x10]
call fcn.0049e841
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00476bf0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00476bf0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00476bf0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0049e8b6
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0049e8b6
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x47a3a0
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [esp + 4]
lea eax, [esp + 8]
push eax
push ecx
call fcn.0048fec6
add esp, 8
push 1
call fcn.0048fdd3
nop
nop
nop
nop
nop
nop
nop
mov edx, dword [esp + 4]
xor eax, eax
mov cl, byte [edx]
test cl, cl
je 0x47a3e6
push esi
mov esi, eax
shl esi, 7
add esi, eax
inc edx
movsx eax, cl
mov cl, byte [edx]
test cl, cl
lea eax, [esi + eax - 0x61c8ffff]
jne 0x47a3cd
pop esi
ret

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

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
cmp di, 0x76d
jb 0x47cde5
cmp di, 0x801
ja 0x47cde5
mov ebx, dword [esp + 0x28]
cmp bx, 1
jb 0x47cde5
cmp bx, 0xc
ja 0x47cde5
mov al, byte [esp + 0x30]
test al, al
je 0x47cce4
push edi
call fcn.0047d220
add esp, 4
cmp ax, bx
je 0x47cce4
mov byte [esp + 0x30], 0
mov esi, dword [esp + 0x34]
mov ebp, dword [esp + 0x3c]
lea eax, [esp + 0x13]
lea ecx, [esp + 0x14]
mov word [esi], di
mov edi, dword [esp + 0x38]
push eax
lea edx, [esp + 0x1c]
mov word [edi], bx
mov ebx, dword [esp + 0x30]
push ecx
lea eax, [esp + 0x24]
mov word [ebp], bx
mov cx, word [edi]
push edx
mov dx, word [esi]
push eax
push ebx
push ecx
push edx
call fcn.0047cdf0
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x30]
push ebx
push eax
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x44]
push edx
push eax
push ecx
call fcn.0047cc10
add esp, 0x34
mov ebx, eax
xor eax, eax
inc eax
cmp eax, 0x64
mov dword [esp + 0x34], eax
jg 0x47cde5
test ebx, ebx
jne 0x47cd79
mov al, byte [esp + 0x13]
mov cl, byte [esp + 0x30]
cmp al, cl
je 0x47cddb
test al, al
je 0x47cd6c
push 0xffffffffffffffe1
jmp 0x47cd6e
push 0x1f
push ebp
push edi
push esi
call fcn.0047cbc0
add esp, 0x10
neg ebx
push ebx
push ebp
push edi
push esi
call fcn.0047cbc0
lea edx, [esp + 0x23]
lea eax, [esp + 0x24]
push edx
lea ecx, [esp + 0x2c]
push eax
mov ax, word [ebp]
lea edx, [esp + 0x34]
push ecx
mov cx, word [edi]
push edx
mov dx, word [esi]
push eax
push ecx
push edx
call fcn.0047cdf0
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x4c]
push edx
mov edx, dword [esp + 0x54]
push eax
push ecx
push edx
call fcn.0047cc10
mov ebx, eax
mov eax, dword [esp + 0x78]
add esp, 0x44
jmp 0x47cd46
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x10
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret
Function at 0x47e480
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4ae9d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push 0x5f5794
lea ecx, [esp + 4]
call fcn.0049e924
push 0x5c946c
lea ecx, [esp + 8]
mov dword [esp + 0x40], 0
call fcn.0049e924
push 0x5c9468
lea ecx, [esp + 0xc]
mov byte [esp + 0x40], 1
call fcn.0049e924
push 0x5c9464
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], 2
call fcn.0049e924
push 0x5c9460
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 3
call fcn.0049e924
push 0x5c945c
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 4
call fcn.0049e924
push 0x5c9458
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], 5
call fcn.0049e924
push 0x5c9454
lea ecx, [esp + 0x20]
mov byte [esp + 0x40], 6
call fcn.0049e924
push 0x5c9450
lea ecx, [esp + 0x24]
mov byte [esp + 0x40], 7
call fcn.0049e924
push 0x5c944c
lea ecx, [esp + 0x28]
mov byte [esp + 0x40], 8
call fcn.0049e924
push 0x5c9448
lea ecx, [esp + 0x2c]
mov byte [esp + 0x40], 9
call fcn.0049e924
push 0x5c9444
lea ecx, [esp + 0x30]
mov byte [esp + 0x40], 0xa
call fcn.0049e924
push 0x5c9440
lea ecx, [esp + 0x34]
mov byte [esp + 0x40], 0xb
call fcn.0049e924
mov eax, dword [esp + 0x44]
mov byte [esp + 0x3c], 0xc
cmp eax, 1
jge 0x47e5b0
cmp eax, 0xc
jle 0x47e5b0
mov ecx, dword [esp + 0x48]
push 0x5f5794
call fcn.0049e9f3
jmp 0x47e5be
mov ecx, dword [esp + 0x48]
lea eax, [esp + eax*4]
push eax
call fcn.0049e9a3
lea ecx, [esp + 0x30]
mov byte [esp + 0x3c], 0xb
call fcn.0049e8b6
lea ecx, [esp + 0x2c]
mov byte [esp + 0x3c], 0xa
call fcn.0049e8b6
lea ecx, [esp + 0x28]
mov byte [esp + 0x3c], 9
call fcn.0049e8b6
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 8
call fcn.0049e8b6
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 7
call fcn.0049e8b6
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], 6
call fcn.0049e8b6
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 5
call fcn.0049e8b6
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 4
call fcn.0049e8b6
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 3
call fcn.0049e8b6
lea ecx, [esp + 0xc]
mov byte [esp + 0x3c], 2
call fcn.0049e8b6
lea ecx, [esp + 8]
mov byte [esp + 0x3c], 1
call fcn.0049e8b6
lea ecx, [esp + 4]
mov byte [esp + 0x3c], 0
call fcn.0049e8b6
lea ecx, [esp]
mov dword [esp + 0x3c], 0xffffffff
call fcn.0049e8b6
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
add esp, 0x40
ret

Function at 0x4a0c84
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4a0cbc
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.0049ed11
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0049ece9
jmp 0x4a0cc8
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x4a2379
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 0x4a23bb
call fcn.004a8031
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4a23bb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4a23b2
xor eax, eax
jmp 0x4a23c3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004a23c9
pop edi
pop esi
pop ebx
ret 4

Function at 0x4a8561
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 0x4a858f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a85ad
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004a84c7
jmp 0x4a85ad
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a85ad
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004a84c7
test edi, edi
mov eax, edi
jne 0x4a8597
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40229b
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x4c], 0
je 0x402340
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
jmp 0x4022e4
mov eax, dword [ebp - 0x44]
add eax, 1
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x40]
add ecx, 2
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x44]
cmp edx, dword [ebp - 0x4c]
jae 0x402340
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], 0
fild qword [ebp - 0x54]
fstp qword [ebp - 0x5c]
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x60], 0
fild qword [ebp - 0x64]
fstp qword [ebp - 0x6c]
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x70], 0
fild qword [ebp - 0x74]
sub esp, 8
fstp qword [esp]
call fcn.00402f24
add esp, 8
fadd qword [ebp - 0x6c]
fadd qword [ebp - 0x5c]
call fcn.00403010
mov dword [ebp - 0x14], eax
jmp 0x4022d2
push 0
push 0
push 0
push 1
push str.A_WinHTTP_Example_Program_1.0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x402370
xor ecx, ecx
call fcn.00402231
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x20]
mov esp, ebp
pop ebp
ret
Function at 0x402381
Capabilities:
Extract resource via kernel32 functions
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0x64
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x60], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x60], 0
je 0x4023cf
push 0
push 0
push 0
push 0
call sub.pdh.dll_PdhGetDataSourceTimeRangeW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xc0000000
jbe 0x4023cd
mov eax, dword [ebp - 8]
add eax, 0x64
mov dword [ebp - 8], eax
jmp 0x4023fd
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10e]
push edx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10e]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x409
mov edx, dword [ebp - 8]
and edx, 0xffff
push edx
push 0xa
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x60]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov edx, dword [ebp - 4]
mov dword [edx + 0x8a], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x60]
mov dword [eax + 0x4c], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x8a]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xb8], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xb8]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x128], eax
mov edx, dword [ebp - 4]
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [edx + 0x11e], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x8a]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x60]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp - 4]
mov dword [edx], eax
push 0x50
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 0x40a130
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xf2], eax
mov edx, dword [ebp - 4]
push edx
call fcn.00402c62
push 0x96
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x402648
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x14]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x18]
xor eax, eax
mov ax, word [edx + 8]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.GDI32.dll_GetDIBits]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x2c], eax
mov word [ebp - 0x28], 0x4d42
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x20]
lea edx, [edx + ecx*4 + 0xe]
mov eax, dword [ebp - 0x18]
add edx, dword [eax + 0x14]
mov dword [ebp - 0x26], edx
mov word [ebp - 0x22], 0
mov word [ebp - 0x20], 0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x20]
lea edx, [edx + ecx*4 + 0xe]
mov dword [ebp - 0x1e], edx
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x20]
lea eax, [edx*4 + 0x28]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
push 0
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40276c
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x40276c
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4045a1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x43d650
cmp edx, dword [eax]
je 0x4045c3
add eax, 8
inc ecx
cmp eax, 0x43d6e0
jl 0x4045b4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x43d650]
jne 0x4046f1
mov eax, dword [0x43def0]
cmp eax, 1
je 0x4046cb
test eax, eax
jne 0x4045f4
cmp dword [0x43d55c], 1
je 0x4046cb
cmp edx, 0xfc
je 0x4046f1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40462b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00404e60
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00402e30
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40466e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00402e30
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40857c
push edi
call fcn.00406480
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00404e60
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00404e70
lea eax, [ebp - 0xa0]
push 0x40855c
push eax
call fcn.00404e70
push dword [esi + 0x43d654]
lea eax, [ebp - 0xa0]
push eax
call fcn.00404e70
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004063f5
add esp, 0x2c
pop edi
jmp 0x4046f1
lea eax, [ebp + 8]
lea esi, [esi + 0x43d654]
push 0
push eax
push dword [esi]
call fcn.00402e30
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 0x40595e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x40596d
pop dword [ebp - 0x3c]
mov eax, 0x6df26389
sub eax, 0x6db20a1c
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0x51f9b627
add dword [ebp - 0x4c], 0xfc588f24
mov dword [ebp - 0x48], 0x123c3e93
sub dword [ebp - 0x48], 0xe008f24e
mov dword [ebp - 0x44], 0xfed89a3e
add dword [ebp - 0x44], 0x4d73a9f0
mov dword [ebp - 0x40], 0x27c170b9
add dword [ebp - 0x40], 0xd83e8f47
lea eax, [ebp - 0x4c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0xacadc586
add dword [ebp - 0x4c], 0xc7c4a3d0
mov dword [ebp - 0x48], 0xe15448d7
sub dword [ebp - 0x48], 0x9fe7e762
mov dword [ebp - 0x44], 0xe91f38b2
sub dword [ebp - 0x44], 0x85afcc46
mov dword [ebp - 0x40], 0x494259b
sub dword [ebp - 0x40], 0x494259b
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, 0x1caa6ce6
add eax, 0xe396041a
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x34d4f
push 0
call eax
mov ecx, 0x4076
xor edx, edx
add edx, eax
mov edi, 0x410000
add edi, dword [ebp - 0x3c]
mov esi, 0x10d01199
sub esi, 0x8907d14c
sub dword [ebp - 8], 0x9d6dbf0b
mov ebx, dword [edi]
sub dword [ebp - 0x24], edx
xor ebx, esi
xor dword [ebp - 0x2c], ecx
mov dword [edx], ebx
add dword [ebp - 0x20], esi
add edx, 0xc0ce571c
add edx, 0x3f31a8e8
add edi, 0x7f2d6e00
sub edi, 0x7f2d6dfc
loop 0x405a80
add eax, 0xaf1e11f4
sub eax, 0xaf1d1d49
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xa2c77d6c
sub ecx, 0xa2877d6c
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x40158c
Capabilities:
Encode data using xor

Disassembly:
push 0x401758
call sub.msvbvm60.dll_ThunRTMain
add byte [eax], al
add byte [eax], al
add byte [eax], al
xor byte [eax], al
add byte [eax], al
cmp byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
fist dword [edi - 0x10]
enter 0xffffffffffffec5e, 0x75
dec esi
lodsd eax, dword [esi]
cmp ebx, ebx
jb 0x4015f7
pop esp
int3
add byte [esi + edx], cl
inc eax
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [esi + edx], cl
inc eax
add byte [eax], bl
and byte [eax + 0x27], bl
clc
pop ds
pop eax
daa
enter 0x581f, 0x27
mov al, byte [0x6027581f]
pop ds
pop eax
daa
inc eax
pop ds
pop eax
daa
sbb byte [edi], bl
pop eax
daa
invalid
Function at 0x40335c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x44f00c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4033f4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4033d4
xor eax, eax
push ebp
push 0x4033cd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403410
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4033d4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x44f00c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x44f00c], ax
mov esp, ebp
pop ebp
ret

Function at 0x4040bc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x450048], 0
je 0x40411d
cmp word [0x45021c], 0xd7b2
jne 0x4040e5
cmp dword [0x450224], 0
jbe 0x4040e5
mov eax, 0x450218
call dword [0x450234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x44f054
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404144
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x44f01c], 0
jne 0x404139
push 0
push 0x44f074
push 0x44f054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret