joyce8/EMBER2024-capa huggingface dataset:
Function at 0x73f5e27e
Capabilities:
Get number of processors

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x73f644fd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x18], esi
mov dword [esi], 0x73f14024
mov dword [esi + 0x30], 0x73f30848
mov ecx, dword [esi + 0x90]
xor edi, edi
cmp ecx, edi
je 0x73f5e2cb
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x90], edi
mov dword [ebp - 0x14], esi
mov ecx, dword [0x73f66010]
add ecx, 0x64
mov edx, dword [ecx]
lea eax, [ebp - 0x14]
push eax
call dword [edx + 0x18]
mov dword [ebp - 4], edi
mov eax, dword [esi + 0x78]
cmp eax, edi
je 0x73f5e2f3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi + 0x78], edi
mov eax, dword [esi + 0x7c]
cmp eax, edi
je 0x73f5e303
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [esi + 0x7c], edi
mov eax, dword [esi + 0xa8]
cmp eax, edi
je 0x73f5e32b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi + 0xa8], edi
jmp 0x73f5e32b
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi + 0x94]
cmp eax, edi
je 0x73f5e348
push eax
call fcn.73f11f05
mov dword [esi + 0x94], edi
mov eax, dword [esi + 0x98]
cmp eax, edi
je 0x73f5e35e
push eax
call fcn.73f11f05
mov dword [esi + 0x98], edi
mov eax, dword [esi + 0xa0]
cmp eax, edi
je 0x73f5e374
push eax
call fcn.73f11f05
mov dword [esi + 0xa0], edi
mov eax, dword [esi + 0x9c]
cmp eax, edi
je 0x73f5e38a
push eax
call fcn.73f11f05
mov dword [esi + 0x9c], edi
mov eax, dword [esi + 0x34]
cmp eax, edi
je 0x73f5e39e
lea ecx, [eax + 8]
mov edx, dword [ecx]
push 1
call dword [edx + 0xc]
mov dword [esi + 0x34], edi
mov eax, dword [esi + 0x38]
cmp eax, edi
je 0x73f5e3b2
lea ecx, [eax + 4]
mov eax, dword [ecx]
push 1
call dword [eax + 0xc]
mov dword [esi + 0x38], edi
mov eax, dword [esi + 0x3c]
cmp eax, edi
je 0x73f5e3c6
lea ecx, [eax + 4]
mov edx, dword [ecx]
push 1
call dword [edx + 0xc]
mov dword [esi + 0x3c], edi
lea ebx, [esi + 0x80]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x24]
cmp eax, edi
je 0x73f5e3e7
mov ecx, dword [eax + 0xc]
mov dword [ecx + 0xb4], edi
mov eax, dword [eax + 8]
cmp eax, edi
jne 0x73f5e3d7
lea edx, [esi + 0xb4]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, ebx
call fcn.73f5de69
mov ecx, esi
call fcn.73f18cf1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401130
Capabilities:
Read file via mapping

Disassembly:
push 0xffffffffffffffff
push 0x423af8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
push edi
mov esi, ecx
call fcn.004204a8
mov edi, dword [eax + 0x10]
push str.CInstanceChecker_MMF_
lea ecx, [esp + 0xc]
call fcn.004187d9
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0
call fcn.00418a6d
mov eax, dword [esp + 8]
push eax
push 0
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
test eax, eax
mov dword [esi + 0xc], eax
jne 0x4011d5
mov ecx, dword [esp + 8]
push ecx
push 4
push eax
push 4
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push 4
push 0
push 0
push 6
push eax
mov dword [0x431128], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
lea edx, [esi + 4]
push 1
push edx
lea ecx, [esp + 0x14]
mov edi, eax
call fcn.00402d00
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea ecx, [esp + 0xc]
call fcn.00402d3c
mov ecx, dword [esi + 0xc]
xor eax, eax
test ecx, ecx
setne al
lea ecx, [esp + 8]
mov esi, eax
mov dword [esp + 0x20], 0xffffffff
call fcn.0041876b
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret

Function at 0x401210
Capabilities:
Read file via mapping

Disassembly:
push 0xffffffffffffffff
push 0x423b20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebp
push esi
push edi
mov esi, ecx
push 4
push 0
mov eax, dword [esi + 0xc]
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
lea ecx, [esi + 4]
push 1
push ecx
lea ecx, [esp + 0x18]
mov ebp, eax
call fcn.00402d00
mov edx, dword [0x42f214]
mov dword [esp + 0x24], 0
mov dword [esp + 0xc], edx
push 0xe000
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 1
call fcn.00418b8e
mov eax, dword [esp + 0xc]
push eax
push str.32770
call dword [sym.imp.USER32.dll_FindWindowA]
mov edi, eax
test edi, edi
je 0x40129b
push 9
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
mov dword [esi + 0xc], 0
mov byte [esp + 0x24], 0
call fcn.0041876b
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.00402d3c
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret

Function at 0x401de0
Capabilities:
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
ret 4
Function at 0x401e00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x423c80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
call fcn.00417ce3
mov ebp, dword [esp + 0x34]
lea ecx, [esp + 0xc]
push ebp
mov dword [esp + 0x30], 0
call fcn.004187d9
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x34], 1
call fcn.00401c40
mov eax, dword [esp + 0x18]
xor edi, edi
test eax, eax
jle 0x401e74
mov edx, dword [esp + 0x14]
mov ecx, esi
mov eax, dword [edx + edi*4]
push eax
call fcn.00401de0
mov eax, dword [esp + 0x18]
inc edi
cmp edi, eax
jl 0x401e5c
push ebp
mov ecx, esi
call fcn.00401de0
push ebp
mov ecx, esi
call fcn.00401ec0
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 0
call fcn.0041876b
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00417d16
mov ecx, dword [esp + 0x24]
pop edi
pop esi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret 4

Function at 0x401ec0
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x423ca6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x348
mov dword [esp], ecx
push ebp
lea ecx, [esp + 0x10]
call fcn.00403b4a
mov ebp, dword [esp + 0x35c]
lea eax, [esp + 0xf4]
push ebp
push str._s.
push eax
mov dword [esp + 0x360], 0
call fcn.0040b31a
add esp, 0xc
lea ecx, [esp + 0xf4]
push 0
push ecx
lea ecx, [esp + 0x18]
call fcn.00403c0d
test eax, eax
je 0x40200d
push esi
push edi
lea ecx, [esp + 0x18]
call fcn.00403e2d
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], eax
call fcn.00403df4
test eax, eax
jne 0x401fff
lea edx, [esp + 0x10]
lea ecx, [esp + 0x18]
push edx
call fcn.00404025
push 0xc8
mov ecx, eax
mov byte [esp + 0x360], 1
call fcn.00418ac1
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x34]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x35c], 0
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.0041876b
mov edx, dword [esp + 0x18]
push 0x10
lea ecx, [esp + 0x1c]
call dword [edx + 0x38]
test eax, eax
lea eax, [esp + 0x34]
push eax
push ebp
push str._s_s
je 0x401fe1
lea ecx, [esp + 0x1d0]
push ecx
call fcn.0040b31a
mov ecx, dword [esp + 0x1c]
add esp, 0x10
lea edx, [esp + 0x1c4]
push edx
call fcn.00401ec0
jmp 0x401fff
lea ecx, [esp + 0x298]
push ecx
call fcn.0040b31a
add esp, 0x10
lea edx, [esp + 0x28c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x401f2e
pop edi
pop esi
lea ecx, [esp + 0x10]
call fcn.00403bc3
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
pop ebp
mov dword [esp + 0x350], 0xffffffff
lea ecx, [esp + 0xc]
jne 0x40204f
call fcn.00403b87
xor eax, eax
mov ecx, dword [esp + 0x348]
mov dword fs:[0], ecx
add esp, 0x354
ret 4
call fcn.00403b87
mov ecx, dword [esp + 0x348]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x354
ret 4
Function at 0x4022a0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x423cf8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [esp + 0x24]
push esi
push eax
lea ecx, [esp + 0x2c]
call fcn.004184e0
mov ecx, dword [0x42f214]
xor esi, esi
mov dword [esp + 0x20], esi
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x28]
mov byte [esp + 0x20], 1
cmp dword [eax - 8], esi
jle 0x402352
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp byte [esi + eax], 0x5c
jne 0x402349
lea edx, [esi + 1]
lea eax, [esp + 0xc]
push edx
push 0
push eax
lea ecx, [esp + 0x38]
call fcn.00417895
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 2
call fcn.004188a4
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 1
call fcn.0041876b
mov eax, dword [esp + 8]
xor ecx, ecx
mov dword [esp + 0x10], ecx
lea edx, [esp + 0x10]
mov dword [esp + 0x14], ecx
push edx
push eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], 0xc
call edi
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax - 8]
inc esi
cmp esi, ecx
jl 0x4022ec
pop edi
lea ecx, [esp + 4]
mov byte [esp + 0x20], 0
call fcn.0041876b
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], 0xffffffff
call fcn.0041876b
mov ecx, dword [esp + 0x18]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 4

Function at 0x402450
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x9c
push eax
call esi
test eax, eax
jne 0x402495
lea ecx, [esp + 8]
mov dword [esp + 8], 0x94
push ecx
call esi
test eax, eax
je 0x402515
mov eax, dword [esp + 0x18]
sub eax, 0
je 0x402515
dec eax
je 0x4024e0
dec eax
jne 0x402515
mov eax, dword [esp + 0xc]
cmp eax, 4
jbe 0x402515
cmp eax, 5
jne 0x402515
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4024c8
pop edi
mov eax, 2
pop esi
add esp, 0x9c
ret
cmp eax, 1
je 0x4024d2
cmp eax, 2
jne 0x402515
pop edi
mov eax, 4
pop esi
add esp, 0x9c
ret
cmp dword [esp + 0xc], 4
jne 0x402515
mov eax, dword [esp + 0x10]
test eax, eax
je 0x402515
cmp eax, 0xa
jne 0x402502
pop edi
mov eax, 1
pop esi
add esp, 0x9c
ret
cmp eax, 0x5a
jne 0x402515
pop edi
mov eax, 3
pop esi
add esp, 0x9c
ret
pop edi
xor eax, eax
pop esi
add esp, 0x9c
ret

Function at 0x402520
Capabilities:
Copy file
Set file attributes

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
push edi
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x80
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, edi
pop edi
pop esi
ret 0xc
Function at 0x40efed
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4303e0
cmp edx, dword [eax]
je 0x40f00f
add eax, 8
inc ecx
cmp eax, 0x430470
jl 0x40f000
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4303e0]
jne 0x40f13d
mov eax, dword [0x433254]
cmp eax, 1
je 0x40f117
test eax, eax
jne 0x40f040
cmp dword [0x42ffb4], 1
je 0x40f117
cmp edx, 0xfc
je 0x40f13d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40f077
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00410120
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00410210
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40f0ba
lea eax, [ebp - 0x1a4]
push eax
call fcn.00410210
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x427f38
push edi
call fcn.00411cb0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00410120
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00410130
lea eax, [ebp - 0xa0]
push 0x427f18
push eax
call fcn.00410130
push dword [esi + 0x4303e4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00410130
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00411c20
add esp, 0x2c
pop edi
jmp 0x40f13d
lea eax, [ebp + 8]
lea esi, [esi + 0x4303e4]
push 0
push eax
push dword [esi]
call fcn.00410210
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 0x417090
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.0040b370
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41715b
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 0x41715b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41710e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x417119
or bh, 8
and edi, 0x8000000
je 0x417134
mov eax, dword [0x4349fc]
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 0x41715b
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 0x417530
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 0x41755b
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 0x41757f
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 0x41759a
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 0x41c50b
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 0x41c54d
call fcn.004204a8
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41c54d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41c544
xor eax, eax
jmp 0x41c555
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041c55b
pop edi
pop esi
pop ebx
ret 4

Function at 0x4214b0
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 0x4214de
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4214fc
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00421416
jmp 0x4214fc
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4214fc
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00421416
test edi, edi
mov eax, edi
jne 0x4214e6
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401154
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegDisablePredefinedCacheEx]
xor esi, esi
call edi
add byte [esi + 0x4228d0], 0x58
call edi
add byte [esi + 0x4228d0], 0xc5
call edi
xor byte [esi + 0x4228d0], 0xaa
call edi
add byte [esi + 0x4228d0], 3
call edi
add byte [esi + 0x4228d0], 0x34
call edi
add byte [esi + 0x4228d0], 0xa3
call edi
add byte [esi + 0x4228d0], 0xfb
call edi
xor byte [esi + 0x4228d0], 0x29
call edi
add byte [esi + 0x4228d0], 0x9b
call edi
add byte [esi + 0x4228d0], 0x73
call edi
call edi
add byte [esi + 0x4228d0], 0x86
call edi
add byte [esi + 0x4228d0], 0x75
call edi
add byte [esi + 0x4228d0], 0xf8
call edi
add byte [esi + 0x4228d0], 0x95
call edi
add byte [esi + 0x4228d0], 0x3f
call edi
xor byte [esi + 0x4228d0], 0x14
call edi
add byte [esi + 0x4228d0], 0x5b
call edi
add byte [esi + 0x4228d0], 0xbe
call edi
add byte [esi + 0x4228d0], 0xe5
call edi
add byte [esi + 0x4228d0], 0x2e
call edi
add byte [esi + 0x4228d0], 0xc7
call edi
add byte [esi + 0x4228d0], 0x42
call edi
add byte [esi + 0x4228d0], 0xc1
call edi
add byte [esi + 0x4228d0], 0x9a
call edi
xor byte [esi + 0x4228d0], 0x9c
call edi
add byte [esi + 0x4228d0], 0x44
call edi
add byte [esi + 0x4228d0], 0x78
call edi
add byte [esi + 0x4228d0], 0xad
call edi
add byte [esi + 0x4228d0], 0xec
call edi
add byte [esi + 0x4228d0], 0x84
call edi
xor byte [esi + 0x4228d0], 0x89
call edi
xor byte [esi + 0x4228d0], 0xb6
call edi
xor byte [esi + 0x4228d0], 0xa3
call edi
add byte [esi + 0x4228d0], 0x16
call edi
add byte [esi + 0x4228d0], 0x7a
call edi
xor byte [esi + 0x4228d0], 0x44
call edi
add byte [esi + 0x4228d0], 0x87
call edi
add byte [esi + 0x4228d0], 2
call edi
xor byte [esi + 0x4228d0], 0xc9
call edi
add byte [esi + 0x4228d0], 0xe9
call edi
xor byte [esi + 0x4228d0], 0x47
call edi
add byte [esi + 0x4228d0], 0xf6
call edi
xor byte [esi + 0x4228d0], 0xb2
call edi
add byte [esi + 0x4228d0], 0x9e
call edi
xor byte [esi + 0x4228d0], 0x5c
call edi
add byte [esi + 0x4228d0], 0xfa
call edi
add byte [esi + 0x4228d0], 0xfc
call edi
add byte [esi + 0x4228d0], 0x86
inc esi
cmp esi, 0x2b800
jb 0x40115e
pop edi
pop esi
ret
Function at 0x407505
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x407544
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x407544
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x407544
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x407544
cmp dword [ecx + 0x74], 0xe
jbe 0x407544
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40d5db
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41c2c8
push 0x41c2c0
push str.FlsAlloc
push 0x1e
call fcn.0040d49c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d60f
push dword [ebp + 8]
mov ecx, esi
call dword [0x41a120]
call esi
jmp 0x40d615
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40d659
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41c2d8
push 0x41c2d0
push str.FlsGetValue
push 0x20
call fcn.0040d49c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d690
push dword [ebp + 8]
mov ecx, esi
call dword [0x41a120]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]