joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405880
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x562d71
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x5c0020]
xor eax, esp
mov dword [esp + 0x264], eax
push esi
push edi
mov eax, dword [0x5c0020]
xor eax, esp
push eax
lea eax, [esp + 0x278]
mov dword fs:[0], eax
mov edi, ecx
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
call fcn.0040a510
mov dword [esp + 0x280], 0
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.0040a920
mov esi, eax
test esi, esi
je 0x4059a7
cmp dword [esi + 0x30], 0
jne 0x4059a7
push ecx
lea ecx, [esp + 0x30]
call fcn.00405a20
push ecx
push esi
lea ecx, [esp + 0x34]
call fcn.0040c130
lea ecx, [esp + 0x2c]
mov byte [esp + 0x280], 1
call fcn.00422aa6
cmp eax, 1
jne 0x405994
push dword [esp + 0xf8]
call fcn.005384b1
add esp, 4
push 3
push 0
push 0
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
test eax, eax
jne 0x40598d
push 0x10
push 0x71
call fcn.00425670
lea ecx, [esp + 0x2c]
mov byte [esp + 0x280], 0
call fcn.0040c2e0
jmp 0x4059b8
mov ecx, edi
call fcn.00422c66
lea ecx, [esp + 0x2c]
mov byte [esp + 0x280], 0
call fcn.0040c2e0
jmp 0x4059b8
cmp dword [ebp + 8], 0
je 0x4059b8
push 0
push 0x40
push 0x70
call fcn.00425670
mov dword [esp + 0x280], 2
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x4059d1
push ecx
call fcn.0040a630
mov dword [esp + 0x280], 0xffffffff
mov edx, dword [esp + 0x28]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4059fa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x278]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x264]
xor ecx, esp
call fcn.0053786f
mov esp, ebp
pop ebp
ret 4

Function at 0x406120
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.0042273d

Function at 0x406400
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x406415
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x406454
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x406450
lea ebx, [ebx]
cmp esi, edx
jae 0x406454
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x406440
cmp esi, edx
jb 0x406459
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x409b10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x34]
cmp dword [ebp + 0x38], 8
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [eax*2 + 2]
push eax
lea edx, [ebp + 0x24]
cmovae edx, dword [ebp + 0x24]
cmp dword [ebp + 0x20], 8
push edx
push 7
lea ecx, [ebp + 0xc]
cmovae ecx, dword [ebp + 0xc]
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
cmp dword [ebp + 0x20], 8
jb 0x409b5c
push dword [ebp + 0xc]
call fcn.004140d4
add esp, 4
xor eax, eax
cmp dword [ebp + 0x38], 8
mov dword [ebp + 0x20], 7
mov dword [ebp + 0x1c], 0
mov word [ebp + 0xc], ax
jb 0x409b81
push dword [ebp + 0x24]
call fcn.004140d4
add esp, 4
pop esi
mov al, bl
pop ebx
pop ebp
ret 0x34

Function at 0x409b90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x563490
mov eax, dword fs:[0]
push eax
sub esp, 0x80c
mov eax, dword [0x5c0020]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x24]
xor eax, eax
push 0x7fe
mov dword [ebp - 4], 1
push eax
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push eax
call fcn.0053abe0
add esp, 0xc
cmp dword [ebp + 0x20], 8
lea ecx, [ebp - 0x814]
push ecx
lea ecx, [ebp - 0x810]
push ecx
lea ecx, [ebp - 0x818]
push ecx
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push 0
push eax
push esi
mov dword [ebp - 0x814], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x409c72
cmp word [ebp - 0x810], ax
jne 0x409c3f
xor ecx, ecx
push ecx
lea eax, [ebp - 0x810]
push eax
mov ecx, edi
call fcn.004017f0
mov bl, 1
jmp 0x409c87
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
jmp 0x409c50
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409c50
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x810]
push eax
mov ecx, edi
call fcn.004017f0
mov bl, 1
jmp 0x409c87
lea eax, [ebp + 0x28]
cmp edi, eax
je 0x409c85
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.00401af0
xor bl, bl
cmp dword [ebp + 0x20], 8
jb 0x409c98
push dword [ebp + 0xc]
call fcn.004140d4
add esp, 4
xor eax, eax
cmp dword [ebp + 0x3c], 8
mov dword [ebp + 0x20], 7
mov dword [ebp + 0x1c], 0
mov word [ebp + 0xc], ax
jb 0x409cbd
push dword [ebp + 0x28]
call fcn.004140d4
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053786f
mov esp, ebp
pop ebp
ret 0x38
Function at 0x409ce0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5634c8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
mov eax, dword [0x5c0020]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 4], 0
push 0xffffffffffffffff
push eax
mov word [ebp - 0x24], ax
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], 7
mov dword [ebp - 0x14], 0
call fcn.00401af0
mov eax, dword [ebp + 0x24]
cmp dword [ebp - 0x10], 8
push 4
lea ecx, [ebp - 0x28]
push ecx
mov dword [ebp - 0x28], eax
push 4
lea eax, [ebp - 0x24]
cmovae eax, dword [ebp - 0x24]
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x409d72
cmp dword [ebp - 0x10], 8
jb 0x409d6c
push dword [ebp - 0x24]
call fcn.004140d4
add esp, 4
xor eax, eax
mov bl, 1
jmp 0x409d87
cmp dword [ebp - 0x10], 8
jb 0x409d83
push dword [ebp - 0x24]
call fcn.004140d4
add esp, 4
xor eax, eax
xor bl, bl
cmp dword [ebp + 0x20], 8
mov word [ebp - 0x24], ax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 7
jb 0x409daa
push dword [ebp + 0xc]
call fcn.004140d4
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
Function at 0x40f370
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x5c0020]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, edx
mov eax, 0x10624dd3
imul esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x11c], eax
imul eax, eax, 0x3e8
push edi
sub esi, eax
lea eax, [ebp - 0x11c]
imul esi, esi, 0x3e8
push eax
push 0
push 0
lea eax, [ebp - 0x114]
push eax
mov edi, ecx
push 0x40
mov dword [ebp - 0x110], edi
mov dword [ebp - 0x114], 1
mov dword [ebp - 0x118], esi
call dword [sym.imp.WSOCK32.dll_select]
test eax, eax
jns 0x40f413
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push str.select
push str.Socket_error:__s___d_n
call fcn.0054ea8e
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0053786f
mov esp, ebp
pop ebp
ret
jne 0x40f428
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0053786f
mov esp, ebp
pop ebp
ret
push 0
push dword [ebp + 8]
push ebx
push edi
call dword [sym.imp.WSOCK32.dll_recv]
mov esi, eax
test esi, esi
jns 0x40f454
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push str.recv
push str.Socket_error:__s___d_n
call fcn.0054ea8e
add esp, 0xc
mov ecx, dword [ebp - 8]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053786f
mov esp, ebp
pop ebp
ret
Function at 0x40fed0
Capabilities:
Get local ipv4 addresses
Get socket information
Resolve dns
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x89c
mov eax, dword [0x5c0020]
xor eax, esp
mov dword [esp + 0x898], eax
mov eax, ecx
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp + 0xc]
push edi
push dword [ebp + 0x1c]
mov dword [esp + 0x1c], ecx
mov dword [ecx], 0
mov ecx, eax
mov edi, edx
mov dword [esp + 0x20], eax
call fcn.00410630
mov ebx, eax
add esp, 4
test ebx, ebx
js 0x410021
test esi, esi
je 0x40ff86
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x24]
push eax
push ebx
mov dword [esp + 0x1c], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jns 0x40ff53
push str.getsockname
call fcn.005535a3
add esp, 4
jmp 0x40ff86
push 0xa
push 0
push 0
push 0x40
push esi
push dword [esp + 0x24]
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
je 0x40ff86
push eax
push str.getnameinfo___failed_:__d_n
call fcn.00546598
add eax, 0x40
push eax
call fcn.00539ff7
add esp, 0xc
movzx eax, di
push eax
push dword [esp + 0x20]
lea eax, [esp + 0xa8]
push 0x59b114
push dword [esp + 0x20]
push str.GET__s_HTTP__s_r_nHost:__s:_d_r_nConnection:_Close_r_nUser_Agent:_Windows_7.0.0000__UPnP_1.0__MiniUPnPc_1.4_r_n_r_n
push 0x800
push eax
call fcn.005532a0
mov edi, eax
add esp, 0x1c
xor esi, esi
test edi, edi
jle 0x40ffe2
lea esp, [esp]
push 0
mov eax, edi
sub eax, esi
push eax
lea eax, [esp + 0xa8]
add eax, esi
push eax
push ebx
call dword [sym.imp.WSOCK32.dll_send]
test eax, eax
js 0x41000d
add esi, eax
cmp esi, edi
jl 0x40ffc0
mov edx, dword [esp + 0x18]
mov ecx, ebx
call fcn.0040f850
push ebx
mov esi, eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x898]
xor ecx, esp
call fcn.0053786f
mov esp, ebp
pop ebp
ret
push str.send
call fcn.005535a3
add esp, 4
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x8a4]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0053786f
mov esp, ebp
pop ebp
ret
Function at 0x410630
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x5c0020]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
movzx eax, dx
push edi
push eax
xorps xmm0, xmm0
push 0x59b6e4
lea eax, [ebp - 0x10]
movq qword [ebp - 0x80], xmm0
push 8
movq qword [ebp - 0x78], xmm0
push eax
mov esi, ecx
movq qword [ebp - 0x70], xmm0
movq qword [ebp - 0x68], xmm0
mov dword [ebp - 0x80], 8
mov dword [ebp - 0x78], 1
mov dword [ebp - 0x7c], 0
call fcn.005532a0
add esp, 0x10
cmp byte [esi], 0x5b
jne 0x4106da
lea ecx, [esi + 1]
xor edx, edx
cmp byte [ecx], dl
je 0x4106d3
lea esp, [esp]
mov al, byte [ecx]
cmp al, 0x5d
je 0x4106ca
cmp edx, 0x40
jge 0x4106ca
mov byte [ebp + edx - 0x5c], al
movzx eax, word [ecx]
cmp ax, 0x3225
jne 0x4106c3
movzx eax, byte [ecx + 2]
cmp al, 0x35
jne 0x4106c3
add ecx, 2
inc ecx
inc edx
cmp byte [ecx], 0
jne 0x4106a0
cmp edx, 0x41
jae 0x4107e9
mov byte [ebp + edx - 0x5c], 0
jmp 0x4106e9
push 0x40
lea eax, [ebp - 0x5c]
push esi
push eax
call fcn.00553350
add esp, 0xc
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x5c]
push eax
mov byte [ebp - 0x1c], 0
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov ebx, eax
test ebx, ebx
je 0x410734
push ebx
push str.getaddrinfo___error_:__d_n
call fcn.00546598
add eax, 0x40
push eax
call fcn.00539ff7
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0053786f
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x60]
or edi, 0xffffffff
test esi, esi
je 0x41078c
mov edi, edi
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
test edi, edi
js 0x410782
mov eax, dword [esi + 0x18]
cmp word [eax], 0x17
jne 0x410768
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x410768
mov dword [eax + 0x18], ecx
push dword [esi + 0x10]
push dword [esi + 0x18]
push edi
call dword [sym.imp.WS2_32.dll_connect]
mov ebx, eax
test ebx, ebx
jns 0x410789
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x410740
mov esi, dword [ebp - 0x60]
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test edi, edi
jns 0x4107c4
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push str.socket
push str.Socket_error:__s___d_n
call fcn.0054ea8e
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0053786f
mov esp, ebp
pop ebp
ret
test ebx, ebx
jns 0x4107d6
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push str.connect
jmp 0x4107a3
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053786f
mov esp, ebp
pop ebp
ret
call fcn.0053888a
int3
Function at 0x4107f0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], edx
lea eax, [ebx + edi]
push eax
mov dword [ebp - 8], ecx
call fcn.0053a7e0
mov esi, eax
add esp, 4
test esi, esi
jne 0x41081e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push dword [ebp + 0xc]
push esi
call fcn.005398d0
push ebx
push dword [ebp - 4]
lea eax, [esi + edi]
push eax
call fcn.005398d0
add esp, 0x18
lea eax, [ebx + edi]
push 0
push eax
push esi
push dword [ebp - 8]
call dword [sym.imp.WSOCK32.dll_send]
mov edi, eax
test edi, edi
jns 0x410867
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push str.send
push str.Socket_error:__s___d_n
call fcn.0054ea8e
add esp, 0xc
push esi
call fcn.0053a7a8
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x416603
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov esi, edi
mov eax, ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], esi
je 0x41664d
call fcn.0042f575
mov ebx, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41664a
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x416686
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov eax, dword [ebp - 4]
xor ebx, ebx
inc ebx
test edi, edi
je 0x41666f
push dword [ebp + 0x10]
mov edx, dword [eax]
push edi
push dword [ebp + 8]
mov ecx, eax
call dword [edx + 0x20]
mov ebx, eax
test esi, esi
je 0x41666f
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x68]
test ecx, ecx
je 0x416684
mov eax, dword [ecx]
push dword [ebp + 0x10]
call dword [eax + 0xa0]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x422799
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.0042f575
mov ebx, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4227d0
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.004227ef
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x429542
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5c0020]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x5c36b8]
push esi
push edi
mov edi, dword [ebp + 8]
test eax, eax
jne 0x42958e
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4295ab
push str.SetDefaultDllDirectories
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov dword [0x5c36b8], eax
jmp 0x429597
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x4295ab
push 0x800
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x429618
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4295c6
xor eax, eax
jmp 0x429618
lea eax, [ebp - 0x210]
push eax
call fcn.0053a9f8
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x4295f7
push 0x5995d0
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0053a98c
add esp, 0xc
test eax, eax
jne 0x4295c2
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0053a98c
add esp, 0xc
test eax, eax
jne 0x4295c2
lea eax, [ebp - 0x210]
push eax
call fcn.0042e1f0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0053786f
leave
ret

Function at 0x429dbf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov esi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], esi
je 0x429e04
call fcn.0042f575
mov ebx, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x429e04
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x429e20
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00431301
mov ebx, eax
test edi, edi
je 0x429e1e
test esi, esi
je 0x429e1e
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x42e909
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x560969
call fcn.0053ab06
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x6c], esi
jne 0x42e92f
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x42e983
call fcn.004273a1
push eax
lea ecx, [ebp - 0x10]
call fcn.00406900
mov ecx, dword [edi + 0x6c]
lea edx, [ebp - 0x10]
mov eax, dword [ecx]
push edx
mov dword [ebp - 4], esi
call dword [eax + 0x8c]
mov edi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push edi
call fcn.0053affb
push eax
call fcn.004064a0
add esp, 0x14
test edi, edi
je 0x42e976
push edi
call fcn.0053a9f8
pop ecx
mov esi, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00406a00
mov eax, esi
call fcn.0053aad4
ret 8
Function at 0x4315ab
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
mov ecx, dword [esi + 4]
push eax
push dword [ebp + 0xc]
call fcn.0042e564
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4315e7
call fcn.004317c6
mov dword [esi + 0xc], 1
jmp 0x4315ec
call fcn.004317c6
cmp dword [esi], 0
je 0x431635
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x43160f
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.00426e9d
jmp 0x431620
push 0xff
mov ecx, esi
call fcn.00406b60
push pe_nt_image_headers32
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0040cae0
jmp 0x431659
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x431659
push dword [esi]
push dword [ebp - 4]
call fcn.00433a22
pop esi
leave
ret 0xc

Function at 0x43171d
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.004317c6
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x431765
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00426e9d
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040cae0
jmp 0x431770
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00433a22
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4334da
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5c0020]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x20], eax
mov eax, dword [0x5c3980]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], ebx
test eax, eax
jne 0x433533
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x433550
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov dword [0x5c3980], eax
jmp 0x43353c
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x433550
mov eax, dword [ebp - 0x20]
push ebx
push edi
push eax
push dword [ebp + 8]
call esi
jmp 0x43368d
mov eax, dword [ebp - 0x20]
and dword [eax], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ecx, ax
mov ebx, ecx
push 7
lea eax, [ebp - 0x14]
and ecx, 0xfc00
and ebx, 0x3ff
push eax
or ecx, ebx
push ecx
call fcn.00552ed2
lea eax, [ebp - 0x14]
push eax
call fcn.0053a9f8
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push dword [eax]
push edi
call fcn.00538504
push 7
lea eax, [ebp - 0x14]
push eax
push ebx
lea edi, [esi + 1]
call fcn.00552ed2
lea eax, [ebp - 0x14]
push eax
call fcn.0053a9f8
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.00538504
add esp, 0x38
add edi, esi
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx ecx, ax
mov ebx, ecx
push 7
lea eax, [ebp - 0x14]
and ecx, 0xfc00
and ebx, 0x3ff
push eax
or ecx, ebx
push ecx
call fcn.00552ed2
lea eax, [ebp - 0x14]
push eax
call fcn.0053a9f8
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.00538504
push 7
lea eax, [ebp - 0x14]
push eax
push ebx
add edi, esi
call fcn.00552ed2
lea eax, [ebp - 0x14]
push eax
call fcn.0053a9f8
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
mov ebx, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
sub ecx, edi
push ecx
lea ecx, [ebx + edi*2]
push ecx
call fcn.00538504
push 7
lea eax, [ebp - 0x14]
push eax
push 0x800
add edi, esi
call fcn.00552ed2
add esp, 0x44
lea eax, [ebp - 0x14]
push eax
call fcn.0053a9f8
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
sub ecx, edi
push ecx
lea ecx, [ebx + edi*2]
push ecx
call fcn.00538504
lea eax, [edi + esi]
xor ecx, ecx
mov word [ebx + eax*2 + 2], cx
xor eax, eax
add esp, 0x10
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053786f
leave
ret