joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417a40
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x45dd8f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x4790e8]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], eax
mov edi, dword [esp + 0x38]
mov esi, 0x1000
push edi
push esi
push esi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2c], 1
call fcn.0044f1bd
mov ebp, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
push eax
push ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
cmp eax, 0xfff
jne 0x417aca
shl esi, 1
push edi
push esi
push esi
lea ecx, [esp + 0x1c]
call fcn.0044f1bd
mov edx, dword [esp + 0x34]
push eax
push ebp
push ebx
push edx
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
lea ecx, [esi - 1]
cmp eax, ecx
je 0x417aa7
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.0044f20c
mov esi, dword [esp + 0x28]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.0044eb76
mov dword [esp + 0x14], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 0
call fcn.0044ee01
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x418f40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45e048
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
xor eax, eax
push esi
mov dword [esp + 8], eax
push edi
mov dword [esp + 0x10], eax
mov edi, ecx
mov dword [esp + 0x14], eax
mov ecx, 5
mov dword [esp + 0x18], eax
mov word [edi + 0x1c], cx
mov word [esp + 0x1c], ax
mov dword [esp + 0xe], ecx
mov ecx, dword [0x4790e8]
mov eax, 0x12
mov word [esp + 0xc], 0x1600
mov word [esp + 0x12], ax
mov word [esp + 0x14], ax
mov word [esp + 0x16], 0x700
mov word [esp + 0x1c], 0
mov dword [esp + 8], ecx
mov edx, dword [esp + 0x30]
lea eax, [esp + 8]
push edx
push str.UpdateDetail
push eax
mov dword [esp + 0x34], 0
call fcn.0040f380
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x48], 0
call fcn.0040f730
mov esi, eax
add esp, 0x18
test esi, esi
je 0x419032
mov eax, dword [esp + 0x30]
test eax, eax
jle 0x419032
push eax
push esi
mov ecx, edi
call fcn.00418bf0
push esi
call fcn.0044f31a
add esp, 4
lea ecx, [esp + 8]
mov dword [esp + 0x28], 0xffffffff
call fcn.0044ee01
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 4
lea ecx, [esp + 8]
mov dword [esp + 0x28], 0xffffffff
call fcn.0044ee01
mov ecx, dword [esp + 0x20]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 4
Function at 0x4199c0
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
sub esp, 0x2c
push edi
xor edi, edi
push 0xf0000020
push 1
push edi
lea eax, [esp + 0x14]
push edi
push eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], edi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x419ac3
mov edx, dword [esp + 8]
lea ecx, [esp + 4]
push ecx
push edi
push edi
push 0x8003
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x419ac3
push ebx
push ebp
push esi
mov esi, dword [esp + 0x40]
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x30]
mov edx, dword [esi]
push edi
push edi
mov ecx, esi
mov ebx, eax
call dword [edx + 0x28]
push 0x400000
call fcn.0044f2f1
add esp, 4
mov ebp, eax
cmp ebx, 0x400000
mov eax, 0x400000
jg 0x419a44
mov eax, ebx
mov edx, dword [esi]
push eax
push ebp
mov ecx, esi
call dword [edx + 0x34]
mov edi, eax
mov eax, dword [esp + 0x10]
push 0
push edi
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x419ab5
sub ebx, edi
test ebx, ebx
jg 0x419a35
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x40]
push 0
lea edx, [esp + 0x20]
push ecx
push edx
push 2
push eax
mov dword [esp + 0x54], 0x20
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x419ab5
mov edi, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
test edi, edi
mov dword [esp + 0x18], ecx
je 0x419ab5
cmp dword [esp + 0x48], ecx
jl 0x419ab5
mov edx, ecx
lea esi, [esp + 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebp
call fcn.0044f31a
add esp, 4
xor edi, edi
pop esi
pop ebp
pop ebx
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [esp + 8]
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [esp + 0xc]
pop edi
add esp, 0x2c
ret
Function at 0x419d50
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x45e16e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 0xa
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], esi
call fcn.0044ce20
mov ebx, dword [esi + 0x18]
mov ebp, 0x1000
push ebp
mov dword [esp + 0x44], 0
call fcn.0044f2f1
add esp, 4
mov esi, eax
mov ecx, 0x400
xor eax, eax
push ebx
mov edi, esi
push ebp
push esi
rep stosd dword es:[edi], eax
push str.Tasks
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileSectionA]
cmp eax, 0xffe
jne 0x419df4
push esi
call fcn.0044f31a
shl ebp, 1
push ebp
call fcn.0044f2f1
mov ecx, ebp
mov esi, eax
mov edx, ecx
xor eax, eax
mov edi, esi
add esp, 8
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebx
and ecx, 3
push ebp
push esi
push str.Tasks
rep stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileSectionA]
lea ecx, [ebp - 2]
cmp eax, ecx
je 0x419db8
mov al, byte [esi]
mov ebp, esi
test al, al
je 0x419e61
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
push 0x3d
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ebp
mov edi, ecx
inc edi
call fcn.0042cf22
xor ebx, ebx
add esp, 8
cmp eax, ebx
je 0x419e55
inc eax
lea ecx, [esp + 0x10]
push eax
call fcn.0044ee6f
lea edx, [esp + 0x10]
mov byte [esp + 0x40], 1
push edx
call fcn.0041a010
add esp, 4
cmp eax, ebx
je 0x419e47
push eax
lea ecx, [esp + 0x20]
call fcn.0044cf19
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], 0
call fcn.0044ee01
mov al, byte [ebp + edi]
add ebp, edi
test al, al
jne 0x419dfc
jmp 0x419e63
xor ebx, ebx
push esi
call fcn.0044f31a
mov edi, dword [esp + 0x28]
add esp, 4
cmp edi, ebx
je 0x419efd
mov eax, edi
mov edi, dword [edi + 4]
mov esi, dword [eax + 8]
cmp esi, ebx
je 0x419ef5
mov ecx, dword [esp + 0x14]
push 1
push esi
call fcn.0041a1f0
test eax, eax
jne 0x419ef5
mov dword [esp + 0x18], esi
mov ecx, dword [esi + 0x120]
mov byte [esp + 0x40], 2
cmp ecx, ebx
je 0x419ec3
mov eax, dword [ecx]
call dword [eax + 0x4c]
mov ecx, dword [esi + 0x120]
cmp ecx, ebx
je 0x419ebd
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov dword [esi + 0x120], ebx
mov eax, dword [esi + 0x11c]
cmp eax, ebx
je 0x419edc
push eax
call fcn.0044f31a
add esp, 4
mov dword [esi + 0x11c], ebx
lea ecx, [esi + 0x124]
mov byte [esp + 0x40], 0
call fcn.0044ee01
push esi
call fcn.0044f31a
add esp, 4
cmp edi, ebx
jne 0x419e78
lea ecx, [esp + 0x1c]
mov dword [esp + 0x40], 0xffffffff
call fcn.0044ce7f
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret
Function at 0x41a3f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45e20f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x4790e8]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ecx
mov edi, 1
fild qword [esp + 0x14]
mov dword [esp + 0x24], edi
fcom qword [0x462f18]
fnstsw ax
test ah, 1
je 0x41a46b
push ecx
lea ecx, [esp + 0x10]
push str._d_Byte
push ecx
fstp st(0)
call fcn.0044c0b3
mov esi, dword [esp + 0x38]
add esp, 0xc
lea edx, [esp + 0xc]
mov ecx, esi
push edx
call fcn.0044eb76
mov dword [esp + 0x10], edi
jmp 0x41a4e3
fmul qword [0x462f10]
fst qword [esp + 0x14]
fcomp qword [0x462f18]
fnstsw ax
test ah, 1
je 0x41a4a5
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0x14]
push str._.2f_KB
push edx
call fcn.0044c0b3
add esp, 0x10
lea eax, [esp + 0xc]
push eax
jmp 0x41a4d4
fld qword [esp + 0x14]
fmul qword [0x462f10]
lea eax, [esp + 0xc]
fstp qword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
push edx
push str._.2f_MB
push eax
call fcn.0044c0b3
add esp, 0x10
lea ecx, [esp + 0xc]
push ecx
mov esi, dword [esp + 0x30]
mov ecx, esi
call fcn.0044eb76
mov dword [esp + 0x10], edi
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], bl
call fcn.0044ee01
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x41b230
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x45e4c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [0x4790e8]
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x30]
lea eax, [esp]
push eax
push ecx
mov dword [esp + 0x30], 0
call fcn.0041b3e0
add esp, 8
test eax, eax
jne 0x41b316
lea ecx, [esp + 0x1c]
mov dword [esp + 0x28], 7
call fcn.0044ee01
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 6
call fcn.0044ee01
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 5
call fcn.0044ee01
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 4
call fcn.0044ee01
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 3
call fcn.0044ee01
lea ecx, [esp + 8]
mov byte [esp + 0x28], 2
call fcn.0044ee01
lea ecx, [esp + 4]
mov byte [esp + 0x28], 1
call fcn.0044ee01
lea ecx, [esp]
mov dword [esp + 0x28], 0xffffffff
call fcn.0044ee01
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
mov edx, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x38]
push 0x3f
push edx
lea eax, [esi + 0x40]
push eax
call fcn.0042d0b1
mov ecx, dword [esp + 0x14]
push 0x3f
push ecx
push esi
call fcn.0042d0b1
mov edx, dword [esp + 0x38]
push 0xf
add esi, 0x80
push edx
push esi
call fcn.0042d0b1
add esp, 0x24
lea ecx, [esp + 0x20]
mov dword [esp + 0x2c], 0xe
call fcn.0044ee01
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 0xd
call fcn.0044ee01
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 0xc
call fcn.0044ee01
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 0xb
call fcn.0044ee01
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0xa
call fcn.0044ee01
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 9
call fcn.0044ee01
lea ecx, [esp + 8]
mov byte [esp + 0x2c], 8
call fcn.0044ee01
lea ecx, [esp + 4]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0044ee01
mov ecx, dword [esp + 0x24]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x42ce2d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42ce4d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.0042e898
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x42ce70
test byte [esp + 8], 2
je 0x42ce70
call fcn.0042e90b
mov dword [eax], 0xd
call fcn.0042e914
mov dword [eax], 5
jmp 0x42ce49
xor eax, eax
ret
Function at 0x44b380
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0042c4d0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x44b44b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x44b44b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x44b3fe
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x44b409
or bh, 8
and edi, 0x8000000
je 0x44b424
mov eax, dword [0x48483c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x44b44b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44b820
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov edi, eax
test edi, edi
jne 0x44b84b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov esi, eax
test esi, esi
jne 0x44b86f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x44b88a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x450229
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x450261
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.0044f234
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0044f20c
jmp 0x45026d
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x45182e
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 0x451870
call fcn.0045849b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
cmp eax, edi
je 0x451870
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, edi
jne 0x451867
xor eax, eax
jmp 0x451878
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0045187e
pop edi
pop esi
pop ebx
ret 4

Function at 0x4520cf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x4520f1
cmp dword [edi + 0x3c], 0
jne 0x4520f1
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.0045849b
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
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.0045211e
pop edi
pop esi
pop ebx
ret 8

Function at 0x456794
Capabilities:
Create http request

Disassembly:
mov eax, 0x45eb54
call fcn.0042ecb0
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
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 0x4567cc
call fcn.0045849b
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 0x4567f1
push eax
push dword [esi + 4]
call fcn.00457541
jmp 0x4567fd
push esi
push eax
mov ecx, 0x481c40
call fcn.0045680e
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x45696e
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x45eb8f
call fcn.0042ecb0
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.004541ea
mov eax, dword [0x4790e8]
lea ebx, [esi + 0x24]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebx], eax
mov eax, dword [ebp + 0x10]
mov dword [esi], vtable.CInternetFile.0
mov ecx, 0x481c40
mov byte [ebp - 4], 1
push dword [eax + 0xc]
push dword [ebp + 8]
call fcn.0045680e
push dword [ebp + 0xc]
lea ecx, [esi + 0xc]
call fcn.0044ef8a
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 8]
mov dword [esi + 0x1c], eax
lea eax, [ebp + 0x10]
push eax
call fcn.00424454
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.0044ef3a
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 1
call fcn.0044ee01
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x18], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10

Function at 0x458c32
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 0x458c60
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
test eax, eax
je 0x458c7e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00458b98
jmp 0x458c7e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x458c7e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00458b98
test edi, edi
mov eax, edi
jne 0x458c68
pop edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x409760
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47f2db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00477260
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4097e2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00471c34
mov eax, dword [eax]
push 0x4fdbbc
push eax
call fcn.0046468a
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004774eb
test bl, bl
je 0x4097e2
push 0x4fdbbc
lea ecx, [esp + 0xc]
call fcn.0047787b
push 0x4fdbc8
lea ecx, [esp + 0xc]
call fcn.0047787b
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40981e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004774eb
jmp 0x4098e9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x4098a2
lea edx, [esp + 0x7c]
push 0x4fdbc4
push edx
call fcn.0046468a
add esp, 8
test eax, eax
je 0x4098a2
lea eax, [esp + 0x7c]
push 0x4fdbc0
push eax
call fcn.0046468a
add esp, 8
test eax, eax
je 0x4098a2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x409832
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004774eb
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40a0f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40a152
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc