joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1007beb8
Capabilities:
Accept command line arguments

Disassembly:
push 0x168
mov eax, 0x100b3289
call fcn.100a5688
mov edi, ecx
mov dword [ebp - 0x18], edi
and dword [ebp - 0x24], 0
push ecx
mov ecx, esp
push edx
call fcn.1006f4e2
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
call fcn.10035b08
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x3c]
call fcn.1002e7ee
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x3c]
call fcn.1002ee5c
push dword [ebp + 0xc]
mov byte [ebp - 4], 2
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x10]
push dword [ebp + 8]
cmp dword [eax - 0xc], 0
jne 0x1007bf29
mov ecx, edi
call fcn.1004fb52
jmp 0x1007bfaf
lea ecx, [ebp - 0x174]
call fcn.1004fb52
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x118]
call fcn.1004e3f2
mov esi, eax
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x118]
call fcn.1003ebd3
push ecx
push dword [ebp + 8]
lea edx, [ebp - 0x10]
mov byte [ebp - 4], 5
push esi
push eax
lea ecx, [ebp - 0x18]
call fcn.1003fe72
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.1008ebf5
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.1008ebf5
push dword [ebp + 0xc]
lea edx, [ebp - 0x18]
mov ecx, edi
push dword [ebp + 8]
call fcn.1004fb52
push dword [ebp - 0x18]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [ebp - 0x174]
call fcn.1004f7d2
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.1008ebf5
lea ecx, [ebp - 0x3c]
call fcn.1002eb70
push dword [ebp - 0x14]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, edi
call fcn.100a5651
ret 8
Function at 0x10081043
Capabilities:
Check if file exists

Disassembly:
push 0x60
mov eax, 0x100b3c2a
call fcn.100a56bc
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x58]
call fcn.10030831
and dword [ebp - 4], 0
lea ecx, [ebp - 0x58]
push 0x1001cee4
call fcn.1006e97f
mov dword [ebp - 0x54], 0x1001cef8
xor esi, esi
mov dword [ebp - 0x50], 0x1001cf0c
mov dword [ebp - 0x4c], 0x1001cf20
mov dword [ebp - 0x48], 0x1001cf34
mov dword [ebp - 0x44], 0x1001cf48
mov dword [ebp - 0x40], 0x1001cf5c
mov dword [ebp - 0x3c], 0x1001cf78
mov dword [ebp - 0x38], 0x1001cf9c
mov dword [ebp - 0x34], 0x1001cfb4
mov dword [ebp - 0x30], 0x1001cfcc
mov dword [ebp - 0x2c], 0x1001cfe4
mov dword [ebp - 0x28], 0x1001cffc
mov dword [ebp - 0x24], 0x1001d014
mov dword [ebp - 0x20], 0x1001d02c
mov dword [ebp - 0x1c], 0x1001d044
mov dword [ebp - 0x18], 0x1001d05c
mov dword [ebp - 0x14], 0x1001d074
push dword [ebp + esi*4 - 0x54]
lea ecx, [ebp - 0x58]
call fcn.1006e97f
push dword [ebp - 0x58]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1008111e
lea ecx, [ebp - 0x58]
call fcn.1006e86f
inc esi
cmp esi, 0x11
jb 0x100810e4
mov ecx, dword [ebp - 0x58]
lea ecx, [ecx - 0x10]
call fcn.1008ebf5
call fcn.100a5666
ret 4
lea ecx, [ebp - 0x5c]
call fcn.1008eab0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.1006e4c0
push eax
lea ecx, [ebp - 0x60]
call fcn.1008ebd0
mov byte [ebp - 4], 2
push dword [eax]
lea eax, [ebp - 0x5c]
push 0x1001d090
push eax
call fcn.1008e3f3
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60]
call fcn.1002e190
mov edx, dword [edi]
lea ecx, [ebp - 0x5c]
call fcn.1006e4b8
mov esi, dword [edx + 4]
mov ecx, esi
push eax
push 0
call dword [0x100d0614]
mov ecx, edi
call esi
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x6c]
call fcn.10033292
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x64]
call fcn.10041860
push 0x100c55f0
lea eax, [ebp - 0x64]
push eax
call fcn.10093f6c
int3

Function at 0x100813a0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x18], 0
je 0x100813be
xor eax, eax
push eax
push eax
push esi
push 0x10088870
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x10], eax
pop esi
ret
Function at 0x10082ab6
Capabilities:
Delete file
Get common file path

Disassembly:
push 0x18
mov eax, 0x100b3fd6
call fcn.100a5688
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
mov ecx, dword [ebx + 8]
sub ecx, 0x10
call fcn.1008eb5d
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.1006e86f
push ecx
mov ecx, dword [ebx + 8]
mov esi, esp
sub ecx, 0x10
mov dword [ebp - 0x24], esi
call fcn.1008eb5d
add eax, 0x10
mov dword [esi], eax
call fcn.100301bd
mov dword [ebp - 0x14], eax
test eax, eax
jns 0x10082b63
mov edi, dword [ebp - 0x10]
lea ecx, [edi - 0x10]
call fcn.1008eb5d
add eax, 0x10
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
push eax
mov edx, 0x1001d234
lea ecx, [ebp - 0x1c]
call fcn.1006eaa2
mov byte [ebp - 4], 2
mov ebx, dword [ebx + 0x18]
push dword [eax]
push 0
mov edx, dword [ebx]
mov esi, dword [edx + 4]
mov ecx, esi
call dword [0x100d0614]
mov ecx, ebx
call esi
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.1008ebf5
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.1008ebf5
jmp 0x10082c3c
add ebx, 0xc
xor ecx, ecx
inc ecx
mov dword [ebp - 0x24], ebx
mov edx, 0x105
mov eax, dword [ebx]
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edx
or eax, ecx
jge 0x10082b87
push edx
mov ecx, ebx
call fcn.1008e652
push dword [ebx]
mov edi, dword [ebp - 0x10]
push 0
push 0x1001d270
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x10082c0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [ebp - 0x14], ebx
test ebx, ebx
jle 0x10082bb9
movzx ebx, bx
or ebx, 0x80070000
mov dword [ebp - 0x14], ebx
call fcn.1008e9f3
push eax
lea ecx, [ebp - 0x18]
call fcn.1008e796
push ebx
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 3
push 0x1001d278
push eax
call fcn.1008e3f3
mov eax, dword [ebp - 0x1c]
add esp, 0xc
mov esi, dword [ebp - 0x18]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x20], eax
push esi
push 0
mov eax, dword [eax]
mov ebx, dword [eax + 4]
mov ecx, ebx
call dword [0x100d0614]
mov ecx, dword [ebp - 0x20]
call ebx
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 0
call fcn.1008ebf5
mov ebx, dword [ebp - 0x24]
push 0xffffffffffffffff
mov ecx, ebx
call fcn.1008e388
mov eax, dword [ebp - 0x1c]
cmp byte [eax + 0x14], 0
je 0x10082c3c
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, 0x1000b094
mov ecx, esi
call fcn.1008e51a
push eax
push esi
mov ecx, ebx
call fcn.10073de3
lea ecx, [edi - 0x10]
call fcn.1008ebf5
mov eax, dword [ebp - 0x14]
call fcn.100a5651
ret
Function at 0x10082eff
Capabilities:
Check if file exists
Delete file

Disassembly:
push esi
mov esi, ecx
push dword [esi + 0xc]
mov dword [esi], 0x10015ea4
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10082f1e
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esi + 0xc]
sub ecx, 0x10
call fcn.1008ebf5
mov ecx, dword [esi + 8]
sub ecx, 0x10
pop esi
jmp fcn.1008ebf5

Function at 0x1008426c
Capabilities:
Accept command line arguments

Disassembly:
push 0x24
mov eax, 0x100b4218
call fcn.100a5688
mov esi, ecx
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x30]
call fcn.1002e7ee
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x30]
call fcn.1002ee3b
mov ecx, dword [ebp - 0x10]
mov eax, dword [eax]
lea ecx, [ecx - 0x10]
mov ebx, dword [eax - 0xc]
call fcn.1008ebf5
mov ecx, dword [esi + 0xc]
sub ecx, 0x10
call fcn.1008eb5d
lea edi, [eax + 0x10]
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 1
mov ecx, dword [esi + 8]
sub ecx, 0x10
call fcn.1008eb5d
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
push edi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.1006f221
neg eax
lea ecx, [esi - 0x10]
sbb al, al
inc al
mov dword [ebp - 0x10], eax
call fcn.1008ebf5
lea ecx, [edi - 0x10]
call fcn.1008ebf5
test ebx, ebx
jne 0x10084311
cmp byte [ebp - 0x10], bl
jne 0x10084311
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x15], bl
je 0x10084311
cmp byte [eax + 0x14], bl
je 0x10084311
inc ebx
jmp 0x10084313
xor bl, bl
lea ecx, [ebp - 0x30]
call fcn.1002eb70
mov al, bl
call fcn.100a5651
ret

Function at 0x10084dd3
Capabilities:
Accept command line arguments

Disassembly:
push 0x1c
mov eax, 0x100b438c
call fcn.100a5688
mov ebx, ecx
mov esi, dword [ebp + 8]
and dword [ebp - 4], 0
mov eax, dword [esi]
cmp eax, 0x80004004
jne 0x10084df6
mov eax, 0x80070642
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x28]
call fcn.1002e7ee
mov byte [ebp - 4], 1
push dword [esi]
push ecx
mov esi, esp
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 0xc]
lea ecx, [edi - 0x10]
call fcn.1008eb5d
add eax, 0x10
mov dword [esi], eax
mov ecx, dword [ebx + 0x40]
call fcn.1008972e
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x10], 0x13ed
call fcn.1002ebc5
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push 0
push ecx
push eax
lea ecx, [ebx + 4]
call fcn.1006672f
lea ecx, [ebp - 0x28]
call fcn.1002eb70
lea ecx, [edi - 0x10]
call fcn.1008ebf5
call fcn.100a5651
ret 0xc
Function at 0x100888a5
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push 0x14
mov eax, 0x100b489d
call fcn.100a5688
mov ebx, ecx
mov dword [ebp - 0x20], ebx
call fcn.1008e9f3
push eax
lea ecx, [ebp - 0x14]
call fcn.1008e796
and dword [ebp - 4], 0
call fcn.1008e9f3
push eax
lea ecx, [ebp - 0x10]
call fcn.1008e796
lea eax, [ebx + 0x2c]
mov byte [ebp - 4], 1
mov ecx, dword [eax]
sub ecx, 0x10
mov dword [ebp - 0x18], eax
call fcn.1008eb5d
add eax, 0x10
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.1006e86f
mov ebx, dword [ebx + 0xc]
mov edi, dword [ebp - 0x1c]
cmp ebx, 0xffff
jae 0x1008899b
push ebx
push edi
lea eax, [ebp - 0x10]
push 0x1001e794
push eax
call fcn.1008e3f3
mov esi, dword [ebp - 0x10]
add esp, 0x10
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10088951
mov eax, dword [ebp - 0x20]
push esi
push dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x1008895a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1008895a
cmp eax, 0xb7
jne 0x1008895f
inc ebx
cmp ebx, 0xffff
jb 0x1008890e
mov ebx, dword [ebp - 0x18]
jmp 0x100889a1
push eax
lea eax, [ebp - 0x14]
push 0x1001e7b8
push eax
call fcn.1008e3f3
mov eax, dword [ebp - 0x20]
add esp, 0xc
mov ebx, dword [eax + 8]
push dword [ebp - 0x14]
push 0
mov eax, dword [ebx]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x100d0614]
mov ecx, ebx
call esi
mov ebx, dword [ebp - 0x18]
lea ecx, [ebp - 0x10]
push ebx
call fcn.1006f350
jmp 0x1008899e
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x100889e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebx]
lea eax, [ebp - 0x14]
push 0x1001e830
push eax
call fcn.1008e3f3
mov eax, dword [ebp - 0x20]
add esp, 0x10
mov eax, dword [eax + 8]
push dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
push 0
mov eax, dword [eax]
mov ebx, dword [eax + 4]
mov ecx, ebx
call dword [0x100d0614]
mov ecx, dword [ebp - 0x20]
call ebx
lea ecx, [edi - 0x10]
call fcn.1008ebf5
lea ecx, [esi - 0x10]
call fcn.1008ebf5
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.1008ebf5
call fcn.100a5651
ret
Function at 0x100899c4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x100c6014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
mov esi, dword [eax + 0x18]
mov ecx, esi
call dword [0x100d0614]
mov ecx, edi
call esi
test eax, eax
jns 0x100899f7
xor al, al
jmp 0x10089abb
mov eax, dword [edi]
mov esi, dword [eax + 0x20]
mov ecx, esi
call dword [0x100d0614]
mov ecx, edi
call esi
test eax, eax
js 0x100899f0
mov eax, dword [edi]
mov esi, dword [eax + 0x28]
mov ecx, esi
call dword [0x100d0614]
mov ecx, edi
call esi
test eax, eax
js 0x100899f0
mov esi, 0x208
lea eax, [ebp - 0x20c]
push esi
push 0
push eax
call fcn.10093d90
push esi
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.10093d90
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x414]
push eax
push 0
push 0x1001eaec
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov eax, dword [edi]
lea ecx, [ebp - 0x414]
push ecx
push 0x1001eaf4
push dword [edi + 0x24b8]
mov esi, dword [eax + 0x44]
mov ecx, esi
call dword [0x100d0614]
mov ecx, edi
call esi
test eax, eax
js 0x100899f0
mov eax, dword [edi]
push dword [edi + 0x24b8]
mov esi, dword [eax + 0x38]
mov ecx, esi
call dword [0x100d0614]
mov ecx, edi
call esi
test eax, eax
setns al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10090ee8
mov esp, ebp
pop ebp
ret
Function at 0x1008a8ac
Capabilities:
Accept command line arguments

Disassembly:
push 0x34
mov eax, 0x100b4c06
call fcn.100a5688
mov dword [ebp - 0x20], edx
mov ebx, ecx
mov dword [ebp - 0x28], ebx
push 0
push 0x100c9424
push 0x100c9520
push 0
push ebx
call fcn.100a698d
mov edi, eax
add esp, 0x14
mov ecx, dword [edi]
push dword [ebp + 8]
mov esi, dword [ecx + 4]
mov ecx, esi
call dword [0x100d0614]
mov ecx, edi
call esi
test al, al
jne 0x1008a90f
mov esi, 0x1001f120
mov ecx, esi
call fcn.1008e51a
mov ecx, dword [ebp + 0x10]
push eax
push esi
call fcn.10073de3
xor eax, eax
inc eax
jmp 0x1008aa42
xor eax, eax
push eax
push 0x100c9540
push 0x100c9520
push eax
push ebx
mov byte [ebp - 0x11], al
call fcn.100a698d
add esp, 0x14
test eax, eax
je 0x1008a938
cmp dword [eax + 0x134], 5
sete byte [ebp - 0x11]
and dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x40]
call fcn.1002e7ee
and dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
push ecx
mov ecx, eax
call fcn.1002ee3b
push dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
mov byte [ebp - 4], 1
mov eax, dword [eax]
push ecx
push edi
push esi
mov edx, dword [eax - 0xc]
mov ecx, ebx
call fcn.1008930d
mov ecx, dword [ebp - 0x24]
mov bl, al
add ecx, 0xfffffff0
call fcn.1008ebf5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.1002eb70
test bl, bl
je 0x1008a9d5
cmp byte [ebp + 0x14], 0
je 0x1008a9a6
mov esi, 0x1001f198
jmp 0x1008a8f6
cmp esi, 4
je 0x1008a9cb
cmp byte [ebp - 0x11], 0
jne 0x1008a9cb
mov esi, 0x1001f210
mov ecx, esi
call fcn.1008e51a
mov ecx, dword [ebp + 0x10]
push eax
push esi
call fcn.10073de3
push 2
jmp 0x1008aa41
mov esi, 0x1001f1e0
jmp 0x1008a8f6
mov ecx, dword [ebp - 0x28]
call fcn.1008ab01
test al, al
je 0x1008a9fb
mov esi, 0x1001f254
mov ecx, esi
call fcn.1008e51a
mov ecx, dword [ebp + 0x10]
push eax
push esi
call fcn.10073de3
push 3
jmp 0x1008aa41
push 0x1001f280
lea ecx, [ebp - 0x18]
call fcn.1006f4e2
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x18]
push dword [eax - 0xc]
push eax
call fcn.10073de3
mov eax, dword [edi]
push dword [ebp - 0x18]
push 0
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x100d0614]
mov ecx, edi
call esi
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.1008ebf5
push 5
pop eax
call fcn.100a5651
ret 0x10
Function at 0x1008b442
Capabilities:
Get file size

Disassembly:
push 0x480
mov eax, 0x100b4ce3
call fcn.100a56bc
mov edi, edx
push 0x5c
pop eax
mov word [ebp - 0x1c], ax
xor eax, eax
mov dword [ebp - 0x478], 0x10020f80
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov edx, ecx
mov dword [ebp - 4], eax
push 0x1001cdec
lea ecx, [ebp - 0x47c]
call fcn.1006eafe
lea ecx, [ebp - 0x478]
push dword [eax]
call fcn.1003f8d2
mov ecx, dword [ebp - 0x47c]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
call fcn.1008ebf5
add bl, 1
je 0x1008b5c4
cmp dword [ebp - 0x14], 0
je 0x1008b4c0
mov eax, dword [ebp - 0x474]
shr eax, 4
and eax, 1
jmp 0x1008b4c2
xor eax, eax
lea ecx, [ebp - 0x478]
cmp eax, 1
je 0x1008b575
lea eax, [ebp - 0x488]
push eax
call fcn.1003f7bb
mov dword [ebp - 0x47c], eax
xor ecx, ecx
mov ebx, ecx
mov dword [ebp - 0x484], ecx
mov dword [ebp - 0x480], ecx
push ecx
push ecx
push 0x80
push 3
push 1
push SysReAllocString
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x484]
push dword [eax]
call fcn.10032ce5
test eax, eax
jns 0x1008b53b
mov eax, dword [ebp - 0x47c]
push dword [eax]
lea eax, [ebp - 0x47c]
push 0x1001f374
push 1
push dword [edi + 4]
push eax
call fcn.1002e335
add esp, 0x14
jmp 0x1008b54b
push 0
push dword [ebp - 0x484]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp dword [ebp - 0x484], 0
je 0x1008b567
push dword [ebp - 0x484]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x484], 0
add dword [edi], ebx
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x488]
jmp 0x1008b5a8
call fcn.1003f891
cmp eax, 1
je 0x1008b5b0
lea eax, [ebp - 0x48c]
push eax
lea ecx, [ebp - 0x478]
call fcn.1003f7bb
mov edx, edi
mov byte [ebp - 4], 3
mov ecx, eax
call fcn.1008b442
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x48c]
lea ecx, [ecx - 0x10]
call fcn.1008ebf5
lea ecx, [ebp - 0x478]
call fcn.1003f9a8
cmp eax, 1
je 0x1008b4ac
lea ecx, [ebp - 0x478]
mov dword [ebp - 0x478], 0x10020f80
call fcn.1003f9d5
call fcn.100a5666
ret

Function at 0x1008cb75
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1008cbcf
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1008cbc1
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x1008cbbd
cmp esi, ecx
jae 0x1008cbc1
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x1008cbab
cmp esi, ecx
jb 0x1008cbc5
xor eax, eax
jmp 0x1008cbce
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 4

Function at 0x10093b21
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x10002838
push 0x10002830
push 0x10002838
push 0
call fcn.10093aa1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10093b53
push dword [ebp + 8]
mov ecx, esi
call fcn.10091a0d
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]
Function at 0x10093b95
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x1000285c
push 0x10002854
push 0x1000285c
push 2
call fcn.10093aa1
add esp, 0x10
mov esi, eax
push dword [ebp + 8]
test esi, esi
je 0x10093bc6
mov ecx, esi
call fcn.10091a0d
call esi
jmp 0x10093bcc
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
pop ebp
ret

Function at 0x10093bcf
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x10002870
push 0x10002868
push 0x10002870
push 3
call fcn.10093aa1
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x10093c03
mov ecx, esi
call fcn.10091a0d
call esi
jmp 0x10093c09
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret

Function at 0x1009e853
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1009e513

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403e6a
nop
nop
sub eax, 0x403e10
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x431030
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43101e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x40287f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x40288e
pop dword [ebp - 0x48]
mov eax, 0x40288e
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0x4bea3e5e
sub dword [ebp - 0x58], 0xfd97f913
mov dword [ebp - 0x54], 0x63958fb9
sub dword [ebp - 0x54], 0x31624374
mov dword [ebp - 0x50], 0xd4a85ef0
sub dword [ebp - 0x50], 0x885c1ac2
mov dword [ebp - 0x4c], 0xc512e0b0
sub dword [ebp - 0x4c], 0xc512e0b0
lea eax, [ebp - 0x58]
push eax
mov eax, 0xbf61d0e
add eax, 0xf44a637e
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0xd60e913d
sub dword [ebp - 0x58], 0x619c27e7
mov dword [ebp - 0x54], 0xc5c38f32
sub dword [ebp - 0x54], 0x84572dbd
mov dword [ebp - 0x50], 0xfdad6cd7
add dword [ebp - 0x50], 0x65c1ff95
mov dword [ebp - 0x4c], 0x338b1a9
add dword [ebp - 0x4c], 0xfcc74e57
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, 0x32fc00b5
sub eax, 0x32bb7fe1
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x38ede
push 0
call eax
mov ecx, 0x5155
xor esi, esi
add esi, eax
mov edi, 0x6478420b
sub edi, 0x6437320b
add edi, dword [ebp - 0x48]
mov ebx, 0xa18c6f1
xor dword [ebp - 0xc], 0xa34ea62a
mov edx, dword [edi]
xor edx, ebx
mov dword [esi], edx
add dword [ebp - 0x40], ecx
add esi, 0xa4db0617
sub esi, 0xa4db0613
add edi, 0x7866e4aa
add edi, 0x87991b5a
loop 0x4029a1
add eax, 0xb6cfdd05
sub eax, 0xb6cea4de
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x5deefd72
sub ecx, 0x5daefd72
add ecx, dword [ebp - 0x48]
call ebx
leave
ret