joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42ae00
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
cmp dword [edi + 0x5c], 0
mov esi, dword [edi + 0x54]
je 0x42ae2b
call fcn.0041cc60
test eax, eax
je 0x42ae2b
push dword [edi + 0x5c]
call fcn.0041cd40
add esp, 4
test eax, eax
je 0x42af37
push ebx
test esi, esi
je 0x42aea2
mov ebx, dword [sym.imp.WS2_32.dll_sendto]
push dword [esi + 0x90]
lea eax, [esi + 0x10]
push eax
push 0
push dword [esi + 0xb0]
push dword [esi + 0xac]
push dword [edi]
call ebx
test eax, eax
jns 0x42ae88
push dword [edi]
call fcn.00417bd0
add esp, 4
cmp eax, 0x2733
je 0x42aedc
cmp eax, 0x2714
je 0x42aedc
push eax
push eax
call fcn.00417c30
add esp, 4
push eax
push str.Error__s___d__while_writing_response_to_port__dropping
push 2
call fcn.004288a0
add esp, 0x10
push esi
call fcn.00427bc0
add esp, 4
test eax, eax
jne 0x42aedc
mov eax, dword [edi + 0x54]
cmp esi, eax
je 0x42aee0
mov esi, eax
test esi, esi
jne 0x42ae36
lea esi, [edi + 0x14]
push esi
call fcn.004071e0
push edi
push 0x427ea0
push 0x12
push dword [edi]
push dword [edi + 0x58]
push esi
call fcn.00406aa0
push 0
push esi
call fcn.00406fc0
add esp, 0x24
test eax, eax
jns 0x42aedc
push str.Error_from_libevent_when_adding_event_for_DNS_server.
push 2
call fcn.004288a0
add esp, 8
pop ebx
pop edi
pop esi
ret
push 0x466390
push 0x4663a4
push 0x5ab
push 0x4663c4
push 0x4663cc
push 0xdeaddead
call fcn.0041bd20
add esp, 0x18
push str.server_port_flush
push str.req___port__pending_replies
push 0x5ab
push 0x466424
push 0x46642c
push 2
call fcn.00434b42
add esp, 4
push eax
call fcn.004046e0
add esp, 0x18
call fcn.00435eff
push 0x466280
push 0x466294
push 0x59d
push 0x4662c0
push 0x4662c8
push 0xdeaddead
call fcn.0041bd20
add esp, 0x18
push 0x4662ec
push str.evthread_is_debug_lock_held___port___lock_
push 0x59d
push 0x46632c
push 0x466334
push 2
call fcn.00434b42
add esp, 4
push eax
call fcn.004046e0
add esp, 0x18
call fcn.00435eff
int3

Function at 0x42cc90
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
mov eax, dword [0x469a54]
xor eax, esp
mov dword [esp + 0x108], eax
push 0
push 0x25
lea eax, [esp + 8]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x42ccce
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0042eefa
add esp, 0x10c
ret
lea eax, [esp]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42ccd4
sub eax, edx
push esi
push edi
lea edi, [eax + 0x13]
push edi
call fcn.00408540
mov esi, eax
lea eax, [esp + 0xc]
push str.driversetchosts
push eax
push str._s_s
push edi
push esi
call fcn.00417e10
mov ecx, dword [esp + 0x128]
add esp, 0x18
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.0042eefa
add esp, 0x10c
ret
Function at 0x42d070
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [esp + 0x14]
xor ebx, ebx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
cmp dword [esi + 0xf0], ebx
je 0x42d0b2
call fcn.0041cc60
test eax, eax
je 0x42d0b2
push dword [esi + 0xf0]
call fcn.0041cd40
add esp, 4
test eax, eax
je 0x42d136
push edi
lea eax, [esp + 0xc]
push eax
push 0
lea eax, [esp + 0x18]
push eax
push 0
push dword [esp + 0x30]
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 0xea
jne 0x42d12c
push dword [esp + 0xc]
call fcn.00408540
mov edi, eax
add esp, 4
test edi, edi
je 0x42d12c
lea eax, [esp + 0xc]
push eax
push edi
lea eax, [esp + 0x18]
push eax
push 0
push dword [esp + 0x30]
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x42d11a
cmp dword [esp + 0xc], 1
jbe 0x42d11a
push edi
push esi
call fcn.0042cd20
add esp, 8
mov ebx, eax
push edi
call fcn.00408660
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
add esp, 8
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 8
ret
push 0x468cf0
push 0x468d10
push 0xec9
push 0x468d3c
push 0x468d44
push 0xdeaddead
call fcn.0041bd20
add esp, 0x18
push str.config_nameserver_from_reg_key
push 0x468d88
push 0xec9
push 0x468db4
push 0x468dbc
push 2
call fcn.00434b42
add esp, 4
push eax
call fcn.004046e0
add esp, 0x18
call fcn.00435eff
int3

Function at 0x42fdcb
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42fe0a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42fe0a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42fe0a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42fe0a
cmp dword [ecx + 0x74], 0xe
jbe 0x42fe0a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x446503
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00446056

Function at 0x44bb30
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44bb5d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44bb5d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401480
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 0x401499
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4014d4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4014d0
lea ebx, [ebx]
cmp esi, eax
jae 0x4014d4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4014c0
cmp esi, eax
jb 0x4014da
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x406dc0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0x10]
test esi, esi
jbe 0x406df6
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push edi
movzx eax, word [edx]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr ax, 8
xor ax, word [edi*2 + 0x449918]
inc ecx
sub esi, 1
mov word [edx], ax
jne 0x406dd2
pop edi
pop esi
ret 0xc
Function at 0x409170
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x2c
mov eax, dword [0x45accc]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push esi
push edi
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x20], eax
mov byte [esp + 0x1b], al
mov al, byte [esp + 0x44]
mov byte [esp + 0x1d], al
mov eax, dword [esp + 0x4c]
mov ebp, ecx
mov cl, byte [esp + 0x48]
mov byte [esp + 0x1e], cl
mov ecx, eax
shr ecx, 0x18
mov byte [esp + 0x28], cl
mov ecx, eax
sar ecx, 0x10
mov byte [esp + 0x29], cl
mov ecx, eax
sar ecx, 8
mov byte [esp + 0x2a], cl
mov byte [esp + 0x2b], al
mov eax, dword [esp + 0x50]
mov ecx, eax
shr ecx, 0x18
mov byte [esp + 0x2c], cl
mov ecx, eax
sar ecx, 0x10
mov byte [esp + 0x2d], cl
mov ecx, eax
sar ecx, 8
mov byte [esp + 0x2e], cl
mov byte [esp + 0x2f], al
mov eax, dword [esp + 0x54]
mov ecx, eax
shr ecx, 0x18
mov byte [esp + 0x30], cl
mov ecx, eax
sar ecx, 0x10
mov byte [esp + 0x31], cl
mov ebx, dword [esp + 0x40]
mov ecx, eax
sar ecx, 8
mov byte [esp + 0x32], cl
mov byte [esp + 0x33], al
mov eax, dword [esp + 0x58]
mov ecx, eax
shr ecx, 8
mov byte [esp + 0x34], cl
mov byte [esp + 0x35], al
mov eax, dword [esp + 0x5c]
mov ecx, eax
shr ecx, 0x18
mov byte [esp + 0x24], cl
mov ecx, eax
shr ecx, 0x10
mov byte [esp + 0x25], cl
mov ecx, eax
shr ecx, 8
xor edx, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
mov byte [esp + 0x26], cl
mov ecx, dword [ebp + 0x204]
mov byte [esp + 0x27], al
xor eax, eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov byte [esp + 0x18], 0x54
mov byte [esp + 0x19], 0x42
mov byte [esp + 0x1a], 1
mov byte [esp + 0x1c], 0x20
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], eax
mov edi, dword [ebp + 0x204]
push edx
mov ecx, 8
lea esi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x45c4ec]
mov ecx, dword [ebx]
lea edx, [esp + 0x18]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4092dd
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00431b39
add esp, 0x2c
ret 0x20
mov eax, dword [ebp + 0x204]
mov ecx, dword [ebx]
push 0
lea edx, [esp + 0x14]
push edx
push 0x20
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4092c3
mov ecx, dword [esp + 0x38]
add dword [0x45c4ec], 0x20
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00431b39
add esp, 0x2c
ret 0x20
Function at 0x40ec40
Capabilities:
Create thread
Resume thread

Disassembly:
sub esp, 8
push esi
mov esi, ecx
cmp dword [esi + 0x8c], 0
je 0x40ec82
call fcn.0040e970
test eax, eax
je 0x40ec89
lea eax, [esp + 8]
push eax
push 4
push esi
push 0x40eb90
push 0
push 0
call fcn.004334bb
add esp, 0x18
mov dword [esi + 0xa8], eax
test eax, eax
je 0x40ec82
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
pop esi
add esp, 8
ret
mov eax, dword [esi + 0xb0]
test eax, eax
je 0x40ec82
mov ecx, dword [eax]
push edi
lea edx, [esp + 0xc]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov eax, dword [esi + 0xb0]
mov ecx, dword [eax]
lea edx, [esp + 8]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov ecx, dword [esp + 8]
mov eax, dword [esi + 0xb0]
mov edx, dword [eax]
push 0
mov edx, dword [edx + 0x20]
mov edi, ecx
neg edi
push edi
mov edi, dword [esp + 0x14]
push edi
push ecx
mov ecx, dword [esi + 0x68]
push 0
push ecx
mov ecx, dword [esi + 0x64]
push ecx
mov ecx, dword [esi + 0x90]
push 0
push 0
push ecx
push eax
call edx
pop edi
test eax, eax
jne 0x40ec82
push eax
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, 1
pop esi
add esp, 8
ret

Function at 0x40fa40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
push esi
mov dword [esp + 8], ecx
call fcn.0041993f
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, dword [eax + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x40fb1e
call fcn.0041993f
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40fb1e
push edi
call fcn.0041993f
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x40fab6
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 8
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x40fb06
test ebp, ebp
je 0x40fb06
push edi
push eax
push ebp
call fcn.00432a20
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [esp + 0x10]
push edi
push esi
call fcn.0040f6e0
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop ebp
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
ret 8
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 8
pop esi
xor eax, eax
pop ebx
pop ecx
ret 8
Function at 0x40fc20
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push esi
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 2
push 0
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40fca2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fc7a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fc9a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or eax, 0xffffffff
pop esi
pop ecx
ret 8
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 0xc]
push 0
lea edx, [esp + 8]
push edx
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
je 0x40fc54
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fce4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fd04
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
pop esi
pop ecx
ret 8
Function at 0x4176ca
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x417711
call fcn.0041993f
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x417711
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41772d
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00417244
mov esi, eax
test edi, edi
je 0x41772b
test ebx, ebx
je 0x41772b
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41aa5d
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x44639c
call fcn.00433b27
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x41aa82
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x41aac8
lea ecx, [ebp - 0x10]
call fcn.004024e0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041843b
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401530
mov eax, esi
call fcn.00433bff
ret 8

Function at 0x41dd12
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x41dd36
cmp dword [edi + 0x54], 0
jne 0x41dd36
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0041993f
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0041dcd3
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x41e264
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x41e2ac
call fcn.0041993f
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41e2ac
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x41e2ef
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x41e2d8
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x41e2d8
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x41e2ec
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x431b39
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45accc]
jne 0x431b43
repz ret
jmp fcn.0043b63c
Function at 0x44183e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004379ed
and dword [ebp - 4], 0
cmp dword [0x45f374], 0
mov ebx, eax
jne 0x4418ef
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4419a0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x44feb0
push edi
call esi
test eax, eax
je 0x4419a0
push eax
call fcn.0043797b
mov dword [esp], 0x44fea0
push edi
mov dword [0x45f374], eax
call esi
push eax
call fcn.0043797b
mov dword [esp], 0x44fe8c
push edi
mov dword [0x45f378], eax
call esi
push eax
call fcn.0043797b
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x45f37c], eax
call esi
push eax
call fcn.0043797b
pop ecx
mov dword [0x45f384], eax
test eax, eax
je 0x4418ef
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0043797b
pop ecx
mov dword [0x45f380], eax
mov eax, dword [0x45f380]
cmp eax, ebx
je 0x441947
cmp dword [0x45f384], ebx
je 0x441947
push eax
call fcn.004379f6
push dword [0x45f384]
mov esi, eax
call fcn.004379f6
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x441947
test edi, edi
je 0x441947
call esi
test eax, eax
je 0x44193e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x44193e
test byte [ebp - 0xc], 1
jne 0x441947
or dword [ebp + 0x10], 0x200000
jmp 0x441980
mov eax, dword [0x45f378]
cmp eax, ebx
je 0x441980
push eax
call fcn.004379f6
pop ecx
test eax, eax
je 0x441980
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x441980
mov eax, dword [0x45f37c]
cmp eax, ebx
je 0x441980
push eax
call fcn.004379f6
pop ecx
test eax, eax
je 0x441980
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45f374]
call fcn.004379f6
pop ecx
test eax, eax
je 0x4419a0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4419a2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401960
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40197b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4019b2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x4019ae
jmp 0x4019a0
cmp esi, eax
jae 0x4019b2
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4019a0
cmp esi, eax
jb 0x4019b9
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4020a0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48e293
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4c81d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi], vtable.MessageLoop.0
mov dword [esi + 4], 1
lea edi, [esi + 0xc]
push 8
mov dword [edi], ebx
call fcn.0046dc84
add esp, 4
cmp eax, ebx
je 0x402208
mov dword [edi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [edi]
mov dword [eax], edi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov byte [ebp - 4], 2
mov dword [esi + 0x38], ebx
lea edi, [esi + 0x3c]
push 8
mov dword [edi], ebx
call fcn.0046dc84
add esp, 4
cmp eax, ebx
je 0x4021e4
mov dword [edi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov ecx, dword [edi]
mov dword [ecx], edi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
lea eax, [esi + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [ebp - 4], 4
mov dword [esi + 0x6c], ebx
mov edx, dword [0x4d34cc]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp dword [esi + 4], 1
jne 0x40219d
push 0x1c
call fcn.0046dc84
add esp, 4
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 5
cmp eax, ebx
je 0x402196
push eax
call fcn.004037b0
mov dword [esi + 8], eax
jmp 0x4021ce
xor eax, eax
mov dword [esi + 8], eax
jmp 0x4021ce
push 0x10
call fcn.0046dc84
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x4021c9
push ebx
push ebx
push ebx
push ebx
mov dword [edi], vtable.MessagePumpDefault.0
mov byte [edi + 4], 1
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 8], eax
mov dword [edi + 0xc], ebx
jmp 0x4021cb
xor edi, edi
mov dword [esi + 8], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], ebx
call fcn.0046e25f
push 0x4b96ec
lea ecx, [ebp - 0x1c]
push ecx
mov dword [ebp - 0x1c], vtable.std::bad_alloc.0
call fcn.00471380
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], ebx
call fcn.0046e25f
push 0x4b96ec
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], vtable.std::bad_alloc.0
call fcn.00471380
int3