joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412e4c
Capabilities:
Create process on windows
Self delete

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x412e54
push ecx
push ebx
mov byte [ebp - 1], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x412fea
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x20]
mov al, 1
call fcn.0040c404
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 8]
mov ecx, 0x413000
call fcn.00404478
lea eax, [ebp - 0x18]
mov edx, 0x413018
call fcn.00404220
xor ecx, ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.00412250
lea eax, [ebp - 0x1c]
mov edx, 0x413028
call fcn.00404220
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00404220
lea eax, [ebp - 0x10]
call fcn.0040c280
lea edx, [ebp - 0x14]
xor eax, eax
call fcn.0040c290
cmp byte [ebp - 1], 0
je 0x412f1e
lea eax, [ebp - 0x1c]
call fcn.00404188
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.00407394
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0xc]
call fcn.00404220
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x10]
call fcn.00407394
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0x10]
call fcn.00404220
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
call fcn.00407394
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x14]
call fcn.00404220
lea eax, [ebp - 0x18]
mov edx, 0x413034
call fcn.00404220
push dword [ebp - 0x18]
push 0x413048
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
push dword [ebp - 0x1c]
push 0x413058
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004044ec
push dword [ebp - 0x18]
push 0x413064
push 0x413058
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.004044ec
test bl, bl
je 0x412f8f
push dword [ebp - 0x18]
push 0x413088
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
push 0x413058
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004044ec
push dword [ebp - 0x18]
push 0x413048
push dword [ebp - 0x1c]
push dword [ebp - 0xc]
push dword [ebp - 0x1c]
push 0x413058
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004044ec
xor ecx, ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.00412250
push 0
mov eax, dword [ebp - 8]
call fcn.0040462c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412ff1
lea eax, [ebp - 0x2c]
mov edx, 0xa
call fcn.004041ac
ret

Function at 0x415f68
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov esi, ecx
mov edi, edx
mov dword [esp], eax
xor ebp, ebp
test esi, esi
jbe 0x415feb
mov ebx, 1
mov edx, 0x10000
mov eax, esi
call fcn.0040b360
mov dword [esp + 4], eax
push 0
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, edi
call fcn.00404684
lea eax, [eax + ebx - 1]
push eax
mov eax, dword [esp + 0x10]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
jne 0x415fba
or ebp, 0xffffffff
add ebx, dword [esp + 8]
sub esi, dword [esp + 8]
call fcn.0040b92c
cmp ebp, 0xffffffff
je 0x415fd7
mov eax, dword [edi]
call fcn.0040442c
cmp ebx, eax
jle 0x415f81
mov eax, dword [edi]
call fcn.0040442c
cmp ebx, eax
jle 0x415feb
mov eax, dword [edi]
call fcn.0040442c
mov ebp, eax
mov eax, ebp
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x416848
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x416a25
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x420bc8], 0
jne 0x4169f3
lea eax, [ebp - 0x50]
xor ecx, ecx
mov edx, 0x38
call fcn.00402d2c
mov bl, 0x43
lea esi, [ebp - 0x50]
lea eax, [ebp - 0x54]
mov edx, ebx
call fcn.00404354
mov edx, dword [ebp - 0x54]
lea eax, [ebp - 0x18]
mov ecx, 0x416a3c
call fcn.00404478
mov eax, dword [ebp - 0x18]
call fcn.0040462c
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
jne 0x41695c
lea eax, [ebp - 0x10]
mov ecx, 0x416a48
mov edx, dword [ebp - 0x18]
call fcn.00404478
mov eax, dword [ebp - 0x10]
call fcn.00406ed8
test al, al
je 0x416914
push dword [ebp - 0x10]
push 0x416a58
push 0
push 0x2710
push 0
push 0x186a0
lea eax, [ebp - 0x58]
call fcn.0040b370
push dword [ebp - 0x58]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.004044ec
mov eax, dword [ebp - 0x10]
call fcn.00406efc
lea eax, [ebp - 0x14]
mov ecx, 0x416a68
mov edx, dword [ebp - 0x10]
call fcn.00404478
xor ecx, ecx
mov edx, 0x416a7c
mov eax, dword [ebp - 0x14]
call fcn.00412250
mov eax, dword [ebp - 0x14]
call fcn.00406ec8
test al, al
je 0x416952
mov eax, dword [ebp - 0x10]
call fcn.00412480
fstp qword [esi]
wait
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.00412c34
inc ebx
add esi, 8
cmp bl, 0x46
jne 0x416899
lea edx, [ebp - 0x60]
mov al, 1
call fcn.0040c404
mov eax, dword [ebp - 0x60]
lea edx, [ebp - 0x5c]
call fcn.00406b28
mov eax, dword [ebp - 0x5c]
mov dl, byte [eax]
mov byte [ebp - 9], dl
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov bl, 0x43
lea ecx, [ebp - 0x50]
fld qword [ecx]
fcomp qword [ebp - 8]
fnstsw ax
sahf
jbe 0x4169ab
mov eax, dword [ecx]
mov dword [ebp - 8], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 4], eax
mov byte [ebp - 9], bl
inc ebx
add ecx, 8
cmp bl, 0x46
jne 0x416993
cmp dl, byte [ebp - 9]
je 0x4169f3
lea eax, [ebp - 0x64]
mov dl, byte [ebp - 9]
call fcn.00404354
mov edx, dword [ebp - 0x64]
mov eax, 0x420bc8
mov ecx, 0x416a88
call fcn.00404478
mov eax, dword [0x420bc8]
call fcn.00406ed8
test al, al
je 0x4169f3
mov eax, 0x420bc8
mov edx, 0x416a58
call fcn.00404434
cmp dword [0x420bc8], 0
setne bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x416a2c
lea eax, [ebp - 0x64]
mov edx, 5
call fcn.004041ac
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.004041ac
ret
Function at 0x41a30c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040461c
xor eax, eax
push ebp
push 0x41a38d
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call fcn.0040c1cc
test al, al
je 0x41a348
mov dl, byte [ebp - 5]
mov eax, dword [ebp - 4]
call fcn.00419a1c
jmp 0x41a353
mov dl, byte [ebp - 5]
mov eax, dword [ebp - 4]
call fcn.00419780
test eax, eax
je 0x41a377
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
mov esi, eax
push 0
push esi
call sub.kernel32.dll_TerminateProcess
cmp eax, 1
sbb ebx, ebx
inc ebx
push esi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a394
lea eax, [ebp - 4]
call fcn.00404188
ret
Function at 0x41c6f4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
xor eax, eax
push ebp
push 0x41c79a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x420c24], 0
jg 0x41c77f
lea eax, [ebp - 0xc]
call fcn.00417830
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 0x41c7b0
call fcn.00404478
lea edx, [ebp - 0x14]
xor eax, eax
call fcn.00402820
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.00407250
push dword [ebp - 0x10]
lea edx, [ebp - 0x18]
mov eax, dword [0x420ce4]
mov eax, dword [eax]
call fcn.00411e94
push dword [ebp - 0x18]
push dword [ebp - 4]
lea eax, [ebp - 8]
mov edx, 3
call fcn.004044ec
push 0
mov eax, dword [ebp - 8]
call fcn.0040462c
push eax
call sub.kernel32.dll_WinExec
push 0
call sub.user32.dll_PostQuitMessage
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41c7a1
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004041ac
ret
Function at 0x41c7d0
Capabilities:
Hide graphical window
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x41c7d8
push ebx
xor eax, eax
push ebp
push 0x41ca3e
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00408528
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x10]
mov eax, 0x41ca54
call fcn.0040914c
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0xc]
mov edx, 0x41ca74
call fcn.00404478
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetCurrentProcessId
xor edx, edx
push edx
push eax
mov eax, dword [0x420cb0]
call fcn.00404d84
pop edx
call fcn.00404848
call fcn.004030b0
call fcn.00418530
test al, al
je 0x41ca23
mov al, 1
call fcn.0041a474
mov byte [ebp - 1], 0
mov eax, 1
call fcn.004185d8
mov edx, 1
mov eax, 0x28
call fcn.0041a3e4
lea edx, [ebp - 0x14]
mov eax, dword [0x420ce4]
mov eax, dword [eax]
call fcn.00411e7c
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
call fcn.00417a84
mov edx, dword [ebp - 0x18]
mov cl, 1
pop eax
call fcn.0041b7dc
mov ebx, eax
mov edx, 2
mov eax, 0x28
call fcn.0041a3e4
test bl, bl
je 0x41c8bd
push 2
lea eax, [ebp - 0x1c]
call fcn.00417a84
mov eax, dword [ebp - 0x1c]
call fcn.0040462c
push eax
call sub.kernel32.dll_SetFileAttributesA
call fcn.00415ec4
push edx
push eax
call fcn.00417578
test bl, bl
je 0x41c9b4
call fcn.00416dbc
test eax, eax
jle 0x41c9b4
call fcn.004182ac
mov ebx, eax
call fcn.00416e44
cmp ebx, eax
jne 0x41c904
call fcn.0041c6a8
test al, al
jne 0x41c904
cmp dword [0x420c2c], 1
jne 0x41c9b4
call fcn.0041822c
mov ebx, eax
call fcn.00416dbc
cmp ebx, eax
jle 0x41c9b4
call fcn.0041c5ec
test al, al
je 0x41c9b4
lea eax, [ebp - 0x20]
call fcn.00417b70
mov eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
call fcn.00417aec
mov eax, dword [ebp - 0x24]
pop edx
call fcn.0041b6cc
test al, al
je 0x41c9b4
call sub.kernel32.dll_GetCurrentProcessId
xor edx, edx
push edx
push eax
mov eax, dword [0x420cb0]
call fcn.00404d84
mov edx, 0x41ca84
call fcn.00404848
call fcn.004030b0
mov byte [ebp - 1], 1
call fcn.00415ec4
push edx
push eax
call fcn.00417694
call fcn.004182ac
call fcn.004177a8
call fcn.0041bcdc
mov ebx, eax
test bl, bl
je 0x41c992
call fcn.0041c6f4
call sub.kernel32.dll_GetCurrentProcessId
xor edx, edx
push edx
push eax
mov eax, dword [0x420cb0]
call fcn.00404d84
mov edx, 0x41caa8
call fcn.00404848
call fcn.004030b0
cmp dword [0x420c2c], 1
jne 0x41ca13
mov eax, 0x3e8
call fcn.0040b958
push 0
mov eax, dword [0x4218bc]
push eax
call sub.user32.dll_ShowWindow
lea ecx, [ebp - 8]
xor edx, edx
mov eax, 0x41cacc
call fcn.00417454
cmp byte [ebp - 1], 0
jne 0x41ca13
lea eax, [ebp - 0x28]
call fcn.004171c0
mov eax, dword [ebp - 0x28]
push eax
call fcn.004173dc
push eax
lea eax, [ebp - 0x2c]
call fcn.00417360
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 8]
mov eax, 1
call fcn.0040bc4c
lea eax, [ebp - 0x30]
call fcn.00417a84
mov eax, dword [ebp - 0x30]
call fcn.00407130
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41ca45
lea eax, [ebp - 0x30]
mov edx, 0xb
call fcn.004041ac
ret
Function at 0x41d0e8
Capabilities:
Get graphical window text

Disassembly:
push ebx
mov ebx, eax
push 0x47
push 0x14
push 0x190
push 0x12
push ebx
push 0
mov eax, dword [0x421660]
push eax
push 0
mov edx, 0x41d194
mov eax, 0x41d198
mov ecx, 0x50000000
call fcn.00405d14
mov dword [0x4218c4], eax
push 0x50000000
push 0x46
push 0x26
push 0xed
push 0xd
push ebx
push 0
mov eax, dword [0x421660]
push eax
push 0
mov edx, 0x41d1a0
xor ecx, ecx
xor eax, eax
call fcn.00405cbc
mov dword [0x4218c0], eax
push 0
push 0x3e8
push 1
push ebx
call sub.user32.dll_SetTimer
mov dword [0x4218c8], eax
push 0x41d1b4
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xd
call sub.gdi32.dll_CreateFontA
push 0
push eax
push 0x30
mov eax, dword [0x4218c4]
push eax
call sub.user32.dll_SendMessageA
pop ebx
ret

Function at 0x41d314
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb8
push 0xffffffffffffffff
push 0xffffffffffffffff
mov eax, 0x41d47c
call fcn.0040c87c
test eax, eax
jl 0x41d334
neg eax
mov dword [0x420c30], eax
call sub.comctl32.dll_InitCommonControls
lea eax, [esp + 0x20]
xor ecx, ecx
mov edx, 0x28
call fcn.00402d2c
mov dword [esp + 0x24], 0x41d22c
mov eax, dword [0x421660]
mov dword [esp + 0x30], eax
mov eax, dword [0x420c14]
call fcn.0040462c
mov dword [esp + 0x44], eax
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [esp + 0x38], eax
push 0x41d488
mov eax, dword [0x421660]
push eax
call sub.user32.dll_LoadIconA
mov dword [esp + 0x34], eax
mov dword [esp + 0x20], 8
lea eax, [esp + 0x20]
push eax
call sub.user32.dll_RegisterClassA
mov ebx, 0x154
mov esi, 0x6e
push 0
call sub.user32.dll_GetSystemMetrics
mov edi, eax
sub edi, ebx
sar edi, 1
jns 0x41d3ba
adc edi, 0
push 1
call sub.user32.dll_GetSystemMetrics
mov ebp, eax
sub ebp, esi
sar ebp, 1
jns 0x41d3cc
adc ebp, 0
mov dword [esp], 0x2cc0000
mov eax, dword [esp]
push eax
push edi
push ebp
push ebx
push esi
push 0
push 0
mov eax, dword [0x421660]
push eax
push 0
mov eax, dword [0x420c14]
call fcn.0040462c
mov edx, eax
mov ecx, 0x41d494
xor eax, eax
call fcn.00405cbc
mov dword [0x4218bc], eax
cmp dword [0x4218bc], 0
je 0x41d444
push 0
mov eax, dword [0x4218bc]
push eax
call sub.user32.dll_ShowWindow
jmp 0x41d430
lea eax, [esp + 4]
push eax
call sub.user32.dll_TranslateMessage
lea eax, [esp + 4]
push eax
call sub.user32.dll_DispatchMessageA
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
call sub.user32.dll_GetMessageA
test eax, eax
jne 0x41d41c
push 1
mov eax, dword [0x4218bc]
push eax
call sub.user32.dll_KillTimer
mov al, 1
call fcn.00418a98
call fcn.00418a68
xor edx, edx
mov eax, 0x2b
call fcn.0041a3e4
add esp, 0x48
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x41d694
Capabilities:
Copy file
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x41d69c
push ecx
push ebx
xor eax, eax
push ebp
push 0x41d8b6
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x10]
mov eax, 0x41d8cc
call fcn.0040c69c
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetCurrentProcessId
xor edx, edx
push edx
push eax
mov eax, dword [0x420cb0]
call fcn.00404d84
mov edx, 0x41d8dc
call fcn.00404848
pop edx
call fcn.00404848
call fcn.004030b0
cmp byte [0x420c18], 0
je 0x41d89b
call fcn.0041d4b0
test al, al
je 0x41d722
lea edx, [ebp - 0x14]
mov eax, 0x41d8cc
call fcn.0040c69c
mov eax, dword [ebp - 0x14]
mov edx, 0x41d8fc
call fcn.00404578
jne 0x41d89b
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00402820
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0xc]
call fcn.004072d8
lea edx, [ebp - 0x1c]
mov eax, dword [0x420ce4]
mov eax, dword [eax]
call fcn.00411e94
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0040bd58
test al, al
je 0x41d89b
call sub.kernel32.dll_GetCurrentProcessId
xor edx, edx
push edx
push eax
mov eax, dword [0x420cb0]
call fcn.00404d84
mov edx, 0x41d908
call fcn.00404848
call fcn.004030b0
push 0
push 0
mov eax, 0x41d928
call fcn.0040c87c
imul eax, eax, 0x3e8
call fcn.0040b958
lea edx, [ebp - 0x24]
xor eax, eax
call fcn.00402820
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00407250
push dword [ebp - 0x20]
push 0x41d938
push dword [ebp - 0xc]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004044ec
push 0
mov eax, dword [ebp - 0xc]
call fcn.0040462c
push eax
lea edx, [ebp - 0x28]
xor eax, eax
call fcn.00402820
mov eax, dword [ebp - 0x28]
call fcn.0040462c
push eax
call sub.kernel32.dll_CopyFileA
lea eax, [ebp - 4]
call fcn.00404188
lea edx, [ebp - 8]
mov eax, 0x41d944
call fcn.0040c69c
cmp dword [ebp - 8], 0
je 0x41d80f
lea eax, [ebp - 4]
mov ecx, dword [ebp - 8]
mov edx, 0x41d958
call fcn.00404478
lea edx, [ebp - 8]
mov eax, 0x41d970
call fcn.0040c69c
cmp dword [ebp - 8], 0
je 0x41d832
lea eax, [ebp - 4]
mov ecx, dword [ebp - 8]
mov edx, 0x41d980
call fcn.00404478
push 0
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
call fcn.00404478
mov eax, dword [ebp - 0x2c]
call fcn.0040462c
push eax
call sub.kernel32.dll_WinExec
call fcn.004027c0
test eax, eax
jle 0x41d89b
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
add ebx, 0xbb8
mov eax, 0xc8
call fcn.0040b958
mov eax, dword [ebp - 0xc]
call fcn.00419e88
test al, al
jne 0x41d89b
call sub.kernel32.dll_GetTickCount_1
xor edx, edx
push edx
push eax
mov eax, ebx
cdq
cmp edx, dword [esp + 4]
jne 0x41d897
cmp eax, dword [esp]
pop edx
pop eax
jae 0x41d866
jmp 0x41d89b
pop edx
pop eax
jge 0x41d866
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41d8bd
lea eax, [ebp - 0x2c]
mov edx, 0xb
call fcn.004041ac
ret
Function at 0x404df0
Capabilities:
Access peb ldr_data
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x418e88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
push edi
mov dword [esp + 0x20], 0
call fcn.004174b2
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov eax, dword [eax + 0xc]
and edx, 0xffff
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x404e69
push eax
push eax
push str.error101
call fcn.004166c2
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], 0xffffffff
call fcn.00412a28
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
call fcn.004174b2
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x404eaf
push eax
push eax
push str.error102
call fcn.004166c2
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], 0xffffffff
call fcn.00412a28
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x404eee
push eax
push eax
push str.error103
call fcn.004166c2
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], 0xffffffff
call fcn.00412a28
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
lea ecx, [esp + 8]
call fcn.00413f51
mov eax, dword [esp + 0x28]
push 0
push 0x1001
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 1
call fcn.00414063
test eax, eax
jne 0x404f7c
lea ecx, [esp + 0x28]
lea edx, [esp + 0x2c]
push ecx
push str.error104
push edx
call fcn.00412ce5
mov eax, dword [eax]
push 0
push 0
push eax
mov byte [esp + 0x2c], 2
call fcn.004166c2
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 1
call fcn.00412a28
lea ecx, [esp + 8]
mov byte [esp + 0x20], 0
call fcn.00413fa6
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], 0xffffffff
call fcn.00412a28
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
call fcn.004174b2
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push edi
lea ecx, [esp + 0x10]
call fcn.004141ba
lea ecx, [esp + 8]
call fcn.0041427e
lea ecx, [esp + 8]
mov byte [esp + 0x20], 0
call fcn.00413fa6
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], 0xffffffff
call fcn.00412a28
mov ecx, dword [esp + 0x18]
pop edi
mov al, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
Function at 0x40a5a1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x422710
cmp edx, dword [eax]
je 0x40a5c3
add eax, 8
inc ecx
cmp eax, 0x4227a0
jl 0x40a5b4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x422710]
jne 0x40a6f1
mov eax, dword [0x425080]
cmp eax, 1
je 0x40a6cb
test eax, eax
jne 0x40a5f4
cmp dword [0x421ff8], 1
je 0x40a6cb
cmp edx, 0xfc
je 0x40a6f1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40a62b
lea eax, [ebp - 0x1a4]
push 0x41c778
push eax
call fcn.0040b6a0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040aa40
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40a66e
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040aa40
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41c774
push edi
call fcn.0040c8d0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x41c758
push eax
call fcn.0040b6a0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040b6b0
lea eax, [ebp - 0xa0]
push 0x41c754
push eax
call fcn.0040b6b0
push dword [esi + 0x422714]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040b6b0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x41c72c
push eax
call fcn.0040c847
add esp, 0x2c
pop edi
jmp 0x40a6f1
lea eax, [ebp + 8]
lea esi, [esi + 0x422714]
push 0
push eax
push dword [esi]
call fcn.0040aa40
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 0x41040f
Capabilities:
Get graphical window text

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

Function at 0x41198e
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 0x4119d0
call fcn.004174b2
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4119d0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4119c7
xor eax, eax
jmp 0x4119d8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004119de
pop edi
pop esi
pop ebx
ret 4
Function at 0x417f3f
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 0x417f6d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x417f8b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00417ea5
jmp 0x417f8b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x417f8b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00417ea5
test edi, edi
mov eax, edi
jne 0x417f75
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8