joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404854
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00401b18
xor ebx, ebx
cmp dword [0x40b668], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x40492a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x404a0a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x404a0a
push eax
call fcn.00401aaa
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40b668], eax
call esi
push eax
call fcn.00401aaa
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40b66c], eax
call esi
push eax
call fcn.00401aaa
mov dword [0x40b670], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004021f2
test eax, eax
pop ecx
pop ecx
je 0x4048f8
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00404121
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x40492a
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00401aaa
cmp eax, ebx
pop ecx
mov dword [0x40b678], eax
je 0x40492a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00401aaa
pop ecx
mov dword [0x40b674], eax
mov eax, dword [0x40b674]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4049af
cmp dword [0x40b678], ecx
je 0x4049af
push eax
call fcn.00401b21
push dword [0x40b678]
mov esi, eax
call fcn.00401b21
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4049af
cmp edi, ebx
je 0x4049af
call esi
cmp eax, ebx
je 0x40497c
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40497c
test byte [ebp - 0x18], 1
jne 0x4049af
lea eax, [ebp - 0x10]
push eax
call fcn.00402229
test eax, eax
pop ecx
je 0x404997
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00404121
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4049a6
or dword [ebp + 0x10], 0x200000
jmp 0x4049ea
or dword [ebp + 0x10], 0x40000
jmp 0x4049ea
mov eax, dword [0x40b66c]
cmp eax, dword [ebp - 8]
je 0x4049ea
push eax
call fcn.00401b21
cmp eax, ebx
pop ecx
je 0x4049ea
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4049ea
mov eax, dword [0x40b670]
cmp eax, dword [ebp - 8]
je 0x4049ea
push eax
call fcn.00401b21
cmp eax, ebx
pop ecx
je 0x4049ea
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40b668]
call fcn.00401b21
cmp eax, ebx
pop ecx
je 0x404a0a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x404a0c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53
Function at 0x41b500
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43cb4b
jmp 0x41b6f4
call fcn.0040f090
add esp, 0xc
cmp eax, edi
je 0x41b649
mov eax, dword [ebp - 0x230]
cmp eax, dword [ebp - 0x22c]
je 0x41b649
lea ecx, [ebp - 0x230]
push 0x401960
push ecx
call fcn.0040f660
add esp, 8
push 0x401950
push 0x401938
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
je 0x41b746
jne 0x41b746
push 0x9b3430
dec edi
aad 0xfe
test byte [esi + 0x33], ah
lds ecx, [ecx + 0x5653ec45]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
je 0x41b60b
jne 0x41b60b
push 0xa0dde4
mov ecx, 0xa83108
mov edx, 0x6a0babb1
add dword [eax - 0x18], edx
aas
outsd dx, dword [esi]
add dword [eax], eax
push 1
push eax
call fcn.004324ef
mov edx, dword [ebp - 0x220]
push edx
call fcn.0043233c
mov eax, dword [ebp - 0x220]
mov esi, dword [ebp - 0x22c]
sub esi, dword [ebp - 0x230]
push eax
call fcn.0043214d
mov ecx, dword [ebp - 0x220]
xor ebx, ebx
jmp 0x41b770
call fcn.004308f0
add esp, 0xc
push 0x41b6b8
ret
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor edi, edi
xor ebx, ebx
mov dword [ebp - 4], edi
mov dword [ebp - 0x230], edi
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x228], edi
mov edx, dword [ebp + 0x10]
jmp 0x41b7dc
add esp, 0x1c
mov eax, dword [ebp - 0x230]
jmp 0x41b82b
xor ecx, ebp
call fcn.004308e1
jmp 0x41b8c7
jmp 0x41b8e4
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x4901c4]
je 0x41b57c
jne 0x41b57c
movdqa xmm5, xmmword [0x697d0a40]
call dword [0x4911b8]
cmp eax, 0x117
sahf
into
and byte [esi - 0x77], 0x95
in al, 0xfd
invalid
mov word [ebp - reloc.gdi32.dll_SetStretchBltMode], dx
je 0x41b5f1
jne 0x41b5f1
paddw xmm5, xmmword [0xb1dc10]
fdivr dword [ecx + 0x67]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x41b649
push esi
call eax
jmp 0x41b905
cmp esi, eax
push ecx
sete bl
call fcn.00431f45
jmp 0x41b646
lea ecx, [ebp - 0x230]
push ecx
push edx
push eax
mov byte [ebp - 4], 1
jmp 0x41b51f
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x41b937
push 0x206
lea eax, [ebp - 0x21a]
xor edx, edx
push edi
push eax
je 0x41b728
jne 0x41b728
mov ecx, dword [0x1152bb4c]
mov ecx, dword [0x100b388c]
pop ebx
push esi
cmp eax, edi
je 0x41b8e4
push eax
call fcn.004303db
add esp, 4
jmp 0x41b681
push edx
mov dword [ebp - 0x220], edi
call fcn.00432627
add esp, 0xc
test eax, eax
jne 0x41b649
mov eax, dword [ebp - 0x220]
cmp eax, edi
je 0x41b649
mov ecx, dword [ebp - 0x22c]
push eax
mov eax, dword [ebp - 0x230]
sub ecx, eax
push ecx
jmp 0x41b5a8
mov esp, ebp
pop ebp
ret
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
jmp 0x41b65b
cmp eax, edi
je 0x41b937
push esi
je 0x41b7f4
jne 0x41b7f4
mov byte [0x10699fd], al
lea edx, [ebp - 0x15c]
push 0xb129fc
jecxz 0x41b947
cdq
sbb eax, 0xfc08544
test byte [edx], dl
std
invalid
push 0x401930
lea edx, [ebp - 0x220]
push esi
jmp 0x41b873
invalid
Function at 0x41b6f4
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43cb4b
jmp 0x41b6f4
call fcn.0040f090
add esp, 0xc
cmp eax, edi
je 0x41b649
mov eax, dword [ebp - 0x230]
cmp eax, dword [ebp - 0x22c]
je 0x41b649
lea ecx, [ebp - 0x230]
push 0x401960
push ecx
call fcn.0040f660
add esp, 8
push 0x401950
push 0x401938
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
je 0x41b746
jne 0x41b746
push 0x9b3430
dec edi
aad 0xfe
test byte [esi + 0x33], ah
lds ecx, [ecx + 0x5653ec45]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
je 0x41b60b
jne 0x41b60b
push 0xa0dde4
mov ecx, 0xa83108
mov edx, 0x6a0babb1
add dword [eax - 0x18], edx
aas
outsd dx, dword [esi]
add dword [eax], eax
push 1
push eax
call fcn.004324ef
mov edx, dword [ebp - 0x220]
push edx
call fcn.0043233c
mov eax, dword [ebp - 0x220]
mov esi, dword [ebp - 0x22c]
sub esi, dword [ebp - 0x230]
push eax
call fcn.0043214d
mov ecx, dword [ebp - 0x220]
xor ebx, ebx
jmp 0x41b770
call fcn.004308f0
add esp, 0xc
push 0x41b6b8
ret
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor edi, edi
xor ebx, ebx
mov dword [ebp - 4], edi
mov dword [ebp - 0x230], edi
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x228], edi
mov edx, dword [ebp + 0x10]
jmp 0x41b7dc
add esp, 0x1c
mov eax, dword [ebp - 0x230]
jmp 0x41b82b
xor ecx, ebp
call fcn.004308e1
jmp 0x41b8c7
jmp 0x41b8e4
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x4901c4]
je 0x41b57c
jne 0x41b57c
movdqa xmm5, xmmword [0x697d0a40]
call dword [0x4911b8]
cmp eax, 0x117
sahf
into
and byte [esi - 0x77], 0x95
in al, 0xfd
invalid
mov word [ebp - reloc.gdi32.dll_SetStretchBltMode], dx
je 0x41b5f1
jne 0x41b5f1
paddw xmm5, xmmword [0xb1dc10]
fdivr dword [ecx + 0x67]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x41b649
push esi
call eax
jmp 0x41b905
cmp esi, eax
push ecx
sete bl
call fcn.00431f45
jmp 0x41b646
lea ecx, [ebp - 0x230]
push ecx
push edx
push eax
mov byte [ebp - 4], 1
jmp 0x41b51f
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x41b937
push 0x206
lea eax, [ebp - 0x21a]
xor edx, edx
push edi
push eax
je 0x41b728
jne 0x41b728
mov ecx, dword [0x1152bb4c]
mov ecx, dword [0x100b388c]
pop ebx
push esi
cmp eax, edi
je 0x41b8e4
push eax
call fcn.004303db
add esp, 4
jmp 0x41b681
push edx
mov dword [ebp - 0x220], edi
call fcn.00432627
add esp, 0xc
test eax, eax
jne 0x41b649
mov eax, dword [ebp - 0x220]
cmp eax, edi
je 0x41b649
mov ecx, dword [ebp - 0x22c]
push eax
mov eax, dword [ebp - 0x230]
sub ecx, eax
push ecx
jmp 0x41b5a8
mov esp, ebp
pop ebp
ret
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
jmp 0x41b65b
cmp eax, edi
je 0x41b937
push esi
je 0x41b7f4
jne 0x41b7f4
mov byte [0x10699fd], al
lea edx, [ebp - 0x15c]
push 0xb129fc
jecxz 0x41b947
cdq
sbb eax, 0xfc08544
test byte [edx], dl
std
invalid
push 0x401930
lea edx, [ebp - 0x220]
push esi
jmp 0x41b873
invalid
Function at 0x1000b540
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002482c
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x1003035c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov dword [eax], 0x10026e24
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], 0
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 8
call fcn.10014d80
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xc], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
call fcn.1000d320
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x1c], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x20
call fcn.1000d390
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.1000d390
mov byte [ebp - 4], 3
push 0
push 1
call fcn.1000b2a0
add esp, 8
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x40
call fcn.10014d80
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 0x44], 1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x10022fc0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10024266
push eax
mov dword fs:[0], esp
push esi
mov esi, dword [esp + 0x14]
push edi
xor edi, edi
mov dword [esi], 0x100296fc
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
lea ecx, [esi + 0x14]
mov dword [esp + 0x10], edi
call fcn.1001bc00
mov byte [esp + 0x10], 1
lea eax, [esi + 0x34]
push eax
mov dword [esi + 0x20], 0x384
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
call fcn.10022ec0
mov ecx, dword [esp + 8]
pop edi
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 4
Function at 0x100294b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100237a9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
mov esi, ecx
lea ecx, [esp + 4]
call dword [fcn.10026228]
mov eax, dword [esp + 0x30]
push esi
push eax
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x34], 0
call fcn.10023370
add esp, 0xc
test eax, eax
jne 0x10029518
lea ecx, [esp + 4]
mov dword [esp + 0x28], 0xffffffff
call dword [fcn.100261d8]
xor eax, eax
pop esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
cmp dword [esp + 0x34], 0
je 0x1002953a
lea ecx, [esp + 4]
call dword [fcn.100261d0]
test esi, esi
jne 0x1002953a
push eax
call fcn.100298d0
add esp, 4
test eax, eax
je 0x100294f4
lea ecx, [esp + 4]
call dword [fcn.100261d0]
push eax
call dword [0x1002611c]
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x28], 0xffffffff
call dword [fcn.100261d8]
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret

Function at 0x10029870
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x5c
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x64]
push esi
push eax
mov eax, dword [esp + 0x70]
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.10029180
mov ecx, dword [esp + 0x68]
push ecx
lea esi, [esp + 0x10]
call fcn.10029270
add esp, 8
pop esi
add esp, 0x5c
ret
Function at 0x40ed95
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x431500
cmp edx, dword [eax]
je 0x40edb7
add eax, 8
inc ecx
cmp eax, 0x431590
jl 0x40eda8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x431500]
jne 0x40eee5
mov eax, dword [0x4342bc]
cmp eax, 1
je 0x40eebf
test eax, eax
jne 0x40ede8
cmp dword [0x431004], 1
je 0x40eebf
cmp edx, 0xfc
je 0x40eee5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40ee1f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040eef0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040e400
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40ee62
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040e400
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x429514
push edi
call fcn.00411d90
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040eef0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040ef00
lea eax, [ebp - 0xa0]
push 0x4294f4
push eax
call fcn.0040ef00
push dword [esi + 0x431504]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040ef00
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00411cfb
add esp, 0x2c
pop edi
jmp 0x40eee5
lea eax, [ebp + 8]
lea esi, [esi + 0x431504]
push 0
push eax
push dword [esi]
call fcn.0040e400
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x417990
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.0040add0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x417a5b
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 0x417a5b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x417a0e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x417a19
or bh, 8
and edi, 0x8000000
je 0x417a34
mov eax, dword [0x435a5c]
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 0x417a5b
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 0x417e30
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 0x417e5b
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 0x417e7f
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 0x417e9a
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 0x41cc28
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 0x41cc6a
call fcn.004217a2
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41cc6a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41cc61
xor eax, eax
jmp 0x41cc72
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041cc78
pop edi
pop esi
pop ebx
ret 4

Function at 0x421f5b
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 0x421f89
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x421fa7
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00421ec1
jmp 0x421fa7
mov eax, dword [esi + 0x14]
test eax, eax
je 0x421fa7
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00421ec1
test edi, edi
mov eax, edi
jne 0x421f91
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4061d0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46c0ab
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.0045efd1
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x406252
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045ca87
mov eax, dword [eax]
push 0x54e1d0
push eax
call fcn.0044f7d4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045f25c
test bl, bl
je 0x406252
push 0x54e1d0
lea ecx, [esp + 0xc]
call fcn.0045f638
push 0x551d18
lea ecx, [esp + 0xc]
call fcn.0045f638
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 0x40628e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045f25c
jmp 0x406359
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 0x406312
lea edx, [esp + 0x7c]
push 0x551d14
push edx
call fcn.0044f7d4
add esp, 8
test eax, eax
je 0x406312
lea eax, [esp + 0x7c]
push 0x551d10
push eax
call fcn.0044f7d4
add esp, 8
test eax, eax
je 0x406312
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 0x4062a2
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.0045f25c
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 0x406b50
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 0x406bb2
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