joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4014b0
Capabilities:
Create service
Get common file path
Persist via windows service
Start service

Disassembly:
sub esp, 0x200
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x100]
push ebx
mov ebx, dword [esp + 0x20c]
push ebp
push esi
push edi
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0xc8
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x114]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..sys
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str.drivers_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x110]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x110]
push eax
push ecx
call fcn.00402e00
add esp, 8
test eax, eax
jne 0x4015ad
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x200
ret
mov edx, dword [esp + 0x21c]
push 0
push 0
push 0
mov ecx, dword [esp + 0x220]
push 0
lea eax, [esp + 0x20]
push edx
push eax
push 1
push 2
push 1
push 0xf01ff
push ebx
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
test esi, esi
jne 0x401600
lea edx, [esp + 0x10]
push edx
call fcn.0040c89a
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x200
ret
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x40161f
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x200
ret
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x200
ret
Function at 0x401640
Capabilities:
Delete service
Get common file path
Stop service

Disassembly:
sub esp, 0x11c
lea eax, [esp + 0x1c]
push ebx
push ebp
push esi
push edi
push 0xc8
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
or ecx, 0xffffffff
mov edi, str.drivers_
xor eax, eax
lea edx, [esp + 0x2c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov ebx, dword [esp + 0x134]
and ecx, 3
lea edx, [esp + 0x2c]
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x2c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..sys
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x2c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0040c89a
mov ecx, dword [esp + 0x134]
add esp, 4
push 0xf01ff
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x40171b
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x11c
ret
lea edx, [esp + 0x10]
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x11c
ret
Function at 0x401c50
Capabilities:
Accept command line arguments
Inspect load icon resource
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x425cbe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push ebx
push esi
push edi
mov esi, ecx
push eax
push 0x66
mov dword [esp + 0x14], esi
call fcn.0041bc83
mov edx, dword [0x430458]
lea ecx, [esi + 0x68]
xor edi, edi
mov dword [esp + 0x18], edi
mov dword [ecx], edx
mov eax, dword [0x430458]
lea ebx, [esi + 0x78]
mov dword [ebx], eax
push 0x434310
mov byte [esp + 0x1c], 2
mov dword [esi], method.CDialog.virtual_0
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], 0xffffffff
call fcn.0041a975
push 0x434310
mov ecx, ebx
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
call fcn.0041a975
call fcn.00422d17
call fcn.00422d17
mov eax, dword [eax + 0xc]
push 0x80
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [esi + 0x90], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
xor ecx, ecx
cmp eax, 0x804
setne cl
mov dword [esi + 0x8c], eax
mov dword [esi + 0x8c], ecx
mov ecx, esi
mov dword [esi + 0x7c], edi
mov dword [esi + 0x88], edi
mov dword [esi + 0x84], edi
call fcn.00402850
mov ebx, 1
mov dword [esi + 0x94], edi
mov dword [esi + 0x60], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
mov ecx, esi
call fcn.00403d10
mov eax, dword [esi + 0x84]
test bl, al
je 0x401d83
and al, 0xfe
mov ecx, esi
or al, 2
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], eax
call fcn.00402f40
mov edx, dword [esi + 0x84]
and edx, 0xfffffffd
or edx, ebx
mov dword [esi + 0x84], edx
jmp 0x401d8d
test al, 2
je 0x401d9b
mov dword [esi + 0x80], edi
mov ecx, esi
call fcn.00402f40
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x402e00
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub esp, 0x120
push ebx
push ebp
push esi
push edi
call fcn.00422d17
mov eax, dword [eax + 4]
push str.DFILE
mov esi, dword [eax + 0x68]
mov eax, dword [esp + 0x138]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x402e3a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x120
ret
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x402e55
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x120
ret
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402e6c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x120
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
jne 0x402e84
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x120
ret
mov edi, dword [esp + 0x138]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push edi
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x402ef1
lea ecx, [esp + 0x18]
push ecx
push edi
call fcn.0041f2df
lea edx, [esp + 0x18]
mov byte [esp + 0x28], 0
push edx
push edi
call fcn.0041f444
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push edi
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x402ef1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x120
ret
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x10]
push 0
push eax
push edi
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x402f14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x120
ret
cmp edi, dword [esp + 0x10]
je 0x402f27
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x120
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x120
ret
Function at 0x403d10
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x425dd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
mov ebx, dword [esp + 0x2c]
push ebp
push esi
mov ebp, ecx
push edi
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
xor esi, esi
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], edx
lea edi, [ecx - 1]
mov dword [esp + 0x20], edx
test edi, edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x24], 1
jle 0x403e2f
cmp byte [esi + ebx], 0x2f
jne 0x403e22
movsx eax, byte [esi + ebx + 1]
push eax
call fcn.0040cc2a
add esp, 4
cmp al, 0x4e
jne 0x403d92
mov dword [esp + 0x24], 0
jmp 0x403e22
cmp al, 0x49
jne 0x403da6
mov eax, dword [ebp + 0x84]
or al, 1
mov dword [ebp + 0x84], eax
jmp 0x403e22
cmp al, 0x52
jne 0x403dba
mov eax, dword [ebp + 0x84]
or al, 2
mov dword [ebp + 0x84], eax
jmp 0x403e22
cmp al, 0x53
jne 0x403dce
mov eax, dword [ebp + 0x84]
or al, 4
mov dword [ebp + 0x84], eax
jmp 0x403e22
cmp al, 0x54
jne 0x403df0
mov al, byte [esi + ebx + 2]
cmp al, 0x30
jne 0x403de2
mov dword [esp + 0x14], 1
cmp al, 0x31
jne 0x403e22
mov dword [esp + 0x10], 1
jmp 0x403e22
cmp al, 0x50
jne 0x403e1e
mov al, byte [esi + ebx + 2]
cmp al, 0x30
jne 0x403e04
mov dword [esp + 0x20], 1
cmp al, 0x31
jne 0x403e10
mov dword [esp + 0x1c], 1
cmp al, 0x32
jne 0x403e22
mov dword [esp + 0x18], 1
jmp 0x403e22
cmp al, 0x3f
je 0x403e82
inc esi
cmp esi, edi
jl 0x403d69
mov edx, dword [esp + 0x10]
mov eax, dword [ebp + 0x84]
test al, 1
je 0x403e47
test al, 2
je 0x403e47
mov dword [ebp + 0x84], 0
mov ecx, dword [esp + 0x14]
lea eax, [edx + ecx]
cmp eax, 2
je 0x403e82
test eax, eax
mov ecx, 0x800
jne 0x403e62
or dword [ebp + 0x84], ecx
test edx, edx
je 0x403e6c
or dword [ebp + 0x84], ecx
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
lea edx, [ecx + eax]
add edx, edi
cmp edx, 1
jle 0x403ed4
mov eax, dword [0x430458]
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x8c]
mov dword [esp + 0x30], 0
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
lea edx, [ecx*8 + 0xbd4]
lea ecx, [esp + 0x38]
push edx
call fcn.0041eec5
mov eax, dword [esp + 0x38]
push 0
push 0
push eax
call fcn.004217f0
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], 0xffffffff
call fcn.0041a7ec
jmp 0x403f22
test eax, eax
je 0x403ee7
mov eax, dword [ebp + 0x84]
or ah, 1
mov dword [ebp + 0x84], eax
test ecx, ecx
je 0x403efa
mov eax, dword [ebp + 0x84]
or ah, 4
mov dword [ebp + 0x84], eax
test byte [ebp + 0x84], 1
je 0x403f22
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x403f22
push 0
push 0
mov ecx, ebp
call fcn.00402920
test eax, eax
je 0x403f22
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 4
Function at 0x4048f0
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x425e7f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x434310
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
call fcn.0041a85a
mov ebp, dword [esp + 0x34]
mov esi, 1
push ebx
push ebp
mov dword [esp + 0x30], esi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
cmp edi, ebx
jne 0x404978
mov edi, dword [esp + 0x30]
lea eax, [esp + 0x10]
push eax
mov ecx, edi
call fcn.0041a561
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], bl
call fcn.0041a7ec
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
push edi
call fcn.0041ac14
add esp, 4
mov esi, eax
push esi
push edi
push ebx
push ebp
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x4049a0
push esi
call fcn.0041ac3d
add esp, 4
lea ecx, [esp + 0x10]
push ecx
jmp 0x404a0c
lea edx, [esp + 0x1c]
lea eax, [esp + 0x18]
push edx
push eax
push 0x4301e8
push esi
call sub.VERSION.dll_VerQueryValueA
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0xc]
mov edx, eax
and edx, 0xffff
shr eax, 0x10
push edx
push eax
lea eax, [esp + 0x18]
push str._d._03d
push eax
call fcn.00419cf7
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0040cf6a
add esp, 0x14
cmp eax, ebx
jle 0x4049f0
cmp eax, 0xc8
jle 0x4049fe
push str.0.99
lea ecx, [esp + 0x14]
call fcn.0041a975
push esi
call fcn.0041ac3d
add esp, 4
lea edx, [esp + 0x10]
push edx
mov esi, dword [esp + 0x34]
mov ecx, esi
call fcn.0041a561
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], 1
mov byte [esp + 0x28], bl
call fcn.0041a7ec
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret

Function at 0x40c9c8
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40c9f3
test byte [esp + 8], 0x80
je 0x40c9e2
and al, 0xfe
jmp 0x40c9e4
or al, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x40ca04
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040efb0
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x40cd65
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40cd85
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040efb0
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x40cda8
test byte [esp + 8], 2
je 0x40cda8
call fcn.0040f023
mov dword [eax], 0xd
call fcn.0040f02c
mov dword [eax], 5
jmp 0x40cd81
xor eax, eax
ret
Function at 0x419290
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.0040ceb0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41935b
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 0x41935b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41930e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x419319
or bh, 8
and edi, 0x8000000
je 0x419334
mov eax, dword [0x437bbc]
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 0x41935b
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 0x419730
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 0x41975b
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 0x41977f
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 0x41979a
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 0x41e50a
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 0x41e54c
call fcn.00422d17
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41e54c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41e543
xor eax, eax
jmp 0x41e554
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041e55a
pop edi
pop esi
pop ebx
ret 4

Function at 0x41f444
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x41f474
push edi
call ebx
push eax
call fcn.0042031f
push esi
mov esi, dword [ebp + 0xc]
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
je 0x41f49e
test byte [ebp - 4], 1
je 0x41f49e
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x41f49e
push edi
call ebx
push eax
call fcn.0042031f
cmp dword [esi + 4], edi
lea eax, [esi + 4]
je 0x41f544
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.0041f391
cmp dword [esi + 8], edi
lea eax, [esi + 8]
pop ecx
pop ecx
je 0x41f4d0
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.0041f391
pop ecx
lea eax, [ebp - 0x14]
pop ecx
mov dword [ebp - 8], eax
cmp dword [esi], edi
je 0x41f4e6
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.0041f391
pop ecx
lea eax, [ebp - 0x1c]
pop ecx
mov dword [ebp - 0xc], eax
push edi
push 0x80
push 3
push edi
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41f510
push 0
call ebx
push eax
call fcn.0042031f
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x41f52e
push eax
call ebx
push eax
call fcn.0042031f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x41f542
push eax
call ebx
push eax
call fcn.0042031f
xor edi, edi
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
pop esi
je 0x41f56b
test byte [ebp - 4], 1
jne 0x41f56b
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x41f56b
push edi
call ebx
push eax
call fcn.0042031f
pop edi
pop ebx
leave
ret 8
Function at 0x423540
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 0x42356e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42358c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004234a6
jmp 0x42358c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42358c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004234a6
test edi, edi
mov eax, edi
jne 0x423576
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x456259
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf8
mov eax, dword [ebp + 0x14]
cmp eax, 0x40
jle 0x456282
lea ecx, [ebp - 0x78]
push ecx
push eax
push dword [ebp + 0x10]
call fcn.00456218
push 0x10
lea ecx, [ebp - 0x78]
pop eax
mov dword [ebp + 0x14], eax
jmp 0x456285
mov ecx, dword [ebp + 0x10]
push ebx
push esi
xor esi, esi
push edi
test eax, eax
jle 0x4562be
lea edi, [ebp - 0xb8]
lea edx, [ebp - 0xf8]
sub edi, ecx
sub edx, ecx
mov dword [ebp + 0x10], eax
mov esi, eax
mov al, byte [ecx]
mov bl, al
xor al, 0x5c
xor bl, 0x36
mov byte [edx + ecx], al
mov byte [edi + ecx], bl
inc ecx
dec dword [ebp + 0x10]
jne 0x4562a3
cmp dword [ebp + 0x14], 0x40
jge 0x4562fd
push 0x40
lea edi, [ebp + esi - 0xf8]
pop ebx
lea edx, [ebp + esi - 0xb8]
sub ebx, esi
mov eax, 0x5c5c5c5c
mov ecx, ebx
mov esi, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, ebx
mov edi, edx
mov edx, ecx
mov eax, 0x36363636
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [ebp - 0x58]
push eax
call fcn.004563c1
xor esi, esi
lea eax, [ebp - 0xb8]
push esi
push 0x40
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004563eb
cmp dword [ebp + 0x18], esi
je 0x456331
lea eax, [ebp - 0x50]
push 0x10
push eax
push dword [ebp + 0x18]
call fcn.00456e70
add esp, 0xc
push esi
lea eax, [ebp - 0x58]
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call fcn.004563eb
lea eax, [ebp - 0x58]
push eax
call fcn.004564a1
push 0x10
lea eax, [ebp - 0x50]
pop edi
push edi
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.00456e70
add esp, 0xc
lea eax, [ebp - 0x58]
push eax
call fcn.004563c1
push esi
lea eax, [ebp - 0xf8]
push 0x40
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004563eb
cmp dword [ebp + 0x1c], esi
je 0x45638f
lea eax, [ebp - 0x50]
push edi
push eax
push dword [ebp + 0x1c]
call fcn.00456e70
add esp, 0xc
push esi
lea eax, [ebp - 0x68]
push edi
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004563eb
lea eax, [ebp - 0x58]
push eax
call fcn.004564a1
lea eax, [ebp - 0x50]
push edi
push eax
push dword [ebp + 0x20]
call fcn.00456e70
mov eax, dword [ebp + 0x20]
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret 0x1c
Function at 0x4563c1
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 4], 0
and dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
ret 4