joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45a32c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45a343
add esp, 0xfffffff0
call fcn.004036bc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041b820
mov eax, dword [0x49e4c8]
cmp word [eax + 2], 0
jne 0x45a36b
mov eax, dword [0x49e4c8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045ba04
mov eax, dword [0x49e614]
cmp word [eax + 2], 0
jne 0x45a385
mov eax, dword [0x49e614]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045bbfc
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4122e8]
call fcn.00403368
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4122e8]
call fcn.00403368
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41dd7c]
call fcn.004254e0
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x45a50c
mov eax, dword [0x49e32c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004258b0
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45c1ac
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x49e32c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040ccd4
test eax, eax
je 0x45a47a
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408e9c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040ccfc
test eax, eax
je 0x45a48e
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004043dc
mov eax, dword [0x49e128]
cmp byte [eax], 0
jne 0x45a4c2
mov eax, ebx
call fcn.0045a634
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0045c388
mov eax, ebx
call fcn.0045cd4c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45a502
call fcn.00403714
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45a8b4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x49fbe8]
cmp dword [eax + 0x30], 0
je 0x45a95e
cmp dword [ebx + 0x94], 0
jne 0x45a958
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45a844
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45a958
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45a91e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45a958
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004149c4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45a92d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45b4c0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45b4f5
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040425c
jmp 0x45b502
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004041c0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45c564
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45c5a5
mov eax, esi
call fcn.00442820
test al, al
je 0x45c5a5
mov eax, dword [ebx + 0x84]
call fcn.0044251c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45c5a5
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044251c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4718c8
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x4718d0
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x471ac2
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x471ad8
mov eax, esi
call fcn.0046e188
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.004041c0
lea ecx, [ebp - 0x10]
mov edx, 0x471aec
mov eax, esi
call fcn.0046e188
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.004041c0
lea ecx, [ebp - 0x14]
mov edx, 0x471b04
mov eax, esi
call fcn.0046e188
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.004041c0
lea ecx, [ebp - 0x18]
mov edx, 0x471b20
mov eax, esi
call fcn.0046e188
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.004041c0
lea ecx, [ebp - 0x1c]
mov edx, 0x471b3c
mov eax, esi
call fcn.0046e188
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.004041c0
lea ecx, [ebp - 0x24]
mov edx, 0x471b54
mov eax, esi
call fcn.0046e188
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00408254
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.004088c0
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x471b6c
mov eax, esi
call fcn.0046e188
mov eax, dword [ebp - 0x28]
call fcn.00462598
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x471b7c
mov eax, esi
call fcn.0046e188
mov eax, dword [ebp - 0x2c]
call fcn.00462598
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x471b94
mov eax, esi
call fcn.0046e188
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.004088c0
inc eax
je 0x471a65
lea ecx, [ebp - 0x34]
mov edx, 0x471b94
mov eax, esi
call fcn.0046e188
mov eax, dword [ebp - 0x34]
call fcn.00408884
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.00409e0c
fstp qword [ebp - 0x3c]
wait
call fcn.0040a170
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x471a80
lea ecx, [ebp - 0x40]
mov edx, 0x471b94
mov eax, esi
call fcn.0046e188
mov eax, dword [ebp - 0x40]
call fcn.00462598
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x471ba4
mov eax, esi
call fcn.0046e188
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.004041c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x471ac9
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00404190
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.00404190
ret
Function at 0x478a70
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x478a9e
mov eax, ebx
call fcn.00479524
cmp dword [ebx + 0x40], 0
je 0x478a97
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x478b0f
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x478b01
cmp dword [ebx + 8], 0
je 0x478ac0
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x478ad2
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x478b01
cmp dword [ebx + 8], 0
je 0x478ab3
cmp eax, 3
je 0x478ae5
dec eax
jne 0x478ab3
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x478ab3
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x478ab3
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x478b2d
cmp dword [ebx + 0x14], 0xcc
je 0x478b2d
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00478b38
pop ebx
ret

Function at 0x48a5a4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x24]
mov edi, dword [ebx + 0x34]
sub edi, dword [ebx + 0x6c]
sub edi, dword [ebx + 0x64]
test edi, edi
jne 0x48a5ce
cmp dword [ebx + 0x64], 0
jne 0x48a5ce
cmp dword [ebx + 0x6c], 0
jne 0x48a5ce
mov edi, esi
jmp 0x48a655
cmp edi, 0xffffffff
jne 0x48a5d6
dec edi
jmp 0x48a655
mov eax, dword [ebx + 0x24]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x64]
ja 0x48a655
push esi
mov eax, dword [ebx + 0x30]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.004899a0
add esp, 0xc
sub dword [ebx + 0x68], esi
sub dword [ebx + 0x64], esi
sub dword [ebx + 0x54], ebp
mov eax, dword [ebx + 0x44]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x3c]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x48a623
mov cx, word [esp]
sub cx, si
jmp 0x48a625
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x48a60c
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x38]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x48a64b
mov cx, word [esp]
sub cx, si
jmp 0x48a64d
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x48a634
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x48a6b2
mov edx, dword [ebx + 0x30]
mov ecx, edi
add edx, dword [ebx + 0x64]
mov eax, ebp
add edx, dword [ebx + 0x6c]
call fcn.0048a340
add dword [ebx + 0x6c], eax
cmp dword [ebx + 0x6c], 3
jb 0x48a69d
mov eax, dword [ebx + 0x30]
mov edx, dword [ebx + 0x64]
movzx eax, byte [eax + edx]
mov dword [ebx + 0x40], eax
mov ecx, dword [ebx + 0x50]
shl eax, cl
mov edx, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x64]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x4c]
mov dword [ebx + 0x40], eax
cmp dword [ebx + 0x6c], 0x106
jae 0x48a6b2
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x48a5ae
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x490908
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x49ff24
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x49092a
shr eax, 1
xor eax, 0xedb88320
jmp 0x49092c
shr eax, 1
dec edx
jne 0x490918
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x490911
mov byte [0x4a0324], 1
pop esi
pop ebx
ret

Function at 0x490948
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x4a0324], 0
jne 0x49095f
call fcn.00490908
mov eax, edi
dec eax
test eax, eax
jl 0x490988
inc eax
xor edx, edx
xor ecx, ecx
mov cl, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x49ff24]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x490969
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x492ed8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov al, byte [eax]
dec al
je 0x492f09
dec al
je 0x492f45
dec al
je 0x492f89
dec al
je 0x492ff4
jmp 0x49307e
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x49307e
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
mov dl, byte [ecx + edx]
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x492f19
jmp 0x49307e
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x49307e
mov esi, 1
mov al, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov dl, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x492f55
jmp 0x49307e
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x49307e
mov esi, 1
mov al, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x492fb7
xor ebp, ebp
jmp 0x492fc8
mov ecx, esi
sub ecx, edx
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x492fd1
adc eax, 0
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x492f99
jmp 0x49307e
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x49307e
mov esi, 1
mov al, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x49304c
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
mov dl, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
mov cl, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.00490990
add al, byte [esp]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x493008
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x48d000
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x5b000]
push edi
or ebp, 0xffffffff
jmp 0x48d022
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x48d029
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48d018
mov eax, 1
add ebx, ebx
jne 0x48d03b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x48d04c
jne 0x48d05c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48d05c
dec eax
add ebx, ebx
jne 0x48d058
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x48d030
xor ecx, ecx
sub eax, 3
jb 0x48d074
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x48d0e6
sar eax, 1
mov ebp, eax
jmp 0x48d07f
add ebx, ebx
jne 0x48d07f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x48d08c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x48d0b0
inc ecx
add ebx, ebx
jne 0x48d09c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x48d091
jne 0x48d0ad
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x48d091
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x48d0d0
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x48d0c1
jmp 0x48d01e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x48d0d0
add edi, ecx
jmp 0x48d01e
pop esi
mov edi, esi
mov ecx, 0xb60
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x48d0ee
cmp byte [edi], 9
jne 0x48d0ee
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 eax, ebx
loop 0x48d0f3
lea edi, [esi + 0x8b000]
mov eax, dword [edi]
or eax, eax
je 0x48d16b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8dd58]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddf8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x48d120
mov ecx, edi
jns 0x48d14f
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 + 0x8ddfc]
or eax, eax
je 0x48d165
mov dword [ebx], eax
add ebx, 4
jmp 0x48d13d
call dword [esi + 0x8de00]
popal
jmp section.UPX0
Function at 0x401700
Capabilities:
Timestomp file
Write file on windows

Disassembly:
sub esp, 0x24
push esi
push edi
mov edi, eax
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov word [esp + 0x20], 0x7db
mov word [esp + 0x22], 2
mov word [esp + 0x26], 0x18
mov word [esp + 0x28], 3
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x38]
call fcn.00401800
test eax, eax
je 0x401792
mov ecx, dword [esp + 0x34]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4017ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40179c
mov dword [edi + 4], 0x504
xor eax, eax
pop edi
pop esi
add esp, 0x24
ret 8
mov dword [edi + 4], 0x103
xor eax, eax
pop edi
pop esi
add esp, 0x24
ret 8
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x30]
push 0
lea edx, [esp + 0x10]
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4017d0
mov dword [edi + 4], 0x106
cmp dword [edi + 4], 0
jne 0x4017e7
lea edx, [esp + 0x10]
push edx
push 0
mov eax, edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [edi + 4], eax
pop edi
sete al
pop esi
add esp, 0x24
ret 8

Function at 0x401800
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push 0x40fb24
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x401820
mov dword [edi + 4], 0x501
pop esi
ret 8
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401838
mov dword [edi + 4], 0x502
pop esi
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
mov ecx, dword [esp + 8]
mov dword [ecx], eax
jne 0x401854
mov dword [edi + 4], 0x503
pop esi
ret 8
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [esp + 0xc]
mov dword [edx], eax
mov eax, 1
pop esi
ret 8
Function at 0x401b10
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, ecx
test ebx, ebx
je case.default.0x401b25
cmp eax, 7
ja case.default.0x401b25
push edi
jmp dword [eax*4 + 0x401cf4]
push 0x104
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
push ebx
call fcn.00403452
add esp, 8
mov byte [eax + 1], 0
jmp 0x401cbf
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, ebx
add edi, 0xffffffff
nop
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x401b60
mov ax, word [0x40fb14]
mov word [edi], ax
jmp 0x401cbf
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, ebx
add edi, 0xffffffff
lea esp, [esp]
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x401b90
mov cx, word [0x40fb14]
mov word [edi], cx
jmp 0x401cbf
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov eax, ebx
add eax, 0xffffffff
lea ebx, [ebx]
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x401bc0
mov edx, dword [str.inf_]
mov dword [eax], edx
mov cx, word [0x40fb60]
mov word [eax + 4], cx
jmp 0x401cbf
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov eax, ebx
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x401bf3
mov edx, dword [str.infother]
mov dword [eax], edx
mov ecx, dword [0x40fb68]
mov dword [eax + 4], ecx
mov edx, dword [0x40fb6c]
mov dword [eax + 8], edx
mov cl, byte [0x40fb70]
mov byte [eax + 0xc], cl
jmp 0x401cbf
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov eax, ebx
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x401c36
mov edx, dword [str.infother_]
mov dword [eax], edx
mov ecx, dword [0x40fb78]
mov dword [eax + 4], ecx
mov edx, dword [0x40fb7c]
mov dword [eax + 8], edx
jmp 0x401cbf
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov eax, ebx
add eax, 0xffffffff
lea ecx, [ecx]
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x401c70
mov ecx, dword [str._system32drivers_]
mov dword [eax], ecx
mov edx, dword [0x40fb84]
mov dword [eax + 4], edx
mov ecx, dword [0x40fb88]
mov dword [eax + 8], ecx
mov edx, dword [0x40fb8c]
mov dword [eax + 0xc], edx
mov cx, word [0x40fb90]
mov word [eax + 0x10], cx
mov dl, byte [0x40fb92]
mov byte [eax + 0x12], dl
jmp 0x401cbf
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov eax, dword [esp + 0xc]
push esi
mov esi, eax
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401cc6
sub eax, esi
add ebx, 0xffffffff
mov edi, ebx
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x401cd6
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
pop edi
pop ebx
ret 4
Function at 0x402760
Capabilities:
Copy file

Disassembly:
sub esp, 0x210
mov eax, dword [0x411020]
xor eax, esp
mov dword [esp + 0x20c], eax
mov eax, dword [esp + 0x214]
test eax, eax
jne 0x40279f
mov dword [esi + 8], 4
xor eax, eax
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.004031ea
add esp, 0x210
ret 4
lea ecx, [esp]
push ecx
lea edx, [esp + 0x10c]
push edx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
cmp eax, 0x103
ja 0x40277f
mov eax, dword [esp]
test eax, eax
je 0x4027d4
push eax
lea ecx, [esp + 8]
mov eax, 3
call fcn.00401b10
push 0
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x40280b
mov dword [esi + 8], 0x105
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.004031ea
add esp, 0x210
ret 4
mov ecx, dword [esp + 0x20c]
xor ecx, esp
mov eax, 1
call fcn.004031ea
add esp, 0x210
ret 4

Function at 0x402830
Capabilities:
Copy file

Disassembly:
sub esp, 0x210
mov eax, dword [0x411020]
xor eax, esp
mov dword [esp + 0x20c], eax
mov eax, dword [esp + 0x214]
test eax, eax
jne 0x40286f
mov dword [esi + 8], 4
xor eax, eax
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.004031ea
add esp, 0x210
ret 4
lea ecx, [esp]
push ecx
lea edx, [esp + 0x10c]
push edx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
cmp eax, 0x103
ja 0x40284f
mov eax, dword [esp]
test eax, eax
je 0x4028a4
push eax
lea ecx, [esp + 8]
mov eax, 6
call fcn.00401b10
push 0
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x4028db
mov dword [esi + 8], 0x105
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.004031ea
add esp, 0x210
ret 4
mov ecx, dword [esp + 0x20c]
xor ecx, esp
mov eax, 1
call fcn.004031ea
add esp, 0x210
ret 4