joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4517e0
Capabilities:
Write file on windows

Disassembly:
mov edx, ecx
push ebx
push esi
push edi
mov ebx, dword [edx + 0x18]
test ebx, ebx
je 0x451830
mov edi, dword [edx + 0x1c]
mov eax, dword [esp + 0x14]
mov esi, dword [edx + 0x20]
lea ecx, [edi + eax]
cmp ecx, esi
jb 0x45180c
pop edi
pop esi
mov dword [edx + 0xc], 0x30000
xor eax, eax
pop ebx
ret 8
mov esi, dword [esp + 0x10]
mov ecx, eax
add edi, ebx
mov ebx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [edx + 0x1c]
pop edi
add ecx, eax
pop esi
mov dword [edx + 0x1c], ecx
pop ebx
ret 8
mov eax, dword [edx]
test eax, eax
je 0x451858
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x14]
push 0
push edx
mov edx, dword [esp + 0x18]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
ret 8
pop edi
pop esi
mov dword [edx + 0xc], 0x1000000
xor eax, eax
pop ebx
ret 8

Function at 0x451c80
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov edx, dword [ebx + 0x58]
test edx, edx
je 0x451cea
mov eax, dword [ebx + 0x60]
mov ebp, dword [ebx + 0x5c]
cmp eax, ebp
jae 0x451d3b
mov ecx, dword [esp + 0x14]
sub ebp, eax
cmp ebp, ecx
jbe 0x451ca6
mov ebp, ecx
mov ecx, ebp
lea esi, [eax + edx]
mov eax, dword [esp + 0x10]
mov edx, ecx
push edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebx + 0x60]
mov ecx, dword [ebx + 0x48]
mov eax, dword [ebx + 0x4c]
add edx, ebp
add ecx, ebp
push eax
mov dword [ebx + 0x60], edx
mov dword [ebx + 0x48], ecx
call fcn.00451110
add esp, 0xc
mov dword [ebx + 0x4c], eax
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov eax, dword [ebx + 0x50]
test eax, eax
je 0x451d34
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push 0
push ecx
push edx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x451d3b
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx + 0x48]
add ecx, eax
push eax
mov eax, dword [ebx + 0x4c]
push esi
push eax
mov dword [ebx + 0x48], ecx
call fcn.00451110
add esp, 0xc
mov dword [ebx + 0x4c], eax
mov eax, dword [esp + 0x14]
pop esi
pop ebp
pop ebx
ret 8
mov dword [ebx + 0xc], 0x1000000
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8

Function at 0x4528c0
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 0x452926
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 0x452926
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x452907
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
Function at 0x453520
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.00453670
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x453540
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x453521
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.00453670
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x453540
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x453570
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
xor eax, eax
push esi
push edi
mov dword [esp + 8], eax
mov edi, ecx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x18], eax
mov word [esp + 0xc], 2
call sub.WS2_32.dll_htons
mov esi, dword [esp + 0x1c]
mov word [esp + 0xa], ax
push esi
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4535c7
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x4535dd
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
lea edx, [esp + 8]
push 0x10
push edx
mov ecx, edi
call fcn.00453600
pop edi
pop esi
add esp, 0x10
ret 8
push 0x2726
call sub.WS2_32.dll_WSASetLastError
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8

Function at 0x453600
Capabilities:
Connect socket

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

Function at 0x453690
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 0x4536d9
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 0x453d20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4cc780
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.00453700
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00453780
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00453780
lea ecx, [esi + 0xc]
call fcn.004be1fe
lea ecx, [esi + 0x10]
call fcn.004be1fe
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00456300
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00456300
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00456300
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004be273
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004be273
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x454b48
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4cc9a8
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x454b58
call fcn.00455070
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x454c3b
cmp byte [edi], 0
je 0x454c3b
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x454b7d
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.00453520
test eax, eax
jne 0x454b9d
push 0x503a44
lea ecx, [esi + 0x38]
call fcn.004be3b0
jmp 0x454c3b
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.00453570
test eax, eax
jne 0x454bcc
mov ecx, esi
call fcn.00453670
push edi
add esi, 0x38
push 0x503a20
push esi
call fcn.004bc247
add esp, 0xc
jmp 0x454c3b
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.004558f0
test eax, eax
je 0x454c34
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.00454d10
test eax, eax
jne 0x454c50
push edi
lea eax, [esi + 0x38]
push 0x5039fc
push eax
call fcn.004bc247
add esp, 0xc
mov ecx, esi
call fcn.00455070
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x454cf8
mov ecx, dword [0x50a360]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.004bc247
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.00453620
test eax, eax
jne 0x454cba
push 0x5039e0
lea ecx, [esi + 0x38]
call fcn.004be3b0
jmp 0x454cca
push 0xfa
mov ecx, esi
call fcn.004558f0
test eax, eax
jne 0x454ce7
mov ecx, esi
call fcn.00455070
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.004be273
jmp 0x454c3b
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.004be273
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x45b300
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4ccef0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x10]
call fcn.0045b6d0
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 0
call fcn.0045b6d0
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x10]
push eax
mov byte [esp + 0x3c], 1
call fcn.0044e070
lea ecx, [esp + 0x10]
call fcn.0044e420
cmp eax, 1
jae 0x45b3a8
mov ebx, dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0
push 0
call ebx
mov edi, eax
test edi, edi
je 0x45b413
lea ecx, [edi + 1]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x45b413
push esi
push edi
call ebx
push esi
lea ecx, [esp + 0x14]
call fcn.0044e070
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ecx, [esp + 0x10]
call fcn.0044e420
cmp eax, 1
jb 0x45b413
lea edx, [esp + 0x10]
mov ecx, ebp
push edx
call fcn.0045b1a0
test eax, eax
je 0x45b413
lea eax, [esp + 0x10]
mov ecx, ebp
push eax
call fcn.0045b480
mov edi, dword [esp + 0x44]
xor esi, esi
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x24]
call fcn.0044e0d0
push edi
lea ecx, [esp + 0x24]
call fcn.0045b700
push esi
lea ecx, [esp + 0x24]
call fcn.0045b7a0
push str..tmp
lea ecx, [esp + 0x24]
call fcn.0045b700
lea edx, [esp + 0x20]
mov ecx, ebp
push edx
call fcn.0045b180
test eax, eax
je 0x45b449
inc esi
cmp esi, 0x7a0a1f00
jb 0x45b3ca
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 0
call fcn.0045b6f0
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0xffffffff
call fcn.0045b6f0
xor eax, eax
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 0xc
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x20]
push eax
call fcn.0044e0d0
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 0
call fcn.0045b6f0
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0xffffffff
call fcn.0045b6f0
mov eax, 1
jmp 0x45b434
Function at 0x45b970
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ccfa8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
call fcn.0045b6d0
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0xc]
push eax
mov dword [esp + 0x28], 0
call fcn.0044e070
push 0
mov ecx, esi
call fcn.0045b8f0
mov ebx, dword [esp + 0x2c]
cmp ebx, 1
jb 0x45baa8
lea ecx, [esp + 0xc]
call fcn.0044e420
cmp eax, 1
jae 0x45b9f7
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.0045b6f0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
mov eax, dword [esp + 0x34]
lea edi, [esi + 0xc]
test eax, eax
jne 0x45ba44
push 0
lea ecx, [esp + 0x10]
call fcn.00435460
push eax
push edi
mov ecx, 0x53664c
call fcn.0045b300
test eax, eax
jne 0x45ba4c
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.0045b6f0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
push eax
mov ecx, edi
call fcn.0044e070
push edi
mov ecx, 0x53664c
call fcn.0045b260
push 0
push 2
push 2
push 0
push 3
push 0xc0000000
mov ecx, edi
call fcn.0044e430
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x45baa8
push 0
push ebx
push 0
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [esi + 4], eax
je 0x45baa8
push 0
push 0
push 0
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 8], eax
jne 0x45bad8
push 1
mov ecx, esi
call fcn.0045b8f0
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.0045b6f0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
lea ecx, [esp + 0xc]
mov dword [esi + 0x1c], ebx
mov dword [esp + 0x24], 0xffffffff
call fcn.0045b6f0
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc

Function at 0x45c410
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
mov ecx, 0x41
xor eax, eax
push edi
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x110]
call fcn.0044e070
pop edi
add esp, 0x104
ret 4
Function at 0x45cbe0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x45cc13
push esi
call fcn.00461ab0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x45cc0c
mov dword [esi + 0x14], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x45cc99
mov eax, dword [esi + 0x1b8]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x45cc82
mov eax, dword [esi + 8]
test eax, eax
je 0x45cc37
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b8]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x45cc7e
cmp eax, 2
je 0x45cc82
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x45cc2a
cmp eax, 3
je 0x45cc5d
cmp eax, 1
jne 0x45cc2a
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 0x45cc2a
mov edx, dword [esi + 0x144]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x45cc2a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0045ccd0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x45ccb9
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x15
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.0045ccd0
add esp, 4
pop esi
ret

Function at 0x48d720
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x48d72b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x48d82e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x4d70f0]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4d70f0]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4d70f0]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4d70f0]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4d70f0]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4d70f0]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4d70f0]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4d70f0]
xor eax, edx
inc ecx
dec edi
jne 0x48d746
pop edi
test esi, esi
je 0x48d850
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4d70f0]
xor eax, edx
inc ecx
dec esi
jne 0x48d832
pop esi
pop ebx
not eax
ret
Function at 0x4ae7e8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4ae808
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004b14cc
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4ae82b
test byte [esp + 8], 2
je 0x4ae82b
call fcn.004b153f
mov dword [eax], 0xd
call fcn.004b1548
mov dword [eax], 5
jmp 0x4ae804
xor eax, eax
ret

Function at 0x4c061a
Capabilities:
Get graphical window text

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

Function at 0x4c1d0d
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 0x4c1d4f
call fcn.004c792e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4c1d4f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4c1d46
xor eax, eax
jmp 0x4c1d57
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004c1d5d
pop edi
pop esi
pop ebx
ret 4

Function at 0x4c7e5e
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 0x4c7e8c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4c7eaa
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004c7dc4
jmp 0x4c7eaa
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4c7eaa
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004c7dc4
test edi, edi
mov eax, edi
jne 0x4c7e94
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401cb1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0x3e8
push 0
call dword [0x439024]
push eax
call dword [0x439020]
mov esi, dword [0x43901c]
push 0x439388
push eax
mov dword [ebp - 4], eax
call esi
push 0x43937c
push dword [ebp - 4]
call esi
push 0x439374
push dword [ebp - 4]
call esi
push 0x439360
push dword [ebp - 4]
call esi
push 0x43934c
push dword [ebp - 4]
call esi
mov eax, dword [ebp + 0x10]
inc eax
push eax
push 0x40
call dword [0x439018]
push 0x439338
push dword [ebp - 4]
mov dword [ebp - 0xc], eax
call esi
push 0x439324
push dword [ebp - 4]
call esi
mov edi, 0x43931c
push edi
push dword [ebp - 4]
call esi
push 0x439314
push dword [ebp - 4]
call esi
push 0x43930c
push dword [ebp - 4]
call esi
push 0x439304
push dword [ebp - 4]
call esi
push 0x4392fc
push dword [ebp - 4]
call esi
mov ebx, 0x4392f8
push ebx
push dword [ebp - 4]
call esi
push 0x4392e4
push dword [ebp - 4]
call esi
push 0x4392d8
push dword [ebp - 4]
call esi
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x10]
push 0x4392d0
mov byte [eax + ecx], 0
push dword [ebp - 4]
call esi
push ebx
push dword [ebp - 4]
call esi
push 0x4392c0
push dword [ebp - 4]
call esi
push 0x4392b4
push dword [ebp - 4]
call esi
push edi
push dword [ebp - 4]
call esi
push 0x4392a4
push dword [ebp - 4]
call esi
push 0x43929c
push dword [ebp - 4]
call esi
push 0x439294
push dword [ebp - 4]
call esi
push 0x439284
push dword [ebp - 4]
call esi
push 0x439274
push dword [ebp - 4]
call esi
push 0x439260
push dword [ebp - 4]
call esi
push 0x439254
push dword [ebp - 4]
call esi
push 0x439240
push dword [ebp - 4]
call esi
push 0x439234
push dword [ebp - 4]
call esi
push 0x43922c
push dword [ebp - 4]
call esi
push 0x439374
push dword [ebp - 4]
call esi
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
mov edi, dword [0x439014]
jbe 0x401e97
mov eax, dword [ebp + 8]
sub eax, dword [ebp - 0xc]
mov dword [ebp + 8], eax
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call edi
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0xc]
push dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
call fcn.00425ab0
pop ecx
mov ecx, eax
mov eax, dword [ebp - 8]
xor edx, edx
div ecx
mov eax, dword [ebp + 0xc]
mov cl, byte [edx + eax]
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
xor cl, byte [edx + eax]
mov byte [eax], cl
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call edi
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x10]
jb 0x401e38
push 0x439220
push dword [ebp - 4]
call esi
push 0x439210
push dword [ebp - 4]
call esi
push 0x4392d0
push dword [ebp - 4]
call esi
push ebx
push dword [ebp - 4]
call esi
push 0x4392c0
push dword [ebp - 4]
call esi
push 0x4392b4
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call edi
push 4
lea eax, [ebp - 4]
push 0
push eax
call fcn.00424160
mov eax, dword [ebp - 0xc]
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret 0xc