joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45c9f0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x45ca23
push esi
call fcn.0045fb50
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x45ca1c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x45caa9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x45ca92
mov eax, dword [esi + 8]
test eax, eax
je 0x45ca47
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x45ca8e
cmp eax, 2
je 0x45ca92
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x45ca3a
cmp eax, 3
je 0x45ca6d
cmp eax, 1
jne 0x45ca3a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x45ca3a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x45ca3a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0045cad0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x45cab8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0045cad0
add esp, 4
pop esi
ret

Function at 0x469b00
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x469ba3
test eax, eax
jbe 0x469ba3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x469ba3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x469b4e
xor esi, esi
jmp 0x469b54
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x469b7f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0041d0b0
add esi, eax
push esi
mov ebx, esi
call fcn.0041d0b0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x469b60
pop ebp
test edi, edi
pop edi
jne 0x469ba3
test ebx, ebx
je 0x469ba3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00472690
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x469ce5
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 0x469dfd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x469dfd
mov eax, dword [esi + 0x3c]
push eax
call fcn.00483567
mov esi, eax
test esi, esi
je 0x469dfd
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 0x469dfd
mov ecx, esi
call fcn.00469c50
cmp edi, eax
jge 0x469dfd
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 0x469d83
mov dword [esp + 0x34], 1
jmp 0x469dde
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x469dfd
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.004684c0
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 0x483f0b
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x483f43
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.00481fc2
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00481f9a
jmp 0x483f4f
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4855fd
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 0x48563f
call fcn.0048b0fd
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x48563f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x485636
xor eax, eax
jmp 0x485647
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0048564d
pop edi
pop esi
pop ebx
ret 4
Function at 0x48b62d
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 0x48b65b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48b679
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0048b593
jmp 0x48b679
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48b679
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0048b593
test edi, edi
mov eax, edi
jne 0x48b663
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0xbbef00
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.sect_1
lea edi, [esi - 0x748000]
push edi
or ebp, 0xffffffff
jmp 0xbbef22
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xbbef29
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xbbef18
mov eax, 1
add ebx, ebx
jne 0xbbef3b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xbbef4c
jne 0xbbef5c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xbbef5c
dec eax
add ebx, ebx
jne 0xbbef58
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xbbef30
xor ecx, ecx
sub eax, 3
jb 0xbbef74
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xbbefe6
sar eax, 1
mov ebp, eax
jmp 0xbbef7f
add ebx, ebx
jne 0xbbef7f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0xbbef8c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0xbbefb0
inc ecx
add ebx, ebx
jne 0xbbef9c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xbbef91
jne 0xbbefad
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xbbef91
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xbbefd0
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xbbefc1
jmp 0xbbef1e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xbbefd0
add edi, ecx
jmp 0xbbef1e
pop esi
mov edi, esi
mov ecx, 0x758a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xbbefee
cmp byte [edi], 0x2c
jne 0xbbefee
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0xbbeff3
lea edi, [esi + 0x7bb000]
mov eax, dword [edi]
or eax, eax
je 0xbbf062
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x7c0f18]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x7c0ff4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xbbf020
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x7c0ff8]
or eax, eax
je 0xbbf05c
mov dword [ebx], eax
add ebx, 4
jmp 0xbbf03d
call dword [esi + 0x7c0ffc]
popal
jmp 0x4fbb3c
Function at 0x401d80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
cmp dword [0x5a081c], 0
push ebx
mov ebx, dword [0x59ffa8]
jne 0x401e2d
push esi
push 0xa
push 0x11
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x401e2c
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401e2b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push 0
mov ebx, eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
push ebx
push eax
call fcn.0043d8d0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [esp + 0xc]
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x401e24
push eax
call fcn.004017c0
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
pop edi
pop esi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x404b90
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov eax, dword [ebx + 0x3c]
mov eax, dword [eax + ebx + 0x80]
sub esp, 0x1c
push ebp
push esi
add eax, ebx
cmp dword [eax + 0xc], 0
push edi
lea edi, [eax + 0xc]
je 0x404be8
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov ecx, dword [edi]
add ecx, ebx
push ecx
push 0x456538
call ebp
test eax, eax
jne 0x404be0
mov esi, dword [edi + 4]
add esi, ebx
cmp dword [esi], eax
je 0x404be0
lea ebx, [ebx]
mov edx, dword [esp + 0x2c]
cmp dword [esi], edx
je 0x404bf1
add esi, 4
cmp dword [esi], 0
jne 0x404bd0
add edi, 0x14
cmp dword [edi], 0
jne 0x404bb1
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x1c
ret
push 0x1c
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ecx, [esp + 0x20]
push ecx
push 0x40
push edx
push eax
call edi
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
jne 0x404c2b
mov dword [esi], 0x404d90
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push eax
push ecx
call edi
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
add esp, 0x1c
ret
Function at 0x406fd0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x10
push 1
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
mov eax, dword [edi]
push 0x30
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [edi]
push 5
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esi + 4], 0
lea edx, [esi + 4]
mov dword [esi + 8], esi
je 0x40702d
mov ecx, dword [edx + 4]
test ecx, ecx
je 0x407029
mov edx, dword [ecx]
mov edx, dword [edx]
lea eax, [esp]
push eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 4
mov dword [esp + 4], 7
call edx
add esp, 0x10
ret
cmp dword [ebx + 0x24], 4
jne 0x407029
mov ecx, dword [ebx + 0x20]
add esp, 0x10
jmp fcn.00405790

Function at 0x4070c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x44dcc7
mov eax, dword fs:[0]
push eax
mov eax, dword [0x46a070]
xor eax, esp
push eax
lea eax, [esp + 4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov dword [eax], vtable.autodlg::dialog_base.0
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [esp + 0xc], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x24], ecx
mov byte [esp + 0xc], 1
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 0x38], ecx
mov byte [esp + 0xc], 2
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], ecx
mov byte [esp + 0xc], 3
mov dword [eax + 0x4c], ecx
mov dword [eax + 0x50], ecx
mov byte [esp + 0xc], 4
mov dword [eax + 0x60], ecx
mov dword [eax + 0x54], ecx
mov dword [eax + 0x58], ecx
mov dword [eax + 0x5c], ecx
mov dword [esp + 0xc], 0xffffffff
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret 4

Function at 0x407a70
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x34
push ebx
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
push esi
call fcn.00407660
lea ebx, [esi + 0xc]
call fcn.00405c80
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
push 0
add ecx, eax
add edx, eax
mov eax, dword [esp + 0x40]
push 0
mov dword [esp + 0x24], ecx
push eax
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], edx
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov edx, dword [esi + 0x60]
mov ecx, dword [esp + 0x1c]
sub ecx, dword [esp + 0x14]
mov eax, dword [esp + 8]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x20]
sub edx, dword [esp + 0x18]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], eax
mov eax, dword [esi]
lea ecx, [esp + 0x24]
mov dword [esp + 0x34], edx
mov edx, dword [eax]
push ecx
mov ecx, esi
mov dword [esp + 0x28], 1
call edx
mov eax, dword [esi + 0x60]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x60]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp dword [esi + 0x60], 0
pop ebx
setne al
add esp, 0x34
ret 4
Function at 0x408510
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
mov eax, dword [0x46a070]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x1c]
mov esi, dword [edi + 0x18]
mov ecx, dword [edi + 0x20]
mov edx, dword [edi + 0x24]
mov dword [esp + 0xc], eax
mov eax, dword [edi + 0x28]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x14]
push eax
push esi
push 0x135
push eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x408577
push eax
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.USER32.dll_FillRect]
mov ebx, dword [edi + 0x10]
test bl, 1
mov dword [esp + 0x1c], ebx
push 0xf
je 0x40858e
push 0xa
lea edx, [esp + 0x14]
push edx
jmp 0x408595
push 5
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_DrawEdge]
mov edx, dword [edi + 0x14]
push 0x100
lea ecx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
test bl, 4
je 0x408636
mov ebx, dword [sym.imp.GDI32.dll_SetTextColor]
push 0xf0f0f0
push esi
call ebx
lea eax, [esp + 0x20]
lea edi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4085d0
push 0x25
lea ecx, [esp + 0x10]
push ecx
sub eax, edi
mov edi, dword [sym.imp.USER32.dll_DrawTextA]
push eax
lea edx, [esp + 0x2c]
push edx
push esi
call edi
mov eax, 1
add dword [esp + 0x10], eax
add dword [esp + 0xc], eax
add dword [esp + 0x14], eax
add dword [esp + 0x18], eax
push 0x787878
push esi
call ebx
lea eax, [esp + 0x20]
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x408615
push 0x25
sub eax, ecx
lea ecx, [esp + 0x10]
push ecx
push eax
lea edx, [esp + 0x2c]
push edx
push esi
call edi
mov ebx, dword [esp + 0x1c]
jmp 0x40865f
lea eax, [esp + 0x20]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x408640
push 0x25
lea ecx, [esp + 0x10]
push ecx
sub eax, edx
push eax
lea edx, [esp + 0x2c]
push edx
push esi
call dword [sym.imp.USER32.dll_DrawTextA]
test bl, 0x10
je 0x408685
mov eax, 3
add dword [esp + 0x10], eax
add dword [esp + 0xc], eax
sub dword [esp + 0x14], eax
sub dword [esp + 0x18], eax
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.USER32.dll_DrawFocusRect]
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebx
xor ecx, esp
mov al, 1
call fcn.0043a766
mov esp, ebp
pop ebp
ret
Function at 0x40d260
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40d277
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40d2a8
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x40d2a4
cmp esi, eax
jae 0x40d2a8
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x40d294
cmp esi, eax
jb 0x40d2ae
pop esi
pop edi
xor eax, eax
pop ebp
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x40d520
Capabilities:
Create thread
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x104
mov eax, dword [0x46a070]
xor eax, esp
mov dword [esp + 0x100], eax
mov eax, dword [0x59ffa8]
push ebx
mov ebx, dword [0x5a07f4]
push 0xa
push 0x10
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x40d567
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.0043a766
add esp, 0x104
ret
mov ecx, dword [0x59ffa8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40d54f
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0xff
push 0
push 0x59fea8
mov esi, eax
call fcn.0043d7a0
mov edx, dword [0x59ffa8]
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
add esp, 0xc
push 0xfe
push 0x59fea8
push 0x90
push edx
call edi
mov dword [0x59ca78], 0x59fea8
cmp word [esi + 6], 0
je 0x40d5cc
call fcn.00401d80
test ebx, ebx
jne 0x40d62e
movzx ecx, word [esi + 2]
mov ax, word [esi]
mov word [0x59af54], cx
movsx ecx, cx
mov word [0x59af52], ax
movsx eax, ax
lea edx, [ecx - 0x28]
add ecx, 0xffffffe2
mov dword [0x59c96c], eax
mov dword [0x59c980], eax
mov dword [0x59c994], eax
mov dword [0x59c970], edx
mov dword [0x59ca1c], ecx
movzx eax, word [esi + 4]
imul eax, eax, 0x3e8
push eax
push ebx
push 0x401ef0
mov dword [0x5a07e4], 1
call fcn.0043a621
add esp, 0xc
push 0xff
lea ecx, [esp + 0x10]
push 0
push ecx
call fcn.0043d7a0
mov eax, dword [0x59ffa8]
add esp, 0xc
push 0xfe
lea edx, [esp + 0x10]
push edx
push 0x70
push eax
call edi
test ebx, ebx
pop edi
pop esi
je 0x40d66b
lea ecx, [esp + 4]
push ecx
call fcn.0043abe4
add esp, 4
jmp 0x40d674
lea ebx, [esp + 4]
call fcn.00401ff0
mov ecx, dword [esp + 0x104]
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0043a766
add esp, 0x104
ret
Function at 0x40dda0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x408
mov eax, dword [0x46a070]
xor eax, esp
mov dword [esp + 0x404], eax
push esi
mov esi, ecx
cmp word [esi], 0x5c
je 0x40dde2
cmp word [esi + 2], 0x3a
je 0x40dde2
push 0x59fca8
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x40ddee
push esi
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0
push 7
push 1
push 0
push 1
push 0x40000000
lea eax, [esp + 0x20]
push eax
call fcn.0044be10
mov esi, eax
cmp esi, 0xffffffff
je 0x40de4a
mov edx, dword [esp + 0x410]
push 0
lea ecx, [esp + 8]
push ecx
push edx
push edi
push esi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x59fa6c
push 0x59fa64
push 0x59fa5c
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x408]
pop esi
xor ecx, esp
call fcn.0043a766
add esp, 0x408
ret
Function at 0x40e590
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44deb8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x46a070]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ecx, 0x59ebe4
lea esi, [esp + 0xc]
call fcn.0040eab0
mov edi, 1
mov dword [esp + 0x30], edi
lea ecx, [esp + 0x10]
call fcn.00402dd0
mov byte [esp + 0x30], 2
cmp dword [ebp + 8], 0
je 0x40e64b
mov eax, dword [esp + 0xc]
cmp dword [eax - 4], edi
mov esi, dword [eax - 0xc]
jle 0x40e603
mov eax, esi
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.0040b020
mov eax, dword [esp + 0xc]
mov ecx, dword [ebp + 8]
lea edx, [ebp + 0xc]
push edx
push ecx
push esi
push eax
call fcn.0043a9fb
mov edx, dword [esp + 0x1c]
add esp, 0x10
test edx, edx
jne 0x40e621
xor eax, eax
jmp 0x40e637
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40e626
sub eax, esi
js 0x40e6c8
cmp eax, dword [edx - 8]
jg 0x40e6c8
mov dword [edx - 0xc], eax
mov edx, dword [esp + 0xc]
mov byte [eax + edx], 0
push 0x456a14
push 0x456a14
lea eax, [esp + 0x14]
push eax
call fcn.00409f50
test ebx, ebx
je 0x40e72d
mov ecx, dword [esp + 0xc]
xor eax, eax
cmp dword [ecx - 0xc], eax
mov esi, vtable._com_error.0
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
je 0x40e6d2
mov byte [esp + 0x30], 3
lea edi, [esp + 0x14]
call fcn.0040e180
mov edx, dword [esp + 0xc]
push eax
push ebx
push edx
push str._s_n0x_x__s_n
lea edi, [esp + 0x20]
call fcn.0040eb20
add esp, 0x10
mov byte [esp + 0x30], 2
mov eax, dword [esp + 0x1c]
test eax, eax
mov dword [esp + 0x14], esi
je 0x40e70c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x40e70c
push 0x80070057
call fcn.00402920
mov byte [esp + 0x30], 4
lea edi, [esp + 0x14]
call fcn.0040e180
push eax
push ebx
push str.0x_x__s_n
lea edi, [esp + 0x1c]
call fcn.0040eb20
add esp, 0xc
mov byte [esp + 0x30], 2
mov eax, dword [esp + 0x1c]
test eax, eax
mov dword [esp + 0x14], esi
je 0x40e70c
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
cmp dword [esp + 0x20], 0
je 0x40e749
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x40e749
mov ecx, dword [esp + 0x20]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x40e749
mov eax, dword [esp + 0xc]
cmp dword [eax - 0xc], 0
je 0x40e749
push eax
push 0x456a30
lea edi, [esp + 0x18]
call fcn.0040eb20
add esp, 8
cmp dword [0x5a07f4], 0
je 0x40e761
mov edx, dword [esp + 0x10]
push edx
call fcn.0043abe4
add esp, 4
jmp 0x40e775
mov eax, dword [esp + 0x10]
push 0x10
push str.Error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov byte [esp + 0x30], 1
lea ecx, [esp + 0x10]
call fcn.00402e30
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.00402e30
mov eax, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x412650
Capabilities:
Enumerate pe sections

Disassembly:
movzx eax, word [ecx + 0x14]
push esi
push edi
movzx edi, word [ecx + 6]
xor esi, esi
test edi, edi
lea eax, [eax + ecx + 0x18]
jbe 0x412685
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x41266e
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x41267b
add edx, ecx
cmp ebx, edx
jb 0x412687
add esi, 1
add eax, 0x28
cmp esi, edi
jb 0x412664
xor eax, eax
pop edi
pop esi
ret

Function at 0x414e40
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ecx
mov al, byte [esi + 0x101]
xor ecx, ecx
cmp dword [esp + 0xc], ecx
push ebx
mov bl, byte [esi + 0x100]
jbe 0x414ea2
push ebp
push edi
jmp 0x414e60
add bl, 1
movzx edx, bl
lea edi, [edx + esi]
movzx edx, byte [edi]
add al, dl
mov byte [esp + 0xf], al
movzx eax, al
lea ebp, [eax + esi]
movzx eax, byte [ebp]
mov byte [edi], al
mov edi, dword [esp + 0x14]
add eax, edx
and eax, 0xff
mov byte [ebp], dl
movzx edx, byte [eax + esi]
xor byte [ecx + edi], dl
mov al, byte [esp + 0xf]
add ecx, 1
cmp ecx, dword [esp + 0x18]
jb 0x414e60
pop edi
pop ebp
mov byte [esi + 0x100], bl
mov byte [esi + 0x101], al
pop ebx
pop ecx
ret 8