joyce8/EMBER2024-capa huggingface dataset:
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.MSVCRT.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 0x4031f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x403203
pop dword [ebp - 0x28]
mov eax, 0xa1285c36
sub eax, 0xa0e82a33
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x7c032308
add dword [ebp - 0x38], 0xd24f2243
mov dword [ebp - 0x34], 0x16db2f08
sub dword [ebp - 0x34], 0xe4a7e2c3
mov dword [ebp - 0x30], 0x22b21225
sub dword [ebp - 0x30], 0xd665cdf7
mov dword [ebp - 0x2c], 0x91e14d29
sub dword [ebp - 0x2c], 0x91e14d29
lea eax, [ebp - 0x38]
push eax
mov eax, 0x8c29ba09
add eax, 0x7416b65b
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0x6ed13535
add dword [ebp - 0x38], 0x5a13421
mov dword [ebp - 0x34], 0x490efa75
sub dword [ebp - 0x34], 0x7a29900
mov dword [ebp - 0x30], 0x1c9a4f9e
sub dword [ebp - 0x30], 0xb92ae332
mov dword [ebp - 0x2c], 0xd78b1837
sub dword [ebp - 0x2c], 0xd78b1837
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0xd07c4583
add eax, 0x2fc42b25
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x33ab9
push 0
call eax
mov ecx, 0xc19c9018
sub ecx, 0xc19c53ca
xor edi, edi
add edi, eax
mov ebx, 0xe0c86192
sub ebx, 0xe0876192
add ebx, dword [ebp - 0x28]
mov edx, 0xbe3344f4
add dword [ebp - 8], 0xa21d131d
mov esi, dword [ebx]
xor dword [ebp - 8], 0x29f59233
xor esi, edx
mov dword [edi], esi
sub dword [ebp - 0x24], 0x33c9beb4
add edi, 4
add ebx, 0x465d2e44
add ebx, 0xb9a2d1c0
loop 0x403321
add eax, 0xc5010dca
add eax, 0x3affd641
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xf144ae31
sub ecx, 0xf104ae31
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.00408518
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.00408518
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.00408518
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.00408518
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.00408518
mov dword [0x41203c], eax
call fcn.00408518
test eax, eax
jge 0x402550
push 8
call fcn.00408518
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.00408518
pop ecx
push 1
call fcn.00408518
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.00408518
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.00408518
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.00408518
jmp 0x402495

Function at 0x408518
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x408527
pop dword [ebp - 0xc]
mov eax, 0x408527
sub dword [ebp - 0xc], eax
push 0x40
push 0x1000
push 0x36bd0
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0xc]
call dword [eax]
mov ecx, 0x3da2
mov esi, eax
mov edx, 0x619b3b02
sub edx, 0x6159ff3e
add edx, dword [ebp - 0xc]
mov ebx, 0x10d69354
xor dword [ebp - 8], 0x3b511029
mov edi, dword [edx]
add dword [ebp - 4], ebx
xor edi, ebx
sub dword [ebp - 4], ecx
mov dword [esi], edi
xor dword [ebp - 8], 0xa8d9ec58
add esi, 4
add edx, 4
loop 0x408570
add eax, 0x2af89cba
add eax, 0xd5084ca1
mov ebx, eax
add eax, 0x44f6b19c
add eax, 0xbb094e69
mov ecx, 0x60fae16b
sub ecx, 0x60bae16b
add ecx, dword [ebp - 0xc]
call ebx
leave
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 0x100159c0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1005a1b4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x1005b254], 0
jne 0x100159ea
call fcn.10018270
test eax, eax
jne 0x100159ea
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [0x1005b254]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x10015a25
mov edx, dword [ebp + 8]
shr edx, 0x10
and edx, 0xffff
movzx eax, dx
test eax, eax
jne 0x10015a1d
lea ecx, [ebp - 0x14]
mov dword [ebp + 8], ecx
push 0xfffffffffffffffe
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001fa8c
mov esp, ebp
pop ebp
ret 4

Function at 0x10015a50
Capabilities:
Check os version
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
pushal
mov ebx, dword fs:[0x18]
mov eax, dword fs:[0x30]
mov ebx, dword [eax + 0xa8]
mov eax, dword [eax + 0xa4]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], eax
popal
cmp dword [ebp - 4], 5
jne 0x10015aa4
cmp dword [ebp - 8], 0
jne 0x10015aa4
jmp 0x10015b1a
cmp dword [ebp - 4], 5
jne 0x10015ab2
cmp dword [ebp - 8], 1
jne 0x10015ab2
jmp 0x10015b1a
cmp dword [ebp - 4], 5
jne 0x10015ac0
cmp dword [ebp - 8], 2
jne 0x10015ac0
jmp 0x10015b1a
cmp dword [ebp - 4], 6
jne 0x10015ace
cmp dword [ebp - 8], 0
jne 0x10015ace
jmp 0x10015b1a
cmp dword [ebp - 4], 6
jne 0x10015ae3
cmp dword [ebp - 8], 1
jne 0x10015ae3
mov eax, 7
jmp 0x10015b1c
cmp dword [ebp - 4], 6
jne 0x10015af8
cmp dword [ebp - 8], 2
jne 0x10015af8
mov eax, 8
jmp 0x10015b1c
cmp dword [ebp - 4], 6
jne 0x10015b0d
cmp dword [ebp - 8], 3
jne 0x10015b0d
mov eax, 8
jmp 0x10015b1c
cmp dword [ebp - 4], 0xa
jne 0x10015b1a
mov eax, 0xa
jmp 0x10015b1c
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10018800
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x100188d4
push 0x100489b4
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x18]
push ecx
push 0x40
push 0x1e
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov byte [ebp - 8], 0xc2
mov byte [ebp - 7], 0x10
mov byte [ebp - 6], 0
mov byte [ebp - 5], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
jmp 0x1001886a
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 3
jge 0x10018881
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov cl, byte [ebp + eax - 8]
mov byte [edx], cl
jmp 0x10018861
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp - 0xc]
movsx edx, byte [ecx + eax]
cmp edx, 0xc2
jne 0x100188ca
mov eax, 1
shl eax, 0
mov ecx, dword [ebp - 0xc]
movsx edx, byte [ecx + eax]
cmp edx, 0x10
jne 0x100188ca
mov eax, 1
shl eax, 1
mov ecx, dword [ebp - 0xc]
movsx edx, byte [ecx + eax]
test edx, edx
jne 0x100188ca
mov dword [0x1005b250], 0x400
jmp 0x100188d4
mov dword [0x1005b250], 2
mov esp, ebp
pop ebp
ret

Function at 0x10018e30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x10018e51
push 0x1005b2b8
push 0
push 0
push 0x10015d70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc

Function at 0x1001ab80
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov byte [eax], 0
mov ecx, 4
imul edx, ecx, 0
mov eax, dword [ebp - 4]
mov dword [eax + edx + 0x44], 0
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp - 4]
mov dword [edx + ecx + 0x44], 0
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp - 4]
mov dword [edx + ecx + 0x4c], 0x67452301
mov eax, 4
shl eax, 0
mov ecx, dword [ebp - 4]
mov dword [ecx + eax + 0x4c], 0xefcdab89
mov edx, 4
shl edx, 1
mov eax, dword [ebp - 4]
mov dword [eax + edx + 0x4c], 0x98badcfe
mov ecx, 4
imul edx, ecx, 3
mov eax, dword [ebp - 4]
mov dword [eax + edx + 0x4c], 0x10325476
mov esp, ebp
pop ebp
ret
Function at 0x10033d02
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100517b0
push 0x100517a8
push str.FlsAlloc
push 0x1e
call fcn.10033b6f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10033d36
push dword [ebp + 8]
mov ecx, esi
call dword [0x1004320c]
call esi
jmp 0x10033d3c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10033d80
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100517c0
push 0x100517b8
push str.FlsGetValue
push 0x20
call fcn.10033b6f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10033db7
push dword [ebp + 8]
mov ecx, esi
call dword [0x1004320c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1003736c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10037409
push ebx
push esi
call fcn.10037335
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1003610b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100373b6
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10037408
push edi
push eax
call fcn.10030f1f
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100373d6
call fcn.10030ce8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10037407
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1003610b
add esp, 0x20
test eax, eax
jne 0x100373f5
push edi
call fcn.10030ce8
jmp 0x100373fd
push ebx
call fcn.10030ce8
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1003c4b9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1003c32a
Function at 0x1003e8e4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x1005bc20]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1003e924
cmp byte [ebx], 0xa
jne 0x1003e924
or byte [eax + edi + 0x28], 4
jmp 0x1003e929
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x1003ea27
mov al, byte [edx]
cmp al, 0x1a
je 0x1003ea09
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x1003e958
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x1003e97d
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x1003e987
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x1003e93a
jmp 0x1003ea27
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1003ea04
cmp dword [ebp - 0xc], 0
je 0x1003ea04
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x1005bc20]
test byte [eax + edi + 0x28], 0x48
je 0x1003e9de
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1003e9c9
mov byte [esi], dl
jmp 0x1003e9da
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1005bc20]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1003ea27
cmp byte [ebp - 1], 0xa
jne 0x1003e9ed
cmp esi, ebx
jne 0x1003e9ed
mov byte [esi], 0xa
jmp 0x1003ea26
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1003e824
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1003ea27
mov byte [esi], 0xd
jmp 0x1003ea26
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x1005bc20]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1003ea23
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1003ea27
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1003ea30
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x1005bc20]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1003ea73
cmp word [esi], dx
jne 0x1003ea73
or byte [edi + eax + 0x28], 4
jmp 0x1003ea78
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x1003ebb1
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x1003eb91
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x1003eaba
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1003eaf0
cmp eax, edx
jae 0x1003eafc
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x1003ea92
jmp 0x1003ebb1
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1003eb8d
cmp dword [ebp - 0x14], 0
je 0x1003eb8d
mov eax, dword [ebx*4 + 0x1005bc20]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x1003eb65
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x1003ebab
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x1005bc20]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x1005bc20]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x1005bc20]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x1003ebae
pop ebx
cmp word [ebp - 4], bx
jne 0x1003eb76
cmp esi, dword [ebp + 0xc]
jne 0x1003eb76
mov word [esi], bx
jmp 0x1003ebae
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1003e824
add esp, 0x10
cmp word [ebp - 4], bx
je 0x1003ebb1
push 0xd
jmp 0x1003ebaa
mov ecx, dword [ebx*4 + 0x1005bc20]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1003eba8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1003ebb1
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
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 0x433001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x433072
nop
mov ebx, 0x40de38
nop
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
mov esi, 0x2f2f5b70
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x72d05ec0
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x6174b
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, ecx
mov eax, dword [edi + 0x44]
xor ebx, ebx
cmp eax, ebx
je 0x617a6
cmp eax, 0xffffffff
je 0x617a6
cmp dword [ebp + 8], ebx
je 0x617a6
push esi
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [edi + 0x44]
push ebx
mov esi, eax
lea eax, [ebp - 4]
push eax
add esi, esi
push esi
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x6f302
cmp esi, dword [ebp - 4]
jne 0x6f31d
pop esi
pop edi
mov eax, ebx
pop ebx
leave
ret 4
mov ebx, 0x80070057
jmp 0x6179e

Function at 0x6227c
Capabilities:
Query environment variable

Disassembly:
push 0x20
mov eax, 0x7621c
call fcn.00061350
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
push ebx
push 0x20019
push dword [0x7b458]
lea ecx, [ebp - 0x2c]
push 0x80000002
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
call fcn.00062097
test eax, eax
jne 0x623c4
lea eax, [ebp - 0x20]
push eax
push dword [0x7b45c]
lea ecx, [ebp - 0x2c]
push ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], ebx
call fcn.000623dc
test eax, eax
jne 0x623c4
mov eax, dword [ebp - 0x20]
xor ecx, ecx
push 2
add eax, eax
pop edx
mul edx
seto cl
mov byte [ebp - 4], 1
neg ecx
or ecx, eax
push ecx
call fcn.000613e0
mov esi, eax
pop ecx
mov dword [ebp - 0x1c], esi
cmp esi, ebx
je 0x623c4
lea eax, [ebp - 0x20]
push eax
push dword [0x7b45c]
lea ecx, [ebp - 0x2c]
push esi
call fcn.000623dc
test eax, eax
jne 0x623bb
push ebx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call esi
mov edi, eax
cmp edi, ebx
je 0x623bb
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.000613e0
pop ecx
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x623bb
push edi
push eax
push dword [ebp - 0x1c]
call esi
mov esi, eax
cmp esi, ebx
je 0x623b2
cmp dword [ebp + 8], ebx
je 0x6ea08
push dword [0x7b460]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + esi + 1]
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.000613e0
pop ecx
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x623b2
push dword [ebp - 0x14]
push esi
push eax
call fcn.000621cb
push dword [0x7b460]
push edi
push dword [ebp - 0x18]
call fcn.00062436
push dword [ebp - 0x14]
call fcn.000613c0
pop ecx
push dword [ebp - 0x1c]
call fcn.000613c0
pop ecx
lea ecx, [ebp - 0x2c]
call fcn.00061f10
mov eax, dword [ebp - 0x18]
call fcn.00061390
ret 4
Function at 0x623dc
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push edi
push esi
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 4], ebx
jbe 0x6242c
cmp dword [ebp - 4], 2
ja 0x6e965
mov ecx, dword [edi]
test cl, 1
jne 0x6242c
cmp esi, ebx
je 0x62425
shr ecx, 1
cmp word [esi + ecx*2 - 2], bx
jne 0x6242c
pop edi
pop esi
pop ebx
leave
ret 0xc
push 0xd
pop eax
jmp 0x62425

Function at 0x624ed
Capabilities:
Delete file
Move file

Disassembly:
push 0x14
mov eax, 0x76b05
call fcn.00061350
mov esi, ecx
mov eax, dword [esi + 0x44]
xor edi, edi
mov ebx, 0x8007000e
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
cmp eax, edi
je 0x62519
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x44], edi
cmp dword [ebp + 8], edi
je 0x6265b
cmp dword [ebp + 0xc], edi
je 0x6265b
push 1
call fcn.0006227c
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0x6264a
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov dword [ebp - 4], edi
call esi
push dword [ebp + 8]
mov edi, eax
call esi
lea eax, [eax + edi + 1]
xor ecx, ecx
push 2
pop edx
mov dword [ebp - 0x20], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.000613e0
pop ecx
mov dword [ebp - 0x18], eax
test eax, eax
je 0x6259b
push dword [ebp - 0x1c]
inc edi
push edi
push eax
call fcn.000621cb
mov ebx, eax
test ebx, ebx
jl 0x6259b
push dword [ebp + 8]
push dword [ebp - 0x20]
push dword [ebp - 0x18]
call fcn.00062436
mov ebx, eax
test ebx, ebx
jl 0x6259b
xor ebx, ebx
inc ebx
or dword [ebp - 4], 0xffffffff
test ebx, ebx
jl 0x62632
push 2
pop ebx
push dword [ebp - 0x1c]
mov dword [ebp - 4], ebx
call esi
push dword [ebp + 0xc]
mov edi, eax
call esi
lea esi, [eax + edi + 1]
xor ecx, ecx
mov eax, esi
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.000613e0
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x62654
push dword [ebp - 0x1c]
inc edi
push edi
push eax
call fcn.000621cb
mov ebx, eax
test ebx, ebx
jl 0x62623
push dword [ebp + 0xc]
push esi
push dword [ebp - 0x14]
call fcn.00062436
mov ebx, eax
test ebx, ebx
jl 0x62623
xor ebx, ebx
inc ebx
test ebx, ebx
jl 0x62623
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x6f3a2
xor ebx, ebx
cmp dword [ebp - 0x14], 0
je 0x62632
push dword [ebp - 0x14]
call fcn.000613c0
pop ecx
cmp dword [ebp - 0x18], 0
je 0x62641
push dword [ebp - 0x18]
call fcn.000613c0
pop ecx
push dword [ebp - 0x1c]
call fcn.000613c0
pop ecx
mov eax, ebx
call fcn.00061390
ret 8
mov ebx, 0x8007000e
jmp 0x625fe
mov ebx, 0x80070057
jmp 0x6264a