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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x55f350
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x51c667
mov ecx, dword [0x5a0cc4]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], ecx
mov ecx, dword [eax - 8]
mov bl, 1
test ecx, ecx
mov byte [esp + 0x28], bl
jle 0x51c5bc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push edi
push ecx
mov ecx, esi
call fcn.0051b1e0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.00549045
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.00548f58
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x59fa6c
call fcn.00548fc6
lea edx, [esp + 0x14]
push 0x3d
push edx
lea eax, [esp + 0x24]
push edi
push eax
mov ecx, esi
call fcn.0051b5a0
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 3
call fcn.00549045
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.00548f58
lea ecx, [esp + 0xc]
call fcn.00549447
mov ecx, dword [esp + 0xc]
push 0x5a04ac
push ecx
call fcn.00525a84
add esp, 8
test eax, eax
je 0x51c5e4
mov edx, dword [edi]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx - 8]
cmp ecx, eax
jl 0x51c51d
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.00548f58
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.00548f58
jmp 0x51c66b
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.0051c260
test eax, eax
push 0
je 0x51c64f
lea ecx, [esp + 0x34]
push 0x64
push ecx
mov ecx, esi
call fcn.0051a900
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x51c635
cmp eax, 0x64
jg 0x51c623
mov edx, dword [esp + 0x38]
push eax
push 0x64
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x51c5c0
push 0x64
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x51c5c0
cmp eax, 0x64
jge 0x51c5bc
mov ecx, dword [esp + 0x34]
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x51c5c0
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.0051a900
mov esi, eax
jmp 0x51c5c0
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp esi, eax
jl 0x51c675
mov eax, esi
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 0x10
Function at 0x53eb90
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5607b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call fcn.00533ad6
mov eax, dword [0x57b890]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.00533a08
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.0053f630
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], ecx
je 0x53ec37
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x53ec2e
cmp al, 0xff
je 0x53ec2e
dec al
mov byte [ecx], al
jmp 0x53ec37
push ecx
call fcn.00548cc2
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x53ec68
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x53ec5f
cmp al, 0xff
je 0x53ec5f
dec al
mov byte [ecx], al
jmp 0x53ec68
push ecx
call fcn.00548cc2
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x54b3a2
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x54b3da
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.005493b3
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0054938b
jmp 0x54b3e6
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x54cc13
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 0x54cc55
call fcn.00553412
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x54cc55
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x54cc4c
xor eax, eax
jmp 0x54cc5d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0054cc63
pop edi
pop esi
pop ebx
ret 4

Function at 0x553942
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 0x553970
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x55398e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.005538a8
jmp 0x55398e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x55398e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.005538a8
test edi, edi
mov eax, edi
jne 0x553978
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x5561c3
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x5561eb
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x5561fc
push 2
call edi
test ax, ax
jge 0x5561fc
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.0054a9d7
cmp dword [esi + 0x30], ebx
jne 0x5562d6
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.0054a9d7
cmp eax, dword [esp + 0x34]
jne 0x5562d6
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x556272
push 1
push 0x108
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x5562b7
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x5562d6
cmp eax, 0x205
je 0x5562d6
cmp eax, 0x201
je 0x5562d6
cmp eax, 0x204
je 0x5562d6
cmp eax, ebx
jne 0x55629d
cmp dword [esp + 0x1c], 0x1b
je 0x5562d6
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x5facac]
jbe 0x5562cc
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x55622f
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x4020bc
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4020fb
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4020fb
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4020fb
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4020fb
cmp dword [ecx + 0x74], 0xe
jbe 0x4020fb
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4640d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x56000]
push edi
or ebp, 0xffffffff
jmp 0x4640f2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4640f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4640e8
mov eax, 1
add ebx, ebx
jne 0x46410b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x464100
jne 0x46411c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x464100
xor ecx, ecx
sub eax, 3
jb 0x464130
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4641a2
mov ebp, eax
add ebx, ebx
jne 0x46413b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x464148
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x46416c
inc ecx
add ebx, ebx
jne 0x464158
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x46414d
jne 0x464169
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x46414d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x46418c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x46417d
jmp 0x4640ee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x46418c
add edi, ecx
jmp 0x4640ee
pop esi
mov edi, esi
mov ecx, 0xaef
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4641aa
cmp byte [edi], 4
jne 0x4641aa
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 0x4641af
lea edi, [esi + 0x62000]
mov eax, dword [edi]
or eax, eax
je 0x464227
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xacb68]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xacc08]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4641dc
mov ecx, edi
jns 0x46420b
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 + 0xacc0c]
or eax, eax
je 0x464221
mov dword [ebx], eax
add ebx, 4
jmp 0x4641f9
call dword [esi + 0xacc1c]
mov ebp, dword [esi + 0xacc10]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x46425b
sub esp, 0xffffff80
jmp 0x411de6
Function at 0x4400c9
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46c6d0
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x44010c
push str.SystemFunction040
push dword [0x46c6d0]
call edi
push str.SystemFunction041
push dword [0x46c6d0]
mov dword [0x46c6c0], eax
call edi
mov dword [0x46c6c4], eax
jmp 0x440111
mov eax, dword [0x46c6c4]
cmp dword [0x46c6c0], 0
je 0x440122
test eax, eax
jne 0x4401c9
push 0x46c6d4
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x4401d3
push str.CryptProtectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c0], 0
mov dword [0x46c6c8], eax
jne 0x440187
test eax, eax
jne 0x440187
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x440171
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x440178
mov esi, 0x80004005
push esi
push 0x28
push str.c:_agent_work138_s_srclibsdutilcryputil.cpp
call fcn.004038f5
jmp 0x4401d3
push str.CryptUnprotectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c4], 0
mov dword [0x46c6cc], eax
jne 0x4401c9
test eax, eax
jne 0x4401c9
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4401bd
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4401c4
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x44017b
mov dword [0x46c6d8], 1
pop edi
mov eax, esi
pop esi
ret

Function at 0x4462cd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x4462dc
pop dword [ebp - 0x30]
mov eax, 0x62e92df7
sub eax, 0x62a4cb1b
sub dword [ebp - 0x30], eax
push 0x40
push 0x1000
push 0x52bf1
push 0
mov eax, 0xc8320d5b
add eax, 0x3812a555
add eax, dword [ebp - 0x30]
call dword [eax]
mov ecx, 0xf8c39694
sub ecx, 0xf8c34402
mov edi, eax
mov ebx, 0x488e00
add ebx, dword [ebp - 0x30]
mov esi, 0xcb385d5a
add esi, 0xbaf0701d
xor dword [ebp - 4], esi
mov edx, dword [ebx]
add dword [ebp - 0x10], ebx
sub edx, esi
add dword [ebp - 0x28], 0x3f7fa728
mov dword [edi], edx
add edi, 4
add ebx, 0x8bc08dc
sub ebx, 0x8bc08d8
loop 0x446335
add eax, 0xe2fbf4a5
add eax, 0x1d054876
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xfb998487
add ecx, 0x4a67b79
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x411ec0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xd000]
push edi
jmp 0x411eda
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x411ee1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x411ed0
mov eax, 1
add ebx, ebx
jne 0x411ef3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x411ee8
jne 0x411f04
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x411ee8
xor ecx, ecx
sub eax, 3
jb 0x411f18
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x411f8a
mov ebp, eax
add ebx, ebx
jne 0x411f23
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x411f30
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x411f54
inc ecx
add ebx, ebx
jne 0x411f40
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x411f35
jne 0x411f51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x411f35
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x411f74
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x411f65
jmp 0x411ed6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x411f74
add edi, ecx
jmp 0x411ed6
pop esi
lea edi, [esi + 0xf000]
mov eax, dword [edi]
or eax, eax
je 0x411fdc
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x14330]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x143ec]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x411f91
mov ecx, edi
jns 0x411fc0
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 + 0x143f4]
or eax, eax
je 0x411fd6
mov dword [ebx], eax
add ebx, 4
jmp 0x411fae
call dword [esi + 0x143f0]
mov ebp, dword [esi + 0x143f8]
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 0x412010
sub esp, 0xffffff80
jmp 0x403956
Function at 0x603ad0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x14c000]
push edi
jmp 0x603aea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x603af1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x603ae0
mov eax, 1
add ebx, ebx
jne 0x603b03
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x603b14
jne 0x603b33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x603b33
dec eax
add ebx, ebx
jne 0x603b20
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x603af8
add ebx, ebx
jne 0x603b2f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x603b85
xor ecx, ecx
sub eax, 3
jb 0x603b4b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x603bba
sar eax, 1
mov ebp, eax
jmp 0x603b56
add ebx, ebx
jne 0x603b56
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x603b24
inc ecx
add ebx, ebx
jne 0x603b64
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x603b24
add ebx, ebx
jne 0x603b71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x603b66
jne 0x603b82
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x603b66
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x603ba4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x603b96
jmp 0x603ae6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x603ba4
add edi, ecx
jmp 0x603ae6
pop esi
mov edi, esi
mov ecx, 0xa3cc
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x603bc2
cmp byte [edi], 0x19
jne 0x603bc2
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 0x603bc7
lea edi, [esi + 0x1f1000]
mov eax, dword [edi]
or eax, eax
je 0x603c3f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2067a8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x206938]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x603bf4
mov ecx, edi
jns 0x603c23
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 + 0x20693c]
or eax, eax
je 0x603c39
mov dword [ebx], eax
add ebx, 4
jmp 0x603c11
call dword [esi + 0x20694c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x603c70
cmp al, 0xef
ja 0x603c63
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x603c45
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x603c52
mov ebp, dword [esi + 0x206940]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x603ca4
sub esp, 0xffffff80
jmp 0x531573
Function at 0x40110e
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
push ebx
push esi
xor ebx, ebx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x264]
mov esi, 0x12c
push eax
push esi
mov byte [ebp - 0x264], bl
mov byte [ebp - 0x138], bl
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, esi
jae 0x40116f
cmp eax, ebx
jbe 0x40116f
cmp byte [ebp - 0x264], bl
je 0x40116f
lea eax, [ebp - 0x138]
push eax
push ebx
lea eax, [ebp - 0x264]
push 0x40634c
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov esi, dword [ebp + 8]
cmp dword [esi], ebx
je 0x401278
mov eax, esi
add esi, 0x10
cmp dword [eax + 4], ebx
je 0x401278
movzx eax, word [esi - 0xc]
push ebx
push ebx
push ebx
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_LoadImageA]
cmp eax, ebx
mov dword [esi], eax
jne 0x401269
cmp byte [ebp - 0x138], bl
je 0x401269
movzx eax, word [esi - 0xc]
push 0x406344
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x401269
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, ebx
jbe 0x401269
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x401269
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x401269
lea eax, [ebp - 0x138]
push 0x20
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
push 0x80
push 2
push ebx
push ebx
lea eax, [ebp - 0x138]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x401269
lea ecx, [ebp + 8]
push ebx
push ecx
push edi
push dword [ebp - 0xc]
mov dword [ebp + 8], ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 8], edi
jne 0x401269
push 0x10
push ebx
push ebx
lea eax, [ebp - 0x138]
push ebx
push eax
push ebx
call dword [sym.imp.USER32.dll_LoadImageA]
mov dword [esi], eax
add esi, 0x14
cmp dword [esi - 0x10], ebx
lea eax, [esi - 0x10]
jne 0x40117f
cmp byte [ebp - 0x138], bl
pop edi
pop esi
pop ebx
je 0x401290
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov al, 1
leave
ret