joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433d20
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b1b48
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x433d59
inc eax
mov dword [esi + 0x10], eax
jmp 0x433e6c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x433d6d
mov eax, 0xffffffc7
jmp 0x433e6e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x433d7e
cmp dword [esi + 8], eax
jne 0x433d6d
cmp dword [esi + 8], eax
jne 0x433d97
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x433d97
mov eax, 0xffffffc7
jmp 0x433e6e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x433dab
push eax
mov ecx, ebx
call fcn.00433550
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00402f60
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x433ddc
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00402f80
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00432cc0
test eax, eax
mov dword [esp + 0x38], eax
je 0x433e0f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x5a52e8
call fcn.00403160
mov eax, dword [esp + 0x38]
jmp 0x433e6e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00433b80
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x433e53
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00433ba0
mov esi, eax
test esi, esi
jne 0x433e83
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00433b80
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x433e25
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x5a52e8
call fcn.00403160
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x5a52e8
call fcn.00403160
mov eax, esi
jmp 0x433e6e

Function at 0x436f90
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x436ff0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x436ff0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x436ff0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x436ff0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x437030
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x43cf70
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4b2178
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.004aab45
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043c910
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004aaa73
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.004a727f
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.004a727f
push 1
push 0
push 0
mov ecx, esi
call fcn.004a7227
push 1
push 0
push 1
mov ecx, esi
call fcn.004a7227
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004aabb7
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43d0f0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4b2198
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004aab45
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043c910
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004aaa73
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x43d1b4
cmp dword [esp + 0x40], 1
jne 0x43d1b2
cmp ecx, eax
jge 0x43d1b4
mov eax, ecx
cmp eax, 0xc8
jge 0x43d1c0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043cf70
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004aabb7
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43d940
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4b2203
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004a569d
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004aaded
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004ac309
test eax, eax
je 0x43da5c
mov ecx, dword [esp + 0x3c]
call fcn.004aae1a
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43da20
push edi
mov ecx, esi
call fcn.004a83ca
mov ecx, esi
call fcn.0043dbc0
cmp dword [esp + 0x38], 1
jne 0x43da55
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004a8505
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x440470
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4404a3
push esi
call fcn.00443560
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44049c
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 0x440529
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x440512
mov eax, dword [esi + 8]
test eax, eax
je 0x4404c7
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 0x44050e
cmp eax, 2
je 0x440512
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4404ba
cmp eax, 3
je 0x4404ed
cmp eax, 1
jne 0x4404ba
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 0x4404ba
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4404ba
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00440550
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x440538
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00440550
add esp, 4
pop esi
ret

Function at 0x44b7a0
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 0x44b806
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 0x44b806
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x44b7e7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
Function at 0x44c020
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 0x44c069
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 0x44c6b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b26f0
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.0044c090
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0044c110
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0044c110
lea ecx, [esi + 0xc]
call fcn.004a4079
lea ecx, [esi + 0x10]
call fcn.004a4079
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0044d9f0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0044d9f0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0044d9f0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004a40ee
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004a40ee
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x452a30
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x5e7558]
sub esp, 0x310
test eax, eax
push esi
je 0x452a5d
push eax
lea eax, [esp + 8]
push 0x5c4a70
push eax
push 0xe6
call fcn.004519e0
add esp, 0x10
jmp 0x452ae3
call fcn.00452550
test eax, eax
je 0x452a9c
lea ecx, [esp + 0x10c]
push ecx
push 0xe6
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edx, [esp + 0x10c]
push edx
call fcn.00451f90
mov esi, eax
add esp, 4
test esi, esi
jne 0x452ac5
mov eax, 7
pop esi
add esp, 0x310
ret
lea ecx, [esp + 0x10c]
push ecx
push 0xe6
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [esp + 0x10c]
push edx
call fcn.00451f60
mov esi, eax
add esp, 4
test esi, esi
je 0x452a8f
push esi
lea eax, [esp + 8]
push 0x5c4a70
push eax
push 0xe6
call fcn.004519e0
push esi
call fcn.0049198e
add esp, 0x14
lea ecx, [esp + 4]
push ecx
call fcn.00451c00
add esp, 4
test eax, eax
jbe 0x452b02
lea ecx, [esp + 4]
dec ecx
cmp byte [ecx + eax], 0x5c
jne 0x452b02
dec eax
jne 0x452af9
push ebx
mov byte [esp + eax + 8], 0
mov eax, dword [esp + 0x31c]
lea edx, [esp + 8]
push edi
mov edi, dword [esp + 0x324]
push edx
push str._setilqs_
add eax, 0xffffffe2
push edi
push eax
call fcn.004519e0
push edi
call fcn.00451c00
mov esi, eax
lea ecx, [esi + edi]
push ecx
push 0x14
call fcn.00451a40
add esp, 0x1c
mov ecx, 0x14
xor eax, eax
xor edx, edx
mov al, byte [esi + edi]
mov ebx, 0x3e
div ebx
inc esi
dec ecx
mov dl, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [esi + edi - 1], dl
jne 0x452b46
mov byte [esi + edi], 0
pop edi
pop ebx
xor eax, eax
pop esi
add esp, 0x310
ret

Function at 0x457150
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov esi, dword [esp + 0x10]
xor eax, eax
push edi
mov ebp, dword [esi + 0x5c]
cmp ebx, ebp
jle 0x45722e
mov cl, byte [esi + 6]
test cl, cl
je 0x45722e
mov ecx, dword [esi + 0x58]
mov eax, ebx
shl eax, 5
push eax
push ecx
call fcn.00450840
mov edx, eax
add esp, 8
test edx, edx
jne 0x457196
pop edi
pop esi
pop ebp
mov eax, 7
pop ebx
ret
mov ecx, ebx
mov eax, ebp
sub ecx, ebp
shl eax, 5
shl ecx, 5
mov ebx, ecx
lea edi, [eax + edx]
xor eax, eax
mov dword [esp + 0x14], edi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
mov ebx, dword [esp + 0x18]
and ecx, 3
cmp ebp, ebx
rep stosb byte es:[edi], al
mov dword [esi + 0x58], edx
mov dword [esi + 0x5c], ebx
jge 0x457225
mov ecx, dword [esp + 0x14]
lea edi, [ecx + 0x18]
mov edx, dword [esi + 0x18]
mov dword [edi - 4], edx
mov eax, dword [esi + 0x3c]
cmp dword [eax], 0
je 0x4571f4
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
test eax, eax
jl 0x4571f4
jg 0x4571ec
test ecx, ecx
jbe 0x4571f4
mov dword [edi - 0x18], ecx
mov dword [edi - 0x14], eax
jmp 0x457201
mov ecx, dword [esi + 0x70]
mov dword [edi - 0x18], ecx
mov dword [edi - 0x14], 0
mov edx, dword [esi + 0x30]
mov dword [edi], edx
mov eax, dword [esi + 0x18]
push eax
call fcn.00454630
add esp, 4
mov dword [edi - 8], eax
test eax, eax
je 0x45718c
inc ebp
add edi, 0x20
cmp ebp, ebx
jl 0x4571ce
push esi
call fcn.00456df0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x464e80
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2c]
push edi
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax]
push ecx
call fcn.00465010
mov ebx, eax
xor eax, eax
mov ax, word [esi + 0xc]
mov ecx, dword [esi + 0x3c]
mov ebp, dword [esi + 0x40]
mov dword [esp + 0x18], eax
xor eax, eax
xor edx, edx
mov ax, word [esi + 0x10]
mov dl, byte [esi + 5]
mov dword [esp + 0x1c], eax
xor eax, eax
mov ax, word [ecx + 0x18]
xor ecx, ecx
mov ch, byte [edx + ebp + 5]
mov dword [esp + 0x28], ebx
mov cl, byte [edx + ebp + 6]
add esp, 4
mov edi, ecx
mov ecx, eax
sub ecx, edi
mov dword [esp + 0x28], edx
lea esi, [edi + ebp]
add edi, ebx
mov ebx, ecx
mov dword [esp + 0x1c], eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov ebx, eax
and ecx, 3
mov dword [esp + 0x20], 0
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
test ecx, ecx
jle 0x464fa5
mov edx, dword [esp + 0x14]
lea esi, [edx + ebp]
mov dword [esp + 0x10], esi
jmp 0x464f1a
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
xor ecx, ecx
mov ch, byte [esi]
mov cl, byte [esi + 1]
mov edi, ecx
cmp edi, eax
jge 0x465002
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x30]
lea esi, [edi + edx]
push esi
push eax
call fcn.00464330
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
and eax, 0xffff
add esp, 8
sub ebx, eax
lea ecx, [ecx + edx*2]
cmp ebx, ecx
jl 0x465002
lea ecx, [eax + edi]
mov edi, dword [esp + 0x1c]
cmp ecx, edi
jg 0x465002
mov ecx, eax
lea edi, [ebx + ebp]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x10]
and ecx, 3
add eax, 2
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
mov byte [eax - 1], bl
sar ecx, 8
mov byte [eax - 2], cl
mov ecx, dword [esp + 0x20]
inc ecx
mov dword [esp + 0x10], eax
cmp ecx, edx
mov dword [esp + 0x20], ecx
jl 0x464f12
mov edx, dword [esp + 0x28]
mov eax, ebx
mov ecx, dword [esp + 0x14]
sar eax, 8
mov byte [edx + ebp + 5], al
mov byte [edx + ebp + 6], bl
mov byte [edx + ebp + 1], 0
mov byte [edx + ebp + 2], 0
mov byte [edx + ebp + 7], 0
mov edx, dword [esp + 0x18]
xor eax, eax
lea edx, [ecx + edx*2]
sub ebx, edx
mov ecx, ebx
lea edi, [edx + ebp]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x30]
xor eax, eax
pop edi
pop esi
mov ax, word [ecx + 0xe]
pop ebp
mov edx, eax
mov eax, ebx
sub eax, edx
pop ebx
neg eax
sbb eax, eax
and eax, 0xb
add esp, 0x1c
ret
pop edi
pop esi
pop ebp
mov eax, 0xb
pop ebx
add esp, 0x1c
ret
Function at 0x466440
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x18]
push ebp
push esi
push 0
mov ebp, dword [eax + 0x58]
lea edx, [esp + 0x18]
lea eax, [esp + 0xc]
mov ecx, dword [ebp + 0x48]
mov esi, dword [ebp + 0x3c]
push ecx
push edx
push eax
push esi
mov dword [esp + 0x2c], esi
call fcn.00458a10
add esp, 0x14
test eax, eax
jne 0x4665dc
mov ecx, dword [ebp + 0x40]
mov ax, word [esi + 0x18]
push ebx
xor ebx, ebx
mov bl, byte [ebp + 5]
mov dword [esp + 0x14], ecx
push edi
xor edi, edi
lea esi, [ebx + ecx]
mov ecx, dword [esp + 0x10]
mov di, word [ebp + 0xc]
xor edx, edx
mov ecx, dword [ecx + 0x40]
mov dh, byte [esi + 5]
mov dword [esp + 0x14], ecx
xor ecx, ecx
mov cx, word [ebp + 0x10]
mov dl, byte [esi + 6]
lea ecx, [edi + ecx*2]
mov edi, dword [esp + 0x14]
sub ecx, 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, eax
mov eax, dword [esp + 0x18]
sub ecx, edx
lea esi, [edx + eax]
mov eax, dword [esp + 0x14]
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
push eax
call fcn.004585f0
mov esi, eax
xor ebx, ebx
add esp, 4
cmp esi, ebx
jne 0x4665cb
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov cl, byte [ebp + 1]
lea esi, [ebp + 0x14]
shl ecx, 3
mov eax, ecx
lea edi, [edx + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0x10]
mov cl, byte [ebp + 1]
mov byte [edx + 1], cl
mov eax, dword [esp + 0x10]
cmp byte [eax + 1], bl
je 0x466533
mov word [eax + 0xe], bx
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x40]
xor ecx, ecx
mov cl, byte [eax]
and ecx, 0xfffffff7
push ecx
push ebp
call fcn.00457660
mov edx, dword [esp + 0x24]
mov ecx, dword [ebp + 0x40]
xor eax, eax
push edx
mov al, byte [ebp + 5]
lea edx, [eax + ecx + 8]
push edx
call fcn.004564a0
mov eax, dword [esp + 0x30]
add esp, 0x10
cmp byte [eax + 0x13], bl
je 0x4665a2
mov ecx, dword [ebp + 0x48]
mov edx, dword [esp + 0x10]
push ecx
push 5
mov ecx, dword [edx + 0x48]
push ecx
push eax
call fcn.00457fe0
mov esi, eax
add esp, 0x10
cmp esi, ebx
jne 0x466597
mov edx, dword [esp + 0x10]
push edx
call fcn.00458090
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x4665a2
mov eax, dword [esp + 0x10]
cmp esi, ebx
mov byte [eax + 1], bl
jne 0x4665cb
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
push eax
inc word [eax + 0x54]
mov dword [eax + 0x5c], ecx
mov word [eax + 0xa8], bx
call fcn.004651c0
add esp, 4
mov esi, eax
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x14
ret
mov edx, dword [esp + 0x10]
push edx
call fcn.004574d0
add esp, 4
mov eax, esi
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x14
ret
Function at 0x469ad0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
push esi
xor esi, esi
push edi
mov edi, dword [esp + 0xc]
test eax, eax
jg 0x469aed
push edi
call fcn.00451c00
add esp, 4
test eax, eax
jle 0x469b08
xor ecx, ecx
xor edx, edx
mov cl, byte [edi]
mov dl, byte [ecx + 0x5a8dfc]
lea ecx, [esi*8]
xor edx, ecx
xor esi, edx
inc edi
dec eax
jne 0x469aed
mov eax, esi
pop edi
and eax, 0x7fffffff
pop esi
ret
Function at 0x477170
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x477181
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov ebx, dword [esp + 0x10]
push 0x44
push ebx
call fcn.004509b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x47719a
pop edi
pop esi
pop ebx
ret
mov eax, dword [edi]
push eax
push ebx
call fcn.00477070
mov dword [esi], eax
mov ecx, dword [edi + 8]
push ecx
push ebx
call fcn.00477250
mov dword [esi + 8], eax
mov edx, dword [edi + 0xc]
push edx
push ebx
call fcn.00476fc0
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x10]
push eax
push ebx
call fcn.00477070
mov dword [esi + 0x10], eax
mov ecx, dword [edi + 0x14]
push ecx
push ebx
call fcn.00476fc0
mov dword [esi + 0x14], eax
mov edx, dword [edi + 0x18]
push edx
push ebx
call fcn.00477070
mov dword [esi + 0x18], eax
mov al, byte [edi + 4]
mov byte [esi + 4], al
mov ecx, dword [edi + 0x1c]
push ecx
push ebx
call fcn.00477170
mov dword [esi + 0x1c], eax
mov edx, dword [edi + 0x28]
push edx
push ebx
call fcn.00476fc0
add esp, 0x40
mov dword [esi + 0x28], eax
mov eax, dword [edi + 0x2c]
push eax
push ebx
call fcn.00476fc0
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov cx, word [edi + 6]
add esp, 8
or eax, 0xffffffff
and ecx, 0xfff7
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov word [esi + 6], cx
mov dword [esi + 0x24], 0
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x4a6492
Capabilities:
Get graphical window text

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

Function at 0x4a7b87
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 0x4a7bc9
call fcn.004ad7a9
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4a7bc9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4a7bc0
xor eax, eax
jmp 0x4a7bd1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004a7bd7
pop edi
pop esi
pop ebx
ret 4

Function at 0x4adcd9
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 0x4add07
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4add25
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004adc3f
jmp 0x4add25
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4add25
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004adc3f
test edi, edi
mov eax, edi
jne 0x4add0f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx