joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401210
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push str.CODE
push str.WBZXCODE
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x401253
push 0x30
push str.Waring
push str.Load_resource_WBZX.OVR_error_
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop esi
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, 0x13d4
lea esi, [eax + 0x6c8]
mov edi, 0x408c80
push ebx
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x4014d0
Capabilities:
Inspect load icon resource

Disassembly:
mov eax, dword [0x40607c]
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
push eax
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
mov dword [0x40dbf0], eax
je 0x401501
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x10
mov esi, dword [esp + 0x30]
push esi
mov dword [0x40dbd8], esi
call fcn.00401210
add esp, 4
test eax, eax
jne 0x401522
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x10
push 0
push 0x4015e0
push 0
push str.WbTransDlg
push esi
call dword [sym.imp.USER32.dll_CreateDialogParamA]
push str.wbzxtran
push esi
mov dword [0x40dbf0], eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov ecx, dword [0x40dbf0]
mov esi, dword [sym.imp.USER32.dll_SetClassLongA]
push eax
push 0xfffffffffffffff2
push ecx
call esi
push 1
call dword [sym.imp.GDI32.dll_GetStockObject]
mov edx, dword [0x40dbf0]
push eax
push 0xfffffffffffffff6
push edx
call esi
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
lea eax, [esp + 0x18]
push 0
push eax
call esi
test eax, eax
je 0x4015cb
mov edi, dword [sym.imp.USER32.dll_IsDialogMessageA]
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageA]
mov eax, dword [0x40dbf0]
test eax, eax
je 0x4015ac
lea ecx, [esp + 0x10]
push ecx
push eax
call edi
test eax, eax
jne 0x4015ba
lea edx, [esp + 0x10]
push edx
call ebx
lea eax, [esp + 0x10]
push eax
call ebp
push 0
push 0
lea ecx, [esp + 0x18]
push 0
push ecx
call esi
test eax, eax
jne 0x401597
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x10
Function at 0x401c10
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push section..rdata
push 0x402fa8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x4089c8], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x4089c4], ecx
shl ecx, 8
add ecx, edx
mov dword [0x4089c0], ecx
shr eax, 0x10
mov dword [0x4089bc], eax
call fcn.00402e70
test eax, eax
jne 0x401c7a
push 0x1c
call fcn.00401db0
add esp, 4
mov dword [ebp - 4], 0
call fcn.00402c70
call fcn.00402c60
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40ed50], eax
call fcn.00402830
mov dword [0x4089a4], eax
test eax, eax
je 0x401cad
mov eax, dword [0x40ed50]
test eax, eax
jne 0x401cb7
push 0xffffffffffffffff
call fcn.004020d0
add esp, 4
call fcn.00402580
call fcn.00402490
call fcn.004020a0
mov esi, dword [0x40ed50]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x401d96
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x401cfe
test al, al
je 0x401cfe
and eax, 0xff
push eax
call fcn.00402430
add esp, 4
test eax, eax
je 0x401cd8
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401cd8
cmp byte [esi], 0x22
jne 0x401d07
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x401d17
cmp al, 0x20
ja 0x401d17
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401d07
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x401d38
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x401d3d
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.004020d0
jmp 0x401d7b
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x401d07
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401d96

Function at 0x402110
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x4089f8]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x40212f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x4089f4], 1
mov byte [0x4089f0], bl
jne 0x402189
mov ecx, dword [0x40ed48]
test ecx, ecx
je 0x402177
mov esi, dword [0x40ed44]
sub esi, 4
cmp esi, ecx
jb 0x402177
mov eax, dword [esi]
test eax, eax
je 0x402170
call eax
mov ecx, dword [0x40ed48]
sub esi, 4
cmp esi, ecx
jae 0x402162
push 0x40601c
push 0x406014
call fcn.004021c0
add esp, 8
push 0x406024
push 0x406020
call fcn.004021c0
add esp, 8
test ebx, ebx
jne 0x4021b0
push ebp
mov dword [0x4089f8], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret
Function at 0x402830
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x408b08]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x402872
call edi
mov esi, eax
test esi, esi
je 0x40285c
mov eax, 1
jmp 0x40286d
call ebp
mov ebx, eax
test ebx, ebx
je 0x40297f
mov eax, 2
mov dword [0x408b08], eax
cmp eax, 1
jne 0x402912
test esi, esi
jne 0x40288b
call edi
mov esi, eax
test esi, esi
je 0x40297f
cmp word [esi], 0
mov eax, esi
je 0x4028a5
add eax, 2
cmp word [eax], 0
jne 0x402893
add eax, 2
cmp word [eax], 0
jne 0x402893
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x402904
push edi
call fcn.00403e80
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x402904
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x4028f6
push ebx
call fcn.00401de0
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x40297f
test ebx, ebx
jne 0x402923
call ebp
mov ebx, eax
test ebx, ebx
je 0x40297f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x40293b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40292b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40292b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00403e80
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40295d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x4030c0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x4062e8
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x4030e4
add eax, 8
inc ebp
cmp eax, 0x406378
jb 0x4030d5
cmp ecx, dword [ebp*8 + 0x4062e8]
jne 0x40328b
mov eax, dword [0x4089ac]
cmp eax, 1
je 0x40324d
test eax, eax
jne 0x403110
cmp dword [0x406144], 1
je 0x40324d
cmp ecx, 0xfc
je 0x40328b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40314b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x403194
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x4052e0
add ebx, ecx
push ebx
call fcn.00401a90
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
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
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4052c0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x4062ec]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00403f30
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x40ec40]
test eax, eax
je 0x40325e
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x403268
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x4062ec]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x4f31b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xb8000]
push edi
or ebp, 0xffffffff
jmp 0x4f31d2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4f31d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f31c8
mov eax, 1
add ebx, ebx
jne 0x4f31eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4f31fc
jne 0x4f321b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f321b
dec eax
add ebx, ebx
jne 0x4f3208
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4f31e0
add ebx, ebx
jne 0x4f3217
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4f326d
xor ecx, ecx
sub eax, 3
jb 0x4f3233
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4f32a2
sar eax, 1
mov ebp, eax
jmp 0x4f323e
add ebx, ebx
jne 0x4f323e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f320c
inc ecx
add ebx, ebx
jne 0x4f324c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f320c
add ebx, ebx
jne 0x4f3259
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4f324e
jne 0x4f326a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4f324e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4f328c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4f327e
jmp 0x4f31ce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4f328c
add edi, ecx
jmp 0x4f31ce
pop esi
mov edi, esi
mov ecx, 0x12
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4f32aa
cmp byte [edi], 0
jne 0x4f32aa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4f32af
lea edi, [esi + 0xf1000]
mov eax, dword [edi]
or eax, eax
je 0x4f331e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x11acd4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x11ad24]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4f32dc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x11ad28]
or eax, eax
je 0x4f3318
mov dword [ebx], eax
add ebx, 4
jmp 0x4f32f9
call dword [esi + 0x11ad38]
mov ebp, dword [esi + 0x11ad2c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1cf]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4f3352
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x48c9f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6e000]
push edi
jmp 0x48ca0a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x48ca11
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48ca00
mov eax, 1
add ebx, ebx
jne 0x48ca23
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x48ca34
jne 0x48ca53
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48ca53
dec eax
add ebx, ebx
jne 0x48ca40
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x48ca18
add ebx, ebx
jne 0x48ca4f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x48caa5
xor ecx, ecx
sub eax, 3
jb 0x48ca6b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x48cada
sar eax, 1
mov ebp, eax
jmp 0x48ca76
add ebx, ebx
jne 0x48ca76
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48ca44
inc ecx
add ebx, ebx
jne 0x48ca84
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48ca44
add ebx, ebx
jne 0x48ca91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x48ca86
jne 0x48caa2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x48ca86
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x48cac4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x48cab6
jmp 0x48ca06
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x48cac4
add edi, ecx
jmp 0x48ca06
pop esi
mov edi, esi
mov ecx, 0xe37
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x48cae2
cmp byte [edi], 0x12
jne 0x48cae2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x48cae7
lea edi, [esi + 0x8a000]
mov eax, dword [edi]
or eax, eax
je 0x48cb5f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8c590]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8c658]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x48cb14
mov ecx, edi
jns 0x48cb43
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8c65c]
or eax, eax
je 0x48cb59
mov dword [ebx], eax
add ebx, 4
jmp 0x48cb31
call dword [esi + 0x8c66c]
mov ebp, dword [esi + 0x8c660]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x48cb93
sub esp, 0xffffff80
jmp 0x408ad5
Function at 0x4054b4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4054cb
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x405500
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x4054fc
cmp edi, eax
jae 0x405500
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x4054ee
cmp edi, eax
jb 0x405504
xor eax, eax
jmp 0x40550e
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x4059eb
Capabilities:
Read file on windows

Disassembly:
push ebp
sub esp, 0x400
lea ebp, [esp - 4]
mov eax, dword [0x43d2ac]
xor eax, ebp
mov dword [ebp + 0x400], eax
push 0x10
mov eax, 0x42d2a2
call fcn.0042a26c
mov eax, dword [ebp + 0x40c]
cmp dword [eax + 0x18], 0x10
mov edi, ecx
jb 0x405a22
mov eax, dword [eax + 4]
jmp 0x405a25
add eax, 4
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call fcn.00406f01
mov esi, eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [esi]
sub eax, 0x10
cmp dword [eax + 0xc], 1
jle 0x405a4b
push dword [eax + 4]
push esi
call fcn.00407154
mov esi, dword [esi]
push ebx
push 0x80
push 4
push ebx
push ebx
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004055a2
cmp dword [ebp - 0x14], 0xffffffff
jne 0x405a9c
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x400]
xor ecx, ebp
call fcn.00418cca
add ebp, 0x404
leave
ret
cmp dword [edi + 0x18], 0x10
jb 0x405aa7
mov eax, dword [edi + 4]
jmp 0x405aaa
lea eax, [edi + 4]
push 0x432ed4
push eax
call fcn.004151d0
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0x18], eax
jne 0x405acb
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
jmp 0x405a79
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x10], ebx
mov edi, 0x400
jmp 0x405aed
push dword [ebp - 0x10]
lea eax, [ebp]
push eax
push dword [ebp - 0x18]
call fcn.00414c70
add esp, 0xc
push ebx
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp]
push eax
push dword [ebp - 0x14]
call esi
cmp dword [ebp - 0x10], ebx
ja 0x405adb
push dword [ebp - 0x18]
call fcn.00414e60
pop ecx
mov bl, 1
jmp 0x405abe

Function at 0x405c5e
Capabilities:
Delete file

Disassembly:
push 0
mov eax, 0x42d27f
call fcn.0042a26c
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0x10
jb 0x405c78
mov eax, dword [eax + 4]
jmp 0x405c7b
add eax, 4
lea ecx, [ebp + 8]
push ecx
mov ecx, eax
call fcn.00406f01
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 1
jle 0x405ca2
push dword [eax - 0xc]
lea eax, [ebp + 8]
push eax
call fcn.00407154
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004055a2
call fcn.0042a344
ret
Function at 0x409203
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x138
mov eax, dword [0x43d2ac]
xor eax, ebp
mov dword [ebp + 0x70], eax
mov eax, dword [ebp + 0x7c]
push ebx
xor ebx, ebx
cmp dword [0x43e104], ebx
mov dword [ebp - 0xc4], eax
jne 0x409233
xor al, al
jmp 0x4092f0
push esi
push 0x118
lea eax, [ebp - 0xb8]
push ebx
push eax
mov dword [ebp - 0xc0], ebx
mov dword [ebp - 0xbc], 0x11c
call sub.MSVCR80.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea eax, [ebp - 0xbc]
push eax
call esi
test eax, eax
jne 0x409294
push 0x11c
lea eax, [ebp - 0xbc]
push ebx
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0xbc]
push eax
mov dword [ebp - 0xbc], 0x114
call esi
cmp dword [ebp - 0xb8], 5
pop esi
jb 0x4092cf
jne 0x4092a8
cmp dword [ebp - 0xb4], ebx
je 0x4092cf
mov eax, dword [0x43e0f8]
cmp eax, ebx
je 0x40922c
push dword [ebp - 0xc4]
lea ecx, [ebp + 0x60]
push ecx
mov word [ebp + 0x60], 2
call eax
mov dword [ebp - 0xc0], eax
jmp 0x4092e5
mov eax, dword [0x43e0fc]
cmp eax, ebx
je 0x40922c
push dword [ebp - 0xc4]
push ebx
call eax
xor eax, eax
cmp dword [ebp - 0xc0], ebx
sete al
mov ecx, dword [ebp + 0x70]
xor ecx, ebp
pop ebx
call fcn.00418cca
add ebp, 0x74
leave
ret

Function at 0x40c0f9
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, eax
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push 1
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
test eax, eax
je 0x40c121
xor al, al
pop esi
pop ebx
leave
ret
push edi
lea eax, [ebp - 8]
push eax
push 0xf003f
push ebx
mov edi, str.SoftwareAdobeCommonFilesUsage
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40c16c
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x40c16c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop edi
jmp 0x40c11d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esi + 0x18], 8
mov ecx, dword [ebp - 8]
mov eax, dword [esi + 0x14]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ebx
jb 0x40c18c
mov esi, dword [esi + 4]
jmp 0x40c18f
add esi, 4
lea eax, [eax + eax + 1]
push eax
push esi
push 1
push ebx
push str.Agent
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov bl, 1
jmp 0x40c15e
Function at 0x40c37a
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
sub esp, 0x228
lea ebp, [esp - 4]
mov eax, dword [0x43d2ac]
xor eax, ebp
mov dword [ebp + 0x228], eax
push 0x3c
mov eax, 0x42bf6e
call fcn.0042a26c
push 6
pop esi
lea eax, [ebp + 0x1c]
push eax
xor ebx, ebx
push ebx
push ebx
push 0x801a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x40c450
push 0x4331a0
lea eax, [ebp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea edx, [ebp - 0x2c]
lea ecx, [ebp]
mov dword [ebp - 4], ebx
call fcn.0040ed32
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push 0x412750
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x48]
call fcn.00413720
push eax
mov byte [ebp - 4], 3
call fcn.00413980
pop ecx
lea ecx, [ebp - 0x48]
mov byte [ebp - 0xd], al
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp byte [ebp - 0xd], bl
jne 0x40c435
push ebx
lea eax, [ebp + 0x1c]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
jne 0x40c443
lea eax, [ebp]
push eax
mov ecx, edi
call dword [0x42e180]
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x228]
xor ecx, ebp
call fcn.00418cca
add ebp, 0x22c
leave
ret