joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48a2d0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4b1080
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
lea ecx, [esp + 0xc]
call fcn.00489b80
xor ebx, ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], ebx
call fcn.00489b80
mov esi, dword [esp + 0x3c]
lea ecx, [esp + 0xc]
push esi
mov byte [esp + 0x38], 1
call fcn.00489bf0
cmp dword [esp + 0x40], ebx
jne 0x48a358
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [esp + 0x1c]
mov esi, eax
mov byte [esp + 0x34], bl
call fcn.00489ba0
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0xffffffff
call fcn.00489ba0
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
lea eax, [esp + 0xc]
push eax
call fcn.0048a210
add esp, 4
lea ecx, [esp + 0xc]
mov esi, 1
call fcn.0048a020
cmp eax, esi
jb 0x48a3db
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 1
push 1
push esi
push 0x502700
lea ecx, [esp + 0x1c]
call fcn.00489fa0
cmp eax, 1
jne 0x48a3cd
push esi
lea ecx, [esp + 0x20]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00489d40
push ebx
lea ecx, [esp + 0x20]
call fcn.0048a0a0
push eax
call fcn.004940d8
add esp, 8
test eax, eax
jge 0x48a3cd
push ebx
lea ecx, [esp + 0x20]
call fcn.0048a090
push eax
call edi
test eax, eax
je 0x48a410
lea ecx, [esp + 0xc]
inc esi
call fcn.0048a020
cmp esi, eax
jbe 0x48a37d
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], bl
call fcn.00489ba0
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0xffffffff
call fcn.00489ba0
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], bl
call fcn.00489ba0
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0xffffffff
call fcn.00489ba0
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x48c990
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x48c99b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x48ca9e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x4e6bb4]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4e6bb4]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4e6bb4]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4e6bb4]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4e6bb4]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4e6bb4]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4e6bb4]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4e6bb4]
xor eax, edx
inc ecx
dec edi
jne 0x48c9b6
pop edi
test esi, esi
je 0x48cac0
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4e6bb4]
xor eax, edx
inc ecx
dec esi
jne 0x48caa2
pop esi
pop ebx
not eax
ret

Function at 0x48d460
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x10]
mov cl, byte [ebx]
mov eax, ebp
imul eax, dword [esp + 0x14]
test cl, cl
je 0x48d4a1
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push 0
push ecx
push eax
mov eax, dword [ebx + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x48d496
mov byte [ebx + 8], 1
mov eax, dword [esp + 0xc]
xor edx, edx
div ebp
pop ebp
pop ebx
ret
mov edx, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
push esi
push edi
lea esi, [edx + eax]
cmp esi, ecx
jbe 0x48d4b4
sub ecx, edx
mov eax, ecx
mov esi, dword [ebx + 0x10]
mov edi, dword [esp + 0x14]
mov ecx, eax
add esi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor edx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x18]
pop edi
add ecx, eax
pop esi
div ebp
mov dword [ebx + 0x18], ecx
pop ebp
pop ebx
ret
Function at 0x48e3f0
Capabilities:
Get common file path

Disassembly:
push ecx
push ebp
mov ebp, ecx
push esi
push edi
cmp dword [ebp], 0
jne 0x48e4a5
cmp dword [ebp + 4], 0xffffffff
jne 0x48e4a5
push ebx
lea ebx, [ebp + 0x138]
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, 0x502988
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
pop ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
cmp esi, 1
jne 0x48e46d
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x48e46d
pop edi
pop esi
mov eax, 0x2000000
pop ebp
pop ecx
ret 0xc
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xc]
push eax
push esi
push ecx
push edi
call fcn.0048d1f0
add esp, 0x10
test eax, eax
jne 0x48e490
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
push eax
call fcn.0048d730
add esp, 4
mov dword [ebp], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
pop edi
pop esi
mov eax, 0x1000000
pop ebp
pop ecx
ret 0xc

Function at 0x48e900
Capabilities:
Create directory

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x208
test ecx, ecx
je 0x48e9c8
mov al, byte [ecx]
test al, al
je 0x48e9c8
push ebx
push esi
push edi
mov ebx, ecx
mov esi, ecx
cmp al, 0x2f
je 0x48e92b
cmp al, 0x5c
jne 0x48e92d
mov ebx, esi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x48e923
mov edi, dword [esp + 0x218]
cmp ebx, ecx
je 0x48e964
mov esi, ebx
lea eax, [esp + 0xc]
sub esi, ecx
push esi
push ecx
push eax
call fcn.0049425b
lea ecx, [esp + 0x18]
mov byte [esp + esi + 0x18], 0
push ecx
push edi
call fcn.0048e900
add esp, 0x14
inc ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x110]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x110]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
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 + 0x114]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop esi
pop ebx
add esp, 0x208
ret
Function at 0x4940d8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4940f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00494d68
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x49411b
test byte [esp + 8], 2
je 0x49411b
call fcn.00494ddb
mov dword [eax], 0xd
call fcn.00494de4
mov dword [eax], 5
jmp 0x4940f4
xor eax, eax
ret

Function at 0x49906d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e9b70
push 0x492c68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
mov eax, dword [fcn.0049900c]
test eax, eax
je 0x4990b5
mov dword [ebp - 4], 1
call eax
jmp 0x4990b1
and dword [ebp - 4], 0
or dword [ebp - 4], 0xffffffff
call 0x4990be
jmp fcn.0049900c

Function at 0x4a4a0d
Capabilities:
Get graphical window text

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

Function at 0x4a60fb
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 0x4a613d
call fcn.004abbb2
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4a613d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4a6134
xor eax, eax
jmp 0x4a6145
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004a614b
pop edi
pop esi
pop ebx
ret 4

Function at 0x4ac0e2
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 0x4ac110
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4ac12e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004ac048
jmp 0x4ac12e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4ac12e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004ac048
test edi, edi
mov eax, edi
jne 0x4ac118
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x100011fe
Capabilities:
Accept command line arguments
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x858
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
lea eax, [ebp - 0x54]
push ebx
push eax
call fcn.10001a8b
mov dword [ebp - 0x14], ebx
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
push 0x20
stosd dword es:[edi], eax
pop edi
push 0x400
mov dword [ebp - 0x58], 0x44
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [ebp - 0x858]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp word [ebp - 0x858], 0x22
lea eax, [ebp - 0x858]
jne 0x10001262
push 0x22
pop edi
lea eax, [ebp - 0x856]
mov esi, dword [sym.imp.USER32.dll_CharNextW]
jmp 0x10001272
cmp cx, di
je 0x1000127a
push eax
call esi
movzx ecx, word [eax]
cmp cx, bx
jne 0x1000126a
push eax
call esi
jmp 0x10001287
cmp cx, 0x20
jne 0x1000128f
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, bx
jne 0x1000127f
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x58]
push ecx
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x100012de
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0xc000001d
jmp 0x100012d8
Function at 0x6e90fc
Capabilities:
Encode data using xor

Disassembly:
mov dword [esp + 0x20], eax
not al
setae al
pushal
lodsb al, byte [esi]
push 0x72fae79e
bt dx, sp
cmc
xor al, 0xe0
pushfd
pushfd
dec al
jmp 0x6ef305
call fcn.007ef25e
lea esp, [edi - 0x7f]
test al, 0xf7
adc dh, byte [eax]
sub eax, 0xe28e2a50
push edx
ja 0x6ef379
in eax, 0x9e
cmp al, 0x2a
inc edx
adc edi, dword [edx + 0x34]
mov byte [ecx], 0xd4
push cs
cmp byte [ebx + 0x73c2a026], bh
mov bl, 0xac
dec esi
mov dword [eax + 0x73], ebp
inc ecx
mov ebx, dword [edx + 0x2197510]
sbb ah, byte [esi]
push ebp
mov byte [0xf414c958], al
fdivr dword [edx - 0x218bb8a4]
fstp dword [edi - 9]
adc edi, dword [edi - 0x70da76f2]
lodsd eax, dword [esi]
mov edx, 0xd4dd0319
and byte [ebx], ch
xlatb
push ebx
outsb dx, byte [esi]
ror byte [edx - 0x4a], 1
push ebp
ja 0x6ef3d6
inc edx
push ss
iretd
scasb al, byte es:[edi]
inc ebx
aas
retf 0xc27a
out dx, al
jl 0x6ef3f5
fild word [ebx + 0x60]
jo 0x6ef442
invalid
ror byte [ecx - 0x42ed3af8], 1
cld
sbb dword [esp + edi*8 - 0x553c1829], esp
aas
sbb cl, dl
or dword [edi], 0x8ec270e1
dec ebx
test al, 0xa5
and al, 0x73
leave
add esi, 0x6a50a093
jno 0x6ef422
invalid
mov esp, dword [ebx + 0x119bdf8d]
lea ecx, [edx + 0xe]
dec ebp
clc
fcom dword [esi]
invalid
xchg edx, eax
bnd jnp 0x6ef3cd
xlatb
cmp dword [edx - 0x14], edx
pop ebp
jns 0x6ef480
pop ebp
push edi
wait
push esp
retf 0x1965
loop 0x6ef483
sub al, byte [ebp + 0x769c2d42]
lcall 0xb174, 0x6518502a
arpl word [edx + 0x6c], dx
jno 0x6ef4c7
mov al, 0x6c
push 0x51
lodsd eax, dword [esi]
xor byte [edi], bl
mov esi, 0x2505b438
mov ch, 0x90
lodsd eax, dword [esi]
leave
mov eax, dword [0x769946b6]
inc ebp
retf 0xc640
xchg ecx, eax
sbb al, 0x1c
invalid
std
invalid

Function at 0x6ec987
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0x4cccd811
lea esp, [esp + 0x28]
jb 0x6edb59
bt ebp, 7
cmp dx, 0x7424
clc
cmp byte [edi - 1], 0
push esp
lea esp, [esp + 4]
jne 0x6ea2d3
bswap di
pushal
sal di, cl
mov edi, dword [edx + 0x24]
jmp 0x7f1278
test edi, edi
jmp 0x7e597d
add edi, eax
clc
clc
movzx ecx, word [edi + ecx*2]
or di, sp
bsr di, ax
btc di, si
shl di, 3
mov edi, dword [edx + 0x1c]
bt ecx, 0x1f
add edi, eax
push 0x241aa8c0
mov edi, dword [edi + ecx*4]
stc
stc
mov word [esp], 0xa07c
jmp 0x7f1271

Function at 0x6f165e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
lea esp, [esp + 4]
je 0x7f6aa7
call fcn.007ece47
push esp
lea esp, [esp + 4]
jb 0x6edb59
cmc
cmc
test bh, cl
cmp si, si
cmp byte [edi - 1], 0
pushfd
mov byte [esp], dl
lea esp, [esp + 4]
jne 0x6ea2d3
pushal
sub di, dx
rol edi, 1
pushal
mov edi, dword [edx + 0x24]
jmp 0x6e850d

Function at 0x7df968
Capabilities:
Resolve function by parsing pe exports

Disassembly:
pushal
mov byte [esp], 0xe2
lea esp, [esp + 0x2c]
je 0x7f59ea
movzx edx, al
bsr si, bx
bsf dx, di
add dl, cl
mov esi, dword [eax + 0x3c]
btc dx, 3
dec dl
not edx
stc
add esi, eax
rol dh, cl
bt bx, 0xb
mov edx, dword [esi + 0x78]
bt di, cx
test edx, edx
call fcn.007f698a
or ah, ah
invalid
Function at 0x7e4629
Capabilities:
Resolve function by parsing pe exports

Disassembly:
lea esp, [esp + 0x48]
ja 0x6edb0d
pushfd
mov byte [esp], 0x14
mov byte [esp], cl
push ebx
lea esp, [esp + 8]
jb 0x6edb59
cmp si, si
jbe 0x7dd986
cmp ebp, esp
cmp byte [edi - 1], 0
call fcn.007f0857
ret
jmp 0x7e238a

Function at 0x7ece47
Capabilities:
Encode data using xor

Disassembly:
pushfd
lea esp, [esp + 8]
jb 0x6edb59
stc
cmc
cmp byte [edi - 1], 0
call fcn.006ed600
clc
xor eax, eax
bsf cx, di
dec dl
xor ch, dh
mov byte [ebp - 2], al
sar edx, 0x1c
adc dx, 0x32ad
mov ecx, eax
btr dx, 6
mov dword [ebp - 0x20], eax
shld dx, cx, 0xd
mov dword [ebp - 0x24], eax
and dx, ax
sar dh, cl
shl dl, cl
shrd dx, ax, 2
mov dword [ebp - 0x28], eax
dec dl
pushfd
btc dx, 2
mov dword [ebp - 0x2c], eax
btc dx, dx
mov edx, 0x458902fa
aam 0x66
btc edx, edx
cmp di, 0x54ee
sub eax, 1
bts dx, dx
bts dx, 3
bswap dx
xor dx, cx
mov dword [ebp - 0x18], eax
lahf
not dx
test ch, 0x6c
shl edx, cl
mov edx, edi
lea eax, [eax*4 - 0x1819cf26]
cwde
sub edx, dword [ebp + 0xc]
btr ax, 0xa
das
adc ax, 0x8a4
mov ax, ax
and edx, 3
dec al
mov eax, ecx
call fcn.006ee73b
sbb byte es:[edx], 0x25
pop ds
or eax, dword [edi]
add al, 0
xor edx, esp
push ebp
mov cl, 0xdc
mov edi, ebx
pop eax
sub edi, eax
mov ah, 0xe5
dec ecx
and ch, byte [eax]
xchg esi, eax
out dx, al
aas
xor al, byte [edx - 0x63]
ja 0x7ecea3
std
jge 0x7ecf84
jmp 0x7ece99
cmp byte [ebx], bl
adc ah, byte [esp + ebp + 0x4243354e]
stosb byte es:[edi], al
mov eax, 0x12dfbed2
in al, dx
pop eax
fsubr st(4)
retf
adc al, 0xb4
inc esp
adc eax, 0x2f48165d
shr byte [ebp + ecx*8 - 0x203045e0], 0xa7
sub dword [edi + 0x46], edx
sbb dword [eax], 0xffffff95
test byte [ecx - 0x708c7ae5], 0x68
test edi, eax
xchg ecx, eax
das
mov edx, dword [ebp - 0x3fbd014f]
test dword [eax + 0x75], ebx
push ss
jae 0x7ecf3f
sti
pop ebp
cmc
pop ds
pop es
xor ebx, dword [esi]

Function at 0x7f11b4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
pushal
pushal
mov dword [esp + 0x3c], eax
jmp 0x7f567f
pushfd
lea esp, [esp + 4]
jb 0x6edb59
test ch, bl
bt di, 0xe
cmp byte [edi - 1], 0
pushal
lea esp, [esp + 0x20]
jne 0x6ea2d3
rol di, 0xe
bt dx, 0xa
jmp 0x7e4f6a
bt ebp, 2
bt si, 6
jmp 0x7e79fb
mov edi, dword [edx + 0x24]
stc
add edi, eax
cmc
call fcn.006e72bd
sub byte [esi], dl
rol byte [esi], 1
xlatb
iretd
cmp ecx, dword [ebp - 4]
push ecx
call fcn.007f5667
lea esp, [esp + 0x50]
ja 0x6edb0d
jmp 0x6ed1ef
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 0x40638c
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 0x406384
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
Function at 0x4035b7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push ebx
push esi
push edi
push str.SETUPAPI
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 4], edi
je 0x403716
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetupGetFileCompressionInfoA
push edi
call esi
push str.SetupDecompressOrCopyFileA
push edi
mov dword [0x406e34], eax
call esi
cmp dword [0x406e34], ebx
mov dword [0x406e38], eax
je 0x403703
cmp eax, ebx
je 0x403703
push str.MyFree
push edi
call esi
push ebx
mov dword [0x406e3c], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, dword [ebp + 8]
push 0x406d08
push esi
mov dword [ebp - 8], eax
call fcn.00403ed0
pop ecx
mov edx, eax
mov al, byte [0x406e40]
pop ecx
neg edx
push 0x4a
mov byte [ebp - 0x140], al
sbb edx, edx
pop ecx
xor eax, eax
lea edi, [ebp - 0x13f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
neg edx
neg edx
stosb byte es:[edi], al
sbb edx, edx
mov dword [ebp - 0xc], esi
lea eax, [ebp - 0x140]
mov esi, 0x12a
and edx, 2
push eax
push esi
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, esi
jae 0x4036e9
cmp byte [ebp - 0x140], bl
je 0x4036e9
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x141], 0x5c
lea eax, [ebp + eax - 0x141]
je 0x4036af
inc eax
mov byte [eax], 0x5c
mov byte [eax + 1], bl
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x140]
push eax
push 0x403720
push str.PART
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
mov ecx, dword [ebp - 0x14]
xor eax, eax
cmp dword [ebp - 0x10], ebx
setne al
lea eax, [eax + ecx*2]
mov eax, dword [eax*4 + 0x4053d4]
cmp eax, 4
mov dword [ebp - 0x14], eax
jne 0x4036b2
push dword [ebp - 4]
mov dword [0x406e34], ebx
mov dword [0x406e38], ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x10]
jmp 0x403719
push edi
mov dword [0x406e34], ebx
mov dword [0x406e38], ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 8
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x403ab1
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor edi, edi
push edi
push edi
push 1
mov esi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ebx, eax
cmp ebx, edi
jne 0x403ad3
xor eax, eax
jmp 0x403b36
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
lea edi, [esi + 4]
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x10]
push 4
push eax
push 0x403b56
push 0
push 0
call fcn.00404000
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x403b12
and dword [edi], eax
xor esi, esi
jmp 0x403b2d
mov ecx, dword [ebp + 0x10]
mov eax, dword [edi]
mov dword [ecx], eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 1
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x404000
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x4041dd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 8]
push ebx
push eax
xor ebx, ebx
push 0x20019
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x404202
xor eax, eax
jmp 0x40425f
push esi
lea eax, [ebp + 0xc]
push edi
push eax
lea eax, [ebp - 4]
push ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push ebx
or edi, 0xffffffff
push dword [ebp + 0x10]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x40424d
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x18]
jge 0x40424d
lea eax, [ebp + 0xc]
inc dword [ebp + 0xc]
push eax
lea eax, [ebp - 4]
push dword [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
call esi
mov edi, eax
cmp edi, ebx
je 0x40424d
mov eax, dword [ebp + 0x14]
mov byte [eax], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp edi, ebx
pop edi
pop esi
sete al
pop ebx
leave
ret