joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a0d98
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4daf88]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4a0ddb
cmp word [esi], dx
jne 0x4a0ddb
or byte [edi + eax + 0x28], 4
jmp 0x4a0de0
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4a0f33
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4a0f13
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4a0e22
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4a0e58
cmp eax, edx
jae 0x4a0e64
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4a0dfa
jmp 0x4a0f33
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a0f0f
cmp dword [ebp - 0x14], 0
je 0x4a0f0f
mov eax, dword [ebx*4 + 0x4daf88]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4a0ee7
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4a0eb0
mov word [esi], cx
jmp 0x4a0ee3
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4daf88]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4daf88]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4daf88]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4a0f33
pop ebx
cmp word [ebp - 4], bx
jne 0x4a0ef8
cmp esi, dword [ebp + 0xc]
jne 0x4a0ef8
mov word [esi], bx
jmp 0x4a0f30
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401965
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4a0f33
push 0xd
jmp 0x4a0f2c
mov ecx, dword [ebx*4 + 0x4daf88]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a0f2a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a0f33
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x402130
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402149
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402184
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402180
lea ebx, [ebx]
cmp esi, eax
jae 0x402184
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402170
cmp esi, eax
jb 0x40218a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x4028f0
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x24
lea eax, [esp + 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40292c
lea ecx, [esp + 8]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x402932
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add esp, 0x24
ret
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push 0
push 0
push 0x10
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x14]
push 0
push eax
mov dword [esp + 0x28], 1
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x40297f
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add esp, 0x24
ret
mov eax, 1
add esp, 0x24
ret

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

Disassembly:
sub esp, 0x108
mov eax, dword [0x43fd14]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
push edi
mov edi, ecx
xor ebx, ebx
cmp edi, ebx
ja 0x4054a7
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0041c55a
add esp, 0x108
ret
push 0x103
lea eax, [esp + 0xd]
push ebx
push eax
mov byte [esp + 0x14], bl
call fcn.0041e8e0
add esp, 0xc
push 0x104
lea ecx, [esp + 0xc]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 8]
push str..exe
push edx
call fcn.0041d080
mov ecx, dword [str..dll]
mov dword [eax], ecx
mov dl, byte [0x437fb4]
mov byte [eax + 4], dl
add esp, 8
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40548e
push ebp
push edi
lea ecx, [esp + 0x10]
call fcn.0040a3e0
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x40551c
mov dword [esi + 0xb0c], ebx
mov eax, dword [esi + 0xb00]
cmp eax, ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x405535
push eax
call edi
mov dword [esi + 0xb00], ebx
mov eax, dword [esi + 0xb04]
cmp eax, ebx
je 0x405548
push eax
call edi
mov dword [esi + 0xb04], ebx
mov ecx, dword [esp + 0x110]
mov eax, ebp
pop ebp
pop edi
pop ebx
xor ecx, esp
call fcn.0041c55a
add esp, 0x108
ret
Function at 0x405570
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43257b
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x43fd14]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push esi
push edi
mov eax, dword [0x43fd14]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
test edi, edi
mov eax, dword [ebp + 0xc]
mov esi, ecx
mov dword [esp + 0x14], eax
jbe 0x405757
push 0x103
lea ecx, [esp + 0x21]
push 0
push ecx
mov byte [esp + 0x28], 0
call fcn.0041e8e0
add esp, 0xc
push 0x104
lea edx, [esp + 0x20]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x1c]
push str..exe
push eax
call fcn.0041d080
mov ecx, dword [str..dll]
mov dword [eax], ecx
mov dl, byte [0x437fb4]
mov byte [eax + 4], dl
add esp, 8
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405757
push edi
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x405757
mov edx, dword [esp + 0x14]
lea ebx, [esi + 0xb00]
push ebx
push edx
lea eax, [esp + 0x24]
lea ecx, [esi + 0xb04]
push eax
mov edx, edi
mov dword [esp + 0x1c], ecx
call fcn.0040a0b0
add esp, 0xc
test eax, eax
mov dword [esp + 0x14], eax
push edi
je 0x405727
mov ecx, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xb0c], ecx
call ebx
push str.MyNotice
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov edi, eax
test edi, edi
je 0x405721
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call ebx
mov ecx, dword [ebp + 8]
call fcn.00405470
push 0x3ef
mov ecx, esi
call fcn.00414f50
call fcn.004065c0
lea ecx, [esp + 0x10]
mov edi, eax
call fcn.00402510
lea edx, [esp + 0x10]
push edx
push edi
push 0x3ef
mov ecx, esi
mov dword [esp + 0x144], 0
call fcn.00414f50
mov ecx, eax
call fcn.0040e143
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call fcn.004021f0
call section..text
add esp, 4
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [esp + 0x10]
call fcn.00402540
mov eax, dword [esp + 0x14]
jmp 0x405759
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov eax, dword [ebx]
test eax, eax
je 0x40573e
push eax
call esi
mov dword [ebx], 0
mov edi, dword [esp + 0x10]
mov eax, dword [edi]
test eax, eax
je 0x405751
push eax
call esi
mov dword [edi], 0
mov eax, dword [esp + 0x14]
jmp 0x405759
xor eax, eax
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.0041c55a
mov esp, ebp
pop ebp
ret 8
Function at 0x405780
Capabilities:
Create process on windows
Create process suspended

Disassembly:
sub esp, 0x74
push ebx
push esi
push edi
mov edi, eax
lea edx, [eax + 1]
xor ebx, ebx
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x405790
sub eax, edx
add eax, 2
push eax
call fcn.0040aa4e
mov esi, eax
mov eax, edi
add esp, 4
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4057b0
sub eax, edx
add eax, 2
push eax
push ebx
push esi
call fcn.0041e8e0
mov eax, edi
add esp, 0xc
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4057d0
sub eax, edx
push edi
add eax, 2
push eax
push esi
call fcn.0041d00e
mov eax, edi
add esp, 0xc
lea edi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4057f0
sub eax, edi
mov byte [eax + esi], 0x20
xor eax, eax
push 0x44
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x3c]
push ebx
push eax
mov dword [esp + 0x34], ebx
call fcn.0041e8e0
add esp, 0xc
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x3c]
push edx
push ebx
push ebx
push 0x4000000
mov eax, 0xc
push ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x38]
push ecx
push esi
push ebx
mov dword [esp + 0x60], 0x44
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push esi
mov edi, eax
call fcn.0040aa53
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x88]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
push ecx
mov dword [eax], edx
call esi
mov edx, dword [esp + 0x28]
push edx
call esi
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x74
ret 4
Function at 0x4075d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x431ed8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push edi
mov eax, dword [0x43fd14]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov eax, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetParent]
push eax
call edi
push eax
call fcn.00412058
push eax
lea ecx, [esp + 0x30]
call fcn.00415885
lea ecx, [esp + 0xc]
mov dword [esp + 0x4c], 0
mov edx, dword [esi + 0x20]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esi + 0x20]
lea edx, [esp + 0x1c]
push edx
push eax
call edi
push eax
call fcn.00412058
mov ecx, eax
call fcn.0041568e
cmp dword [esi + 0x120], 0
mov ebx, dword [sym.imp.GDI32.dll_BitBlt]
jne 0x4076f1
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esi + 0x11c]
call fcn.004157f2
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
sub ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x30]
push eax
push ecx
push edx
lea edi, [esi + 0x12c]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, edi
call fcn.00415a2a
test edi, edi
je 0x4076ab
mov edi, dword [edi + 4]
mov eax, dword [esi + 0x120]
push edi
push eax
call fcn.00415aaf
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
sub ecx, dword [esp + 0xc]
push 0xcc0020
push edx
mov edx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x3c]
mov dword [esi + 0x134], eax
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
push edx
push eax
mov eax, dword [esi + 0x120]
push ecx
push 0
push 0
push eax
call ebx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
sub eax, dword [esp + 0x10]
sub ecx, dword [esp + 0xc]
lea edx, [esi + 0x11c]
test edx, edx
je 0x40770e
mov edx, dword [edx + 4]
push 0xcc0020
push 0
push 0
push edx
push eax
push ecx
mov ecx, dword [esp + 0x6c]
mov edx, dword [ecx + 4]
push 0
push 0
push edx
call ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x4c], 0xffffffff
call fcn.004158d9
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x44
ret 4
Function at 0x4083c0
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 0x31c
mov eax, dword [0x43fd14]
xor eax, esp
mov dword [esp + 0x318], eax
push 0x310
lea eax, [esp + 0xc]
push 0
push eax
call fcn.0041e8e0
mov ecx, dword [esp + 0x32c]
mov eax, 0x437cb4
add esp, 0xc
mov dword [esp + 4], ecx
lea edx, [eax + 1]
jmp 0x408400
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x408400
sub eax, edx
je 0x408424
push 0x437cb4
lea edx, [esp + 0xc]
push 0x104
push edx
call fcn.0041d00e
add esp, 0xc
mov eax, 0x437cb4
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x408430
sub eax, edx
je 0x408457
push 0x437cb4
lea eax, [esp + 0x110]
push 0x104
push eax
call fcn.0041d00e
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 0x408160
mov dword [esp + 0x31c], 0
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, dword [esp + 0x318]
mov eax, dword [esp + 0x314]
xor ecx, esp
call fcn.0041c55a
add esp, 0x31c
ret
Function at 0x409d50
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x431e78
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x43fd14]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
push 0
push 0
push 0
push 0
push 1
push 0
lea ecx, [esp + 0x34]
call fcn.00417094
mov eax, dword [esp + 0x40]
push 0
push 0
push 0x800002
push 1
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x4c], 0
call fcn.00417cb6
mov esi, eax
or ebx, 0xffffffff
cmp esi, ebx
je 0x409ea1
mov edx, dword [esi]
mov eax, dword [edx + 0x30]
mov ecx, esi
call eax
mov edi, eax
add edi, edi
cmp edi, ebx
je 0x409ea1
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x409dea
mov dword [esp + 0x38], 0xffffffff
jmp 0x409eae
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x409ddd
mov edx, dword [esi]
push edi
push eax
mov eax, dword [edx + 0x34]
mov ecx, esi
call eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [esi]
mov eax, dword [edx + 0x4c]
mov ecx, esi
call eax
lea ecx, [esp + 0x1c]
call fcn.004176f7
lea ecx, [esp + 0x10]
push ecx
push 1
push ebx
mov dword [esp + 0x1c], 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push 0x437988
push 1
push edi
push eax
mov dword [esp + 0x28], 0
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
test eax, eax
jl 0x409ddd
cmp dword [esp + 0x14], 0
je 0x409ddd
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00417858
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x2c
ret
lea ecx, [esp + 0x1c]
call fcn.004176f7
mov dword [esp + 0x38], ebx
lea ecx, [esp + 0x1c]
call fcn.00417858
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x2c
ret
Function at 0x40a3e0
Capabilities:
Create thread
Enumerate process modules

Disassembly:
push ebp
lea ebp, [esp - 0x228]
sub esp, 0x228
push 0xfffffffffffffffe
push 0x43c578
push 0x41e350
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x43fd14]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x224], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov edi, ecx
push 0x220
xor esi, esi
push esi
lea eax, [ebp + 4]
push eax
call fcn.0041e8e0
add esp, 0xc
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], esi
mov dword [ebp], 0x224
mov ecx, dword [ebp + 0x230]
push ecx
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40a460
xor eax, eax
jmp 0x40a557
lea edx, [ebp]
push edx
push ebx
call sub.KERNEL32.dll_Module32First
cmp eax, esi
je 0x40a4b5
mov edi, edi
lea ecx, [ebp + 0x120]
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40a498
test dl, dl
je 0x40a494
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40a498
add eax, 2
add ecx, 2
test dl, dl
jne 0x40a478
xor eax, eax
jmp 0x40a49d
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
jne 0x40a4a7
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x24], eax
lea ecx, [ebp]
push ecx
push ebx
call sub.KERNEL32.dll_Module32Next
cmp eax, esi
jne 0x40a470
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x24], esi
je 0x40a459
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
push 0x438938
push str.Kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
mov dword [ebp - 4], esi
mov edx, dword [ebp + 0x230]
push edx
push esi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
mov dword [ebp - 0x1c], edi
test edi, edi
je 0x40a548
push 0
push 0
mov eax, dword [ebp - 0x24]
push eax
push ebx
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
mov dword [ebp - 0x20], esi
test esi, esi
je 0x40a548
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x28]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x40a548
cmp dword [ebp - 0x28], 0
je 0x40a548
mov dword [ebp - 0x2c], 1
mov dword [ebp - 4], 0xfffffffe
call fcn.0040a582
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x224]
xor ecx, ebp
call fcn.0041c55a
add ebp, 0x228
mov esp, ebp
pop ebp
ret

Function at 0x40bbe6
Capabilities:
Receive data
Receive data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_recv]
ret 0xc

Function at 0x40bbfe
Capabilities:
Send data
Send data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_send]
ret 0xc
Function at 0x40bca6
Capabilities:
Connect socket

Disassembly:
push dword [esp + 8]
push dword [esp + 8]
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_connect]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 8

Function at 0x4130d3
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x41310c
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0040ae27
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00406570
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x41474a
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x437cb4
mov ecx, edi
call fcn.004024d0
cmp dword [esi + 0x4c], 0
push dword [esp + 0xc]
jne 0x41479d
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x4147b0
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.0040ae27
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.00406570
jmp 0x4147b0
mov ecx, esi
call fcn.00414f50
test eax, eax
je 0x4147b0
push edi
mov ecx, eax
call fcn.004130d3
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
pop edi
pop esi
ret 8

Function at 0x414d9a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x414ddd
call fcn.0040fb2a
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x414ddd
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x414df8
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00414951
test ebx, ebx
mov esi, eax
je 0x414df6
test edi, edi
je 0x414df6
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x417094
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x4170bd
call fcn.0040fb2a
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x4170e0
push eax
push dword [esi + 4]
call fcn.0041701f
push esi
push eax
mov ecx, 0x442e4c
call fcn.00416cbf
mov eax, esi
pop esi
pop ebp
ret 0x18