joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403f50
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x434d20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
xor eax, eax
push edi
mov edi, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0x437700
mov dword [esp + 0x28], eax
lea eax, [edi + 0x24]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
lea ecx, [esp + 0x14]
call fcn.00431c92
mov edx, dword [edi + 0x14]
lea esi, [edi + 0x14]
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call dword [edx + 0x28]
push 0x4403d4
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.0042bab2
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x18]
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [edi + 0x18]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov ecx, dword [esp + 0x30]
fild dword [esp + 0x18]
neg ecx
sbb ecx, ecx
and ecx, 0x1b
add ecx, 0x58
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0xc]
fidiv dword [esp + 0x30]
fstp dword [esp + 0x30]
call fcn.0042ba44
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx + 0x28]
lea ecx, [esp + 0x10]
call fcn.00431ce9
mov dword [esp + 0x10], vtable.CGdiObject.0
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 1
call fcn.00431ce9
mov ecx, dword [esp + 0x20]
pop edi
fld dword [esp + 0x2c]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4

Function at 0x404b80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x434d7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea ecx, [esi + 4]
call fcn.00405540
xor edi, edi
lea ecx, [esi + 0x18]
mov dword [esp + 0x14], edi
call fcn.00405630
mov dword [esi], 0x437bc8
mov dword [esi + 0x9c74], edi
mov eax, dword [esi + 0x9c74]
mov word [esi + eax*2 + 0x11980], di
mov ecx, dword [esi + 0x9c74]
inc ecx
mov eax, ecx
mov dword [esi + 0x9c74], ecx
cmp eax, 0x100
jb 0x404bc0
mov ecx, dword [esp + 0xc]
mov dword [esi + 0xea98], edi
mov dword [esi + 0x9c74], edi
mov dword [esi + 0x1197c], edi
mov dword [esi + 0x30], 1
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x404d20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x434de0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov esi, ecx
mov eax, dword [0x4457b0]
mov dword [esp + 0x14], 0
mov dword [esp + 8], eax
mov byte [esp + 0x14], 1
call fcn.00404e60
mov ecx, dword [esi + 0x30]
lea edx, [esp + 8]
push ecx
push str._d_0_obj_n
push edx
call fcn.0042ab8b
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x2c]
add esp, 0xc
mov edx, dword [eax - 8]
mov edi, dword [ecx]
push edx
push eax
call dword [edi + 0x38]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x2c]
mov edx, dword [eax - 8]
mov edi, dword [ecx]
push edx
push eax
call dword [edi + 0x38]
mov ecx, dword [esi + 0x2c]
push 8
push str._nendobj_n
mov eax, dword [ecx]
call dword [eax + 0x38]
mov esi, dword [esi + 0x30]
lea ecx, [esp + 8]
mov byte [esp + 0x14], 0
call fcn.0042ba44
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.0042ba44
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x4052f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x434ed8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x4457b0]
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], eax
mov ecx, dword [esi + 0x2c]
xor edi, edi
mov dword [esp + 0x20], edi
mov edx, dword [ecx]
call dword [edx + 0xc]
mov ebp, eax
mov eax, dword [esi + 0x30]
inc eax
lea ecx, [esp + 0x10]
push eax
push str.xref_n0__d_n0000000000_65535_f__n
push ecx
call fcn.0042ab8b
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x2c]
add esp, 0xc
mov edx, dword [eax - 8]
mov ebx, dword [ecx]
push edx
push eax
call dword [ebx + 0x38]
cmp dword [esi + 0x30], edi
jbe 0x40538f
lea ebx, [esi + 0x34]
mov edx, dword [ebx]
lea eax, [esp + 0x10]
push edx
push str._010d_00000_n__n
push eax
call fcn.0042ab8b
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, dword [eax - 8]
mov dword [esp + 0x14], ecx
mov ecx, dword [esi + 0x2c]
push dword [esp + 0x14]
mov edx, dword [ecx]
push eax
call dword [edx + 0x38]
mov eax, dword [esi + 0x30]
inc edi
add ebx, 4
cmp edi, eax
jb 0x405357
mov eax, dword [esi + 0x30]
push ebp
inc eax
lea ecx, [esp + 0x14]
push eax
push str.trailer_n___Size__d__Root_2_0_R_n___nstartxref_n_d_n____EOF_n
push ecx
call fcn.0042ab8b
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 0x2c]
add esp, 0x10
mov edx, dword [eax - 8]
mov esi, dword [ecx]
push edx
push eax
call dword [esi + 0x38]
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.0042ba44
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x40b110
Capabilities:
Inspect load icon resource

Disassembly:
sub esp, 0x34
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_LoadIconA]
push esi
mov esi, ecx
push edi
xor edi, edi
push 0x80
mov eax, dword [esi + 4]
mov dword [esp + 0x18], 0x30
push eax
mov dword [esp + 0x20], 2
mov dword [esp + 0x24], 0x410720
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], eax
call ebp
mov ecx, dword [esi + 4]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 8]
push 0x81
push ecx
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], eax
call ebp
lea edx, [esp + 0x14]
mov dword [esp + 0x40], eax
push edx
call dword [sym.imp.USER32.dll_RegisterClassExA]
mov ecx, dword [esi + 4]
mov eax, dword [esi + 8]
push edi
push ecx
push edi
push edi
push edi
push 0x80000000
push edi
push 0x80000000
push 0xcf0000
push eax
push eax
push edi
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov ebx, eax
cmp ebx, edi
jne 0x40b1b5
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x34
ret
push edi
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esi + 0x38], edi
je 0x40b32c
mov edx, dword [esi + 4]
lea edi, [esi + 0x5f7]
push 0x81
push edx
mov dword [edi], 0x58
mov dword [esi + 0x5fb], ebx
mov dword [esi + 0x5ff], 1
mov dword [esi + 0x603], 7
call ebp
push 4
mov ecx, esi
mov dword [esi + 0x60b], eax
mov dword [esi + 0x607], 0x800a
call fcn.0040ad10
push edi
push 0
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
test eax, eax
jne 0x40b225
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
mov eax, dword [esi + 4]
push 0x83
push eax
call dword [sym.imp.USER32.dll_LoadMenuA]
test eax, eax
mov dword [esi + 0x650], eax
jne 0x40b246
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
mov al, byte [esi + 0x5f4]
test al, al
je 0x40b32a
push 0x442144
lea ecx, [esp + 0x14]
push 0x2e
push ecx
mov ecx, esi
call fcn.00413120
mov edx, dword [eax]
mov eax, dword [esi + 0x650]
mov edi, dword [sym.imp.USER32.dll_ModifyMenuA]
push edx
push 0x8007
push 0
push 0x8007
push eax
call edi
lea ecx, [esp + 0x10]
call fcn.0042ba44
push 0x442144
lea ecx, [esp + 0x14]
push 0x29
push ecx
mov ecx, esi
call fcn.00413120
mov edx, dword [eax]
mov eax, dword [esi + 0x650]
push edx
push 0x8008
push 0
push 0x8008
push eax
call edi
lea ecx, [esp + 0x10]
call fcn.0042ba44
push 0x442144
lea ecx, [esp + 0x14]
push 0x2f
push ecx
mov ecx, esi
call fcn.00413120
mov edx, dword [eax]
mov eax, dword [esi + 0x650]
push edx
push 0x8009
push 0
push 0x8009
push eax
call edi
lea ecx, [esp + 0x10]
call fcn.0042ba44
push 0x442144
lea ecx, [esp + 0x14]
push 0x30
push ecx
mov ecx, esi
call fcn.00413120
mov edx, dword [eax]
mov eax, dword [esi + 0x650]
push edx
push 0x800a
push 0
push 0x800a
push eax
call edi
lea ecx, [esp + 0x10]
call fcn.0042ba44
xor edi, edi
push edi
push 0x190
push 0x65
push ebx
call dword [sym.imp.USER32.dll_SetTimer]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x34
ret
Function at 0x411b10
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push 0xffffffffffffffff
push 0x435596
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x160
mov eax, dword [0x4457b0]
push ebp
push esi
push edi
mov ebp, ecx
mov dword [esp + 0xc], eax
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x24]
lea edx, [ebp + 0x25c]
rep stosd dword es:[edi], eax
xor ecx, ecx
mov edi, edx
mov dword [esp + 0x14], ecx
lea esi, [esp + 0x68]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], ecx
push 0x5c
mov dword [esp + 0x24], ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push edx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x18]
mov dword [esp + 0x17c], 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x2c], 0x44
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00420e1d
add esp, 8
test eax, eax
je 0x411bb6
mov ecx, eax
sub ecx, ebp
inc eax
mov byte [esp + ecx - 0x1f4], 0
jmp 0x411bbb
mov eax, 0x448ce0
mov edx, dword [esp + 0x17c]
mov esi, dword [ebp + 0x44]
push edx
xor ecx, ecx
push eax
cmp esi, 4
lea eax, [esp + 0x70]
lea edx, [esp + 0x14]
sete cl
push eax
push ecx
push str.DOSPrinter.SMTP.exe
push str._s__d___s____s___s
push edx
call fcn.0042ab8b
add esp, 0x1c
lea eax, [esp + 0x14]
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x24]
push eax
push ecx
push 0
push 0
push 8
push 0
push 0
push 0
push edx
push str.DOSPrinter.SMTP.exe
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x411c25
mov eax, dword [esp + 0x14]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x411c5b
push str.Cannot_find_DOSPrinter.SMTP.exe
lea ecx, [esp + 0x14]
push 0x31
push ecx
mov ecx, ebp
call fcn.00413120
mov eax, dword [eax]
mov ecx, ebp
push eax
mov byte [esp + 0x178], 1
call fcn.0040cca0
lea ecx, [esp + 0x10]
mov byte [esp + 0x174], 0
call fcn.0042ba44
lea ecx, [esp + 0xc]
mov dword [esp + 0x174], 0xffffffff
call fcn.0042ba44
mov ecx, dword [esp + 0x16c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x16c
ret 4
Function at 0x412490
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
push ebx
push esi
push edi
push 0
push 0
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
lea ecx, [esp + 0x10]
push 0
push ecx
push edi
push eax
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x18]
mov dword [esp + 0x18], 0
push edx
push 1
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xc]
push eax
push 0x43aa60
push 0
push edi
push ecx
mov dword [esp + 0x20], 0
call dword [sym.imp.OLEPRO32.DLL_OleLoadPicture]
mov eax, dword [esp + 0x18]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
add esp, 8
ret 4

Function at 0x413120
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x435655
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
mov eax, dword [0x4457b0]
push esi
mov esi, ecx
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x120]
lea edx, [esp + 4]
push ecx
push 0x442d28
push edx
mov dword [esp + 0x120], 1
call fcn.0042ab8b
mov ecx, dword [esp + 0x130]
mov edx, dword [esp + 0x10]
add esp, 0xc
lea eax, [esp + 0xc]
add esi, 0x5f4
push str..Language.ini
push 0xff
push eax
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
xor eax, eax
mov dl, 0x6e
mov cl, 0xa
cmp byte [esp + eax + 0xc], 0x5c
jne 0x4131b9
cmp byte [esp + eax + 0xd], dl
jne 0x4131b9
mov byte [esp + eax + 0xc], 0x20
mov byte [esp + eax + 0xd], cl
cmp byte [esp + eax + 0xc], 0
je 0x4131c8
inc eax
cmp eax, 0xff
jl 0x4131a3
mov esi, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.0042bab2
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x114], 0
call fcn.0042ba44
mov ecx, dword [esp + 0x10c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x114
ret 0xc
Function at 0x4173a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x435a9f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x4457b0]
push esi
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
xor edx, edx
mov dword [esp + 0x14], 1
mov ecx, dword [eax]
mov dl, byte [eax + 1]
shr ecx, 0x10
and ecx, 0xff
and edx, 0xff
push ecx
xor ecx, ecx
mov cl, byte [eax]
push edx
push ecx
lea edx, [esp + 0x10]
push str._Tj_n_d__d__d_rg_n_
push edx
call fcn.0042ab8b
mov esi, dword [esp + 0x30]
add esp, 0x14
lea eax, [esp + 4]
mov ecx, esi
push eax
call fcn.0042b7b9
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.0042ba44
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 8

Function at 0x4174e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x435aff
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
push str.___Type_Annot_Border_0_0_0__Subtype_Link_n_Rect_1_1_141_15__A___Type_Action_S_URI_n_URI_http:__www.geocities.com_dosprint_____
lea ecx, [esp + 8]
mov dword [esp + 0xc], 0
mov byte [esp + 0x14], 0x44
mov byte [esp + 0x18], 0
mov byte [esp + 0x17], 0x4f
mov byte [esp + 0x16], 0x4d
mov byte [esp + 0x15], 0x45
call fcn.0042bab2
push ecx
lea eax, [esp + 8]
mov ecx, esp
mov dword [esp + 0x10], esp
push eax
mov dword [esp + 0x28], 1
call fcn.0042b7b9
mov ecx, dword [esp + 0x30]
call fcn.00404d20
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x10]
push edx
push str.DOSPrinter_3.4
mov dword [ecx], eax
lea eax, [esp + 0xc]
push str._Tj_2_2_Td_1_0.5_0.5_rg__s__s_Tj_0_0_0_rg__
push eax
call fcn.0042ab8b
mov esi, dword [esp + 0x38]
add esp, 0x10
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.0042b7b9
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x20], 0
call fcn.0042ba44
mov ecx, dword [esp + 0x18]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0x20
ret 0xc
Function at 0x417860
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x435b91
push eax
mov dword fs:[0], esp
sub esp, 0xc10
push ebx
mov ebx, dword [esp + 0xc2c]
push ebp
push esi
push edi
mov edi, dword [esp + 0xc34]
mov esi, ecx
push ebx
mov ecx, edi
call fcn.0042bb81
mov eax, dword [esp + 0xc30]
push edi
lea ebp, [eax + 0x18]
mov ecx, ebp
call fcn.004056c0
cmp eax, 1
jne 0x4178b6
mov eax, dword [edi + 0x28]
jmp 0x417a10
lea ecx, [esp + 0x1c]
call fcn.0043161e
push 0
mov dword [esp + 0xc2c], 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x20]
call fcn.004316d5
push 5
lea ecx, [esp + 0x20]
call fcn.0043193b
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x437700
mov cl, byte [esi + 0x3c]
push ebx
mov byte [esp + 0x14], cl
push 0x31
mov edx, dword [esp + 0x18]
push 0
push 0
and edx, 0xff
push 0
push edx
push 0
push 0
push 0
push 0x190
push 0
push 0
push 0x1ec
push 0x1ec
mov byte [esp + 0xc60], 1
call dword [sym.imp.GDI32.dll_CreateFontA]
push eax
lea ecx, [esp + 0x18]
call fcn.00431c92
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
call fcn.00431869
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x2c]
push ecx
push 0xff
push 0
push edx
mov dword [esp + 0x20], eax
call dword [sym.imp.GDI32.dll_GetCharABCWidthsA]
lea eax, [esp + 0x1b0]
lea ecx, [edi + 0x78]
mov edx, 0xe0
mov esi, dword [esp + 0xc3c]
test esi, esi
je 0x41798d
mov word [ecx], 0x258
jmp 0x41799b
mov si, word [eax - 4]
add si, word [eax + 4]
add si, word [eax]
mov word [ecx], si
add ecx, 2
add eax, 0xc
dec edx
jne 0x41797b
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
call fcn.00431869
lea ecx, [esp + 0x14]
call fcn.00431ce9
lea ecx, [esp + 0x1c]
call fcn.0043173d
push ebx
mov ecx, edi
call fcn.0042bb81
mov ecx, ebp
call fcn.00405710
mov esi, eax
push edi
inc esi
mov ecx, ebp
mov dword [edi + 0x28], esi
call fcn.00405740
mov dword [esp + 0x14], vtable.CGdiObject.0
lea ecx, [esp + 0x14]
mov byte [esp + 0xc28], 2
call fcn.00431ce9
lea ecx, [esp + 0x1c]
mov dword [esp + 0xc28], 0xffffffff
call fcn.00431753
mov eax, esi
mov ecx, dword [esp + 0xc20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xc1c
ret 0x10
Function at 0x41a470
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x435c70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x4457b0]
push ebp
push esi
push edi
mov ebp, ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x8e4]
lea ecx, [esp + 0x10]
push eax
push str._f_d
push ecx
mov byte [esp + 0x28], 1
call fcn.0042ab8b
mov esi, dword [esp + 0x30]
add esp, 0xc
cmp byte [esi], 0x2d
jne 0x41a53a
mov edx, dword [ebp + 0x794]
lea edi, [ebp + 0x794]
push 1
push esi
mov ecx, edi
call dword [edx + 0x34]
cmp byte [esi], 0x2d
jne 0x41a52c
push str._f91
lea ecx, [esp + 0x10]
call fcn.0042bb81
mov eax, dword [edi]
push 1
push esi
mov ecx, edi
call dword [eax + 0x34]
test eax, eax
je 0x41a5d0
cmp byte [esi], 0x2d
jne 0x41a59f
push 0x443f38
lea ecx, [esp + 0x10]
call fcn.0042bdd4
mov edx, dword [edi]
push 1
push esi
mov ecx, edi
call dword [edx + 0x34]
test eax, eax
jne 0x41a502
jmp 0x41a5d0
mov eax, dword [edi]
push 1
push 0xffffffffffffffff
mov ecx, edi
call dword [eax + 0x28]
mov byte [esi], 0x2d
cmp byte [esi], 0x3d
jne 0x41a616
mov edx, dword [ebp + 0x794]
lea edi, [ebp + 0x794]
push 1
push esi
mov ecx, edi
call dword [edx + 0x34]
cmp byte [esi], 0x3d
jne 0x41a608
push 0x443f30
lea ecx, [esp + 0x10]
call fcn.0042bb81
mov eax, dword [edi]
push 1
push esi
mov ecx, edi
call dword [eax + 0x34]
test eax, eax
je 0x41a5d0
cmp byte [esi], 0x3d
jne 0x41a59f
push 0x443f2c
lea ecx, [esp + 0x10]
call fcn.0042bdd4
mov edx, dword [edi]
push 1
push esi
mov ecx, edi
call dword [edx + 0x34]
test eax, eax
jne 0x41a57c
jmp 0x41a5d0
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
call fcn.0042be10
mov eax, dword [esp + 0xc]
mov esi, dword [ebp + 0x8d0]
lea ecx, [ebp + 0x8d0]
mov edx, dword [eax - 8]
push edx
push eax
call dword [esi + 0x38]
mov edx, dword [edi]
push 1
push 0xffffffffffffffff
mov ecx, edi
call dword [edx + 0x28]
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], 0
call fcn.0042ba44
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0042ba44
pop edi
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 4
mov eax, dword [edi]
push 1
push 0xffffffffffffffff
mov ecx, edi
call dword [eax + 0x28]
mov byte [esi], 0x3d
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], 0
call fcn.0042ba44
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0042ba44
mov ecx, dword [esp + 0x14]
pop edi
pop esi
xor eax, eax
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret 4
Function at 0x41c590
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [esp + 8]
lea ecx, [esp + 0xa]
mov dword [esp], eax
mov edx, 9
xor ax, word [ecx]
add ecx, 2
dec edx
jne 0x41c5a2
pop ecx
ret 0x18

Function at 0x42d008
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x436148
call fcn.00421778
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.00433760
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x42d047
call fcn.00433760
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x42d055
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x42d063
or eax, 0xffffffff
jmp 0x42d14b
mov ecx, esi
call fcn.0042cf7e
mov dword [ebp - 0x14], eax
call fcn.0042ddb7
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x42d09a
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x42d09a
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.0042dd6b
push dword [ebp - 0x14]
call fcn.0042d89d
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.0042cd16
cmp eax, edi
je 0x42d10d
test byte [esi + 0x24], 0x10
je 0x42d0db
push 4
mov ecx, esi
pop ebx
call fcn.0042fea8
test ah, 1
je 0x42d0d3
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0042f8ca
cmp dword [esi + 0x1c], edi
je 0x42d10d
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0042fedc
jmp 0x42d10d
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x42d121
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x42d13a
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x42d13a
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.0042cfb8
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x42f778
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 0x42f7ba
call fcn.00433760
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x42f7ba
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x42f7b1
xor eax, eax
jmp 0x42f7c2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0042f7c8
pop edi
pop esi
pop ebx
ret 4
Function at 0x433c53
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 0x433c81
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x433c9f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00433bb9
jmp 0x433c9f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x433c9f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00433bb9
test edi, edi
mov eax, edi
jne 0x433c89
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4014be
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x128
lea eax, [ebp - 0x10]
push eax
mov eax, dword [0x42f918]
lea edi, [ebp - 0x115]
mov dword [ebp - 0x120], ecx
or eax, 8
push eax
push 0
push edx
push esi
call sub.ADVAPI32.DLL_RegOpenKeyExA
add esp, 0xc
test eax, eax
je 0x40152a
jmp 0x401586
cmp dword [ebp - 0x120], 0
je 0x40151a
sub esp, 0xc
push dword [ebp - 0x10]
call sub.ADVAPI32.DLL_RegCloseKey
mov eax, 1
add esp, 0xc
jmp 0x401586
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov edx, edi
call fcn.004014be
test eax, eax
jne 0x40153e
push 0x105
push edi
push 0
push dword [ebp - 0x10]
call sub.ADVAPI32.DLL_RegEnumKeyA
test eax, eax
je 0x4014fc
sub esp, 0xc
push dword [ebp - 0x10]
call sub.ADVAPI32.DLL_RegCloseKey
push 2
call fcn.004060e8
add esp, 0xc
test eax, eax
je 0x401565
push 0
push dword [0x42f918]
push ebx
push esi
call eax
jmp 0x401586
cmp dword [0x42f918], 0
mov eax, 1
jne 0x401586
push edi
push edi
push ebx
push esi
call sub.ADVAPI32.DLL_RegDeleteKeyA
pop ebx
pop esi
test eax, eax
setne al
movzx eax, al
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret