joyce8/EMBER2024-capa huggingface dataset:
Function at 0x30032398
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x30033f10
call fcn.3003260e
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x3006be98
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x30032188
cmp eax, esi
jne 0x3003217b
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x3003218b
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x30032162
xor esi, esi
inc esi
mov eax, dword [0x3006be94]
cmp eax, esi
jne 0x3003219e
push 0x1f
call fcn.300fe000
pop ecx
jmp 0x300321d9
mov eax, dword [0x3006be94]
test eax, eax
jne 0x300321d3
mov dword [0x3006be94], esi
push 0x3000130c
push 0x30001300
call sub.MSVCR80.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x300321d9
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x300322b0
mov dword [0x3006bb50], esi
mov eax, dword [0x3006be94]
cmp eax, esi
jne 0x300321fd
push 0x300012fc
push 0x300012e4
call sub.MSVCR80.dll__initterm
pop ecx
pop ecx
mov dword [0x3006be94], 2
cmp dword [ebp - 0x1c], ebx
jne 0x3003220a
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x3006bea4], ebx
je 0x3003222b
push 0x3006bea4
call fcn.300329cc
pop ecx
test eax, eax
je 0x3003222b
push ebx
push 2
push ebx
call dword [0x3006bea4]
mov eax, dword [0x3006bb38]
mov ecx, dword [sym.imp.MSVCR80.dll___winitenv]
mov dword [ecx], eax
push dword [0x3006bb38]
push dword [0x3006bb3c]
push dword [0x3006bb34]
call fcn.3001d9bd
add esp, 0xc
mov dword [0x3006bb4c], eax
cmp dword [0x3006bb40], ebx
jne 0x30032296
push eax
call dword [sym.imp.MSVCR80.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.MSVCR80.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x3006bb50], ebx
jne 0x300322a4
call dword [sym.imp.MSVCR80.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x3006bb4c]
call fcn.30032653
ret
call fcn.30032029
jmp 0x30032140
Function at 0x425d70
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x20000]
push edi
or ebp, 0xffffffff
jmp 0x425d92
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x425d99
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x425d88
mov eax, 1
add ebx, ebx
jne 0x425dab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x425da0
jne 0x425dbc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x425da0
xor ecx, ecx
sub eax, 3
jb 0x425dd0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x425e42
mov ebp, eax
add ebx, ebx
jne 0x425ddb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x425de8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x425e0c
inc ecx
add ebx, ebx
jne 0x425df8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x425ded
jne 0x425e09
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x425ded
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x425e2c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x425e1d
jmp 0x425d8e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x425e2c
add edi, ecx
jmp 0x425d8e
pop esi
mov edi, esi
mov ecx, 0x3e1
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x425e4a
cmp byte [edi], 2
jne 0x425e4a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x425e4f
lea edi, [esi + 0x23000]
mov eax, dword [edi]
or eax, eax
je 0x425ec7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x399dc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x39a18]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x425e7c
mov ecx, edi
jns 0x425eab
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 + 0x39a20]
or eax, eax
je 0x425ec1
mov dword [ebx], eax
add ebx, 4
jmp 0x425e99
call dword [esi + 0x39a1c]
mov ebp, dword [esi + 0x39a24]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x425efb
sub esp, 0xffffff80
jmp 0x40155c
Function at 0x403c9d
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1004
call fcn.00416600
mov eax, dword [0x43565c]
xor eax, esp
mov dword [esp + 0x1000], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1014]
push edi
mov edi, dword [esp + 0x101c]
cmp word [esi], 0
je 0x403e36
push esi
call fcn.00403e53
push esi
call fcn.0041b233
pop ecx
push esi
mov ebx, eax
call fcn.00403e7e
test al, al
je 0x403d76
push esi
call fcn.00403e53
test al, al
je 0x403d2f
lea eax, [ebx + 4]
cmp dword [esp + 0x1020], eax
jbe 0x403e36
push dword [esp + 0x1020]
push str.__
push edi
call fcn.00407077
push dword [esp + 0x1020]
push esi
push edi
call fcn.0040704f
mov al, 1
jmp 0x403e38
push 0x5c
pop eax
cmp word [esi], ax
jne 0x403e36
lea ebp, [esi + 2]
cmp word [ebp], ax
jne 0x403e36
mov esi, dword [esp + 0x1020]
lea eax, [ebx + 6]
cmp esi, eax
jbe 0x403e36
push esi
push str.__
push edi
call fcn.00407077
push esi
push 0x42a630
push edi
call fcn.0040704f
push esi
push ebp
jmp 0x403d22
lea eax, [esp + 0x10]
mov ebp, 0x7ff
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x403e36
cmp eax, ebp
ja 0x403e36
movzx eax, word [esi]
push eax
call fcn.00403eb3
test al, al
je 0x403ddb
lea eax, [ebx + 6]
mov ebx, dword [esp + 0x1020]
cmp ebx, eax
jbe 0x403e36
push ebx
push str.__
push edi
call fcn.00407077
xor eax, eax
mov word [esp + 0x14], ax
lea eax, [esp + 0x10]
push ebx
push eax
push edi
call fcn.0040704f
push ebx
jmp 0x403d21
push 0x800
lea eax, [esp + 0x14]
push eax
call fcn.0040383d
lea eax, [esp + 0x10]
push eax
call fcn.0041b233
add ebx, 4
add eax, ebx
mov ebx, dword [esp + 0x1024]
pop ecx
cmp ebx, eax
jbe 0x403e36
push ebx
push str.__
push edi
call fcn.00407077
push ebx
lea eax, [esp + 0x14]
push eax
push edi
call fcn.0040704f
cmp word [esi], 0x2e
jne 0x403dd5
movzx eax, word [esi + 2]
push eax
call fcn.00403eb3
test al, al
je 0x403dd5
add esi, 4
jmp 0x403dd5
xor al, al
mov ecx, dword [esp + 0x1010]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00416559
add esp, 0x1004
ret 0xc
Function at 0x4011a0
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
test edx, edx
jle 0x4012ac
cmp edx, 0x40
jb 0x401295
movaps xmm1, xmmword [0x413ca0]
mov ecx, edx
movaps xmm2, xmmword [0x413cb0]
movaps xmm3, xmmword [0x413c80]
movaps xmm4, xmmword [0x413c60]
movaps xmm5, xmmword [0x413c90]
movaps xmm6, xmmword [0x413c70]
push esi
and ecx, 0x8000003f
jns 0x4011ed
dec ecx
or ecx, 0xffffffc0
inc ecx
mov esi, edx
sub esi, ecx
movups xmm0, xmmword [eax + 0x416780]
pxor xmm0, xmm1
pxor xmm0, xmm2
pxor xmm0, xmm3
pxor xmm0, xmm4
pxor xmm0, xmm5
pxor xmm0, xmm6
movups xmmword [eax + 0x416780], xmm0
movups xmm0, xmmword [eax + 0x416790]
pxor xmm0, xmm1
pxor xmm0, xmm2
pxor xmm0, xmm3
pxor xmm0, xmm4
pxor xmm0, xmm5
pxor xmm0, xmm6
movups xmmword [eax + 0x416790], xmm0
movups xmm0, xmmword [eax + 0x4167a0]
pxor xmm0, xmm1
pxor xmm0, xmm2
pxor xmm0, xmm3
pxor xmm0, xmm4
pxor xmm0, xmm5
pxor xmm0, xmm6
movups xmmword [eax + 0x4167a0], xmm0
movups xmm0, xmmword [eax + 0x4167b0]
pxor xmm0, xmm1
pxor xmm0, xmm2
pxor xmm0, xmm3
pxor xmm0, xmm4
pxor xmm0, xmm5
pxor xmm0, xmm6
movups xmmword [eax + 0x4167b0], xmm0
add eax, 0x40
cmp eax, esi
jl 0x4011f1
pop esi
cmp eax, edx
jge 0x4012ac
nop dword [eax]
xor byte [eax + 0x416780], 0xfc
inc eax
cmp eax, edx
jl 0x4012a0
ret

Function at 0x4012b0
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
mov ecx, dword [0x670d80]
mov dl, byte [eax + 0x416782]
xor cl, ch
xor cl, byte [0x670d82]
xor cl, byte [0x670d83]
xor byte [eax + 0x416780], cl
mov ecx, dword [0x670d80]
xor cl, ch
xor cl, byte [0x670d82]
xor cl, byte [0x670d83]
xor byte [eax + 0x416781], cl
mov ecx, dword [0x670d80]
xor dl, cl
xor dl, ch
xor dl, byte [0x670d82]
xor dl, byte [0x670d83]
mov byte [eax + 0x416782], dl
mov ecx, dword [0x670d80]
xor cl, ch
xor cl, byte [0x670d82]
xor cl, byte [0x670d83]
xor byte [eax + 0x416783], cl
add eax, 4
cmp eax, 0x25a600
jb 0x4012b2
mov eax, 0x25a600
ret
Function at 0x401520
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
call fcn.004012b0
mov edx, eax
mov dword [ebp - 4], eax
call fcn.004011a0
call fcn.004023c0
mov ebx, eax
test ebx, ebx
je 0x401588
mov eax, dword [ebx + 0x18]
push 0x1c
push 0x40
call eax
mov edi, eax
test edi, edi
je 0x401588
push 1
mov edx, 0x416780
mov dword [edi + 0xc], ebx
mov ecx, edi
mov dword [edi + 0x10], 1
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
call fcn.00401e80
add esp, 4
test eax, eax
jne 0x40158a
mov esi, dword [ebx + 0x1c]
push edi
call esi
push ebx
call esi
xor edi, edi
push dword [ebp - 4]
push 0
push 0x416780
call fcn.00404040
add esp, 0xc
test edi, edi
je 0x401669
mov ecx, dword [edi]
mov dword [edi + 0x18], 0
test ecx, ecx
je 0x40161f
mov eax, dword [ecx + 0x3c]
mov eax, dword [eax + ecx + 0x78]
add eax, ecx
mov ebx, dword [eax + 0x24]
mov edx, dword [eax + 0x20]
add ebx, ecx
mov dword [ebp - 0xc], ebx
add edx, ecx
mov ebx, dword [eax + 0x1c]
mov eax, dword [eax + 0x14]
add ebx, ecx
mov dword [ebp - 0x10], ebx
xor ebx, ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
test eax, eax
jle 0x40161f
nop
mov eax, dword [edx + ebx*4]
mov esi, 0x413bf0
add eax, ecx
sub esi, eax
nop dword [eax]
mov cl, byte [esi + eax]
lea eax, [eax + 1]
mov dl, byte [eax - 1]
test cl, cl
je 0x40160b
cmp cl, dl
je 0x4015f0
movzx eax, dl
movzx ecx, cl
sub ecx, eax
jmp 0x401610
movzx ecx, dl
neg ecx
test ecx, ecx
je 0x401658
mov ecx, dword [edi]
inc ebx
mov edx, dword [ebp - 8]
cmp ebx, dword [ebp - 4]
jl 0x4015e0
xor esi, esi
xor ebx, ebx
lea eax, [ebx + 1]
test esi, esi
je 0x40163f
call fcn.00401340
push eax
call esi
add esp, 4
test al, al
mov eax, 1
cmovne ebx, eax
push 0
push 0
mov edx, edi
mov ecx, eax
call fcn.00401c80
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
movzx eax, word [eax + ebx*2]
mov esi, dword [esi + eax*4]
add esi, dword [edi]
jmp 0x401621
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401c80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, edx
push edi
sub ecx, 0
je 0x401deb
sub ecx, 1
je 0x401d5f
sub ecx, 1
jne 0x401de2
test esi, esi
je 0x401de2
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x401de2
mov ebx, dword [esi]
mov dword [esi + 0x18], 0
test ebx, ebx
je 0x401de2
mov eax, dword [ebx + 0x3c]
xor edi, edi
mov eax, dword [eax + ebx + 0x78]
add eax, ebx
mov esi, dword [eax + 0x24]
mov edx, dword [eax + 0x20]
add esi, ebx
mov dword [ebp - 0xc], esi
add edx, ebx
mov esi, dword [eax + 0x1c]
mov eax, dword [eax + 0x14]
add esi, ebx
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], eax
test eax, eax
jle 0x401de2
nop dword [eax + eax]
mov eax, dword [edx + edi*4]
mov esi, ecx
add eax, ebx
sub esi, eax
nop dword [eax]
mov cl, byte [esi + eax]
lea eax, [eax + 1]
mov dl, byte [eax - 1]
test cl, cl
je 0x401d2b
cmp cl, dl
je 0x401d10
movzx eax, dl
movzx ecx, cl
sub ecx, eax
jmp 0x401d30
movzx ecx, dl
neg ecx
test ecx, ecx
je 0x401d49
mov ecx, dword [ebp + 8]
inc edi
mov edx, dword [ebp - 8]
cmp edi, dword [ebp - 4]
jl 0x401d00
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + edi*2]
pop edi
pop esi
mov eax, dword [ecx + eax*4]
add eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x401de2
cmp dword [esi + 0x10], 0
mov dword [esi + 0x18], 0
je 0x401d95
mov ecx, dword [esi]
test ecx, ecx
je 0x401d95
mov eax, dword [ecx + 0x3c]
mov eax, dword [eax + ecx + 0x28]
test eax, eax
je 0x401d95
add eax, ecx
jne 0x401d8e
mov dword [esi + 0x18], 6
jmp 0x401d95
push 0
push 0
push ecx
call eax
mov ecx, dword [esi + 0xc]
mov eax, ecx
test ecx, ecx
je 0x401dd5
cmp dword [esi + 0x14], 0
je 0x401dd5
mov edx, dword [esi]
test edx, edx
je 0x401dd5
mov eax, dword [ecx + 0x10]
push 0x8000
push 0
push edx
call eax
mov eax, dword [esi + 0xc]
mov dword [esi], 0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
mov dword [esi + 0x14], 0
mov edi, dword [eax + 0x1c]
test edi, edi
je 0x401de2
push eax
call edi
push esi
call edi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004023c0
mov ebx, eax
test ebx, ebx
jne 0x401e0e
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x401e70
xor edi, edi
mov dword [eax], 0xff
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x18]
push 0x1c
push 0x40
call eax
mov edi, eax
test edi, edi
je 0x401df6
mov eax, dword [ebp + 8]
mov edx, esi
push eax
mov ecx, edi
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
call fcn.00401e80
add esp, 4
test eax, eax
je 0x401e5b
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x401e72
mov dword [eax], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x401e67
mov eax, dword [edi + 0x18]
mov dword [ecx], eax
mov esi, dword [ebx + 0x1c]
push edi
call esi
push ebx
call esi
xor edi, edi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402310
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x402394
test ecx, ecx
je 0x402394
mov eax, 0x5a4d
cmp word [ebx], ax
jne 0x402394
mov eax, dword [ebx + 0x3c]
cmp dword [eax + ebx], 0x4550
jne 0x402394
mov eax, dword [eax + ebx + 0x78]
test eax, eax
je 0x402394
lea edx, [eax + ebx]
xor edi, edi
mov eax, dword [edx + 0x20]
add eax, ebx
mov dword [ebp + 8], edx
mov dword [ebp - 4], eax
cmp dword [edx + 0x18], edi
jbe 0x402394
mov eax, dword [eax + edi*4]
mov esi, ecx
add eax, ebx
sub esi, eax
mov cl, byte [esi + eax]
lea eax, [eax + 1]
mov dl, byte [eax - 1]
test cl, cl
je 0x40237c
cmp cl, dl
je 0x402361
movzx eax, dl
movzx ecx, cl
sub ecx, eax
jmp 0x402381
movzx ecx, dl
neg ecx
test ecx, ecx
je 0x40239d
mov eax, dword [ebp + 8]
inc edi
mov ecx, dword [ebp + 0xc]
cmp edi, dword [eax + 0x18]
mov eax, dword [ebp - 4]
jb 0x402358
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x24]
lea eax, [eax + edi*2]
movzx ecx, word [eax + ebx]
mov eax, dword [edx + 0x1c]
pop edi
pop esi
lea eax, [eax + ecx*4]
mov eax, dword [eax + ebx]
add eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4068db
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4068ff
xor eax, eax
test eax, eax
je 0x406912
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406912
xor ecx, ecx
jmp 0x406915
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406a38
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43110c], 0
push esi
jne 0x406a6f
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406a49
mov dword [ecx*4 + 0x431108], eax
inc ecx
cmp ecx, 0x100
jl 0x406a44
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406aa0
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x431108]
xor eax, esi
inc ecx
dec edx
jne 0x406a82
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..rsrc
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x2461079
nop
nop
nop
nop
test eax, eax
je 0x43204e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x432024
nop
mov eax, section..data
nop
mov ebx, 0x42f314
mov ecx, 0x69ed1597
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x40ad45
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x40adbd
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcslen
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x40ad9e
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x40ad9b
cmp ecx, 0x5c
je 0x40ad9b
cmp ecx, 0x2f
jne 0x40ada8
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x40ad88
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x40adbf
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x40b0c0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 0x14], 0
jne 0x40b0fc
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4

Function at 0x40b991
Capabilities:
Hash data using sha1

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 8]
and dword [ecx + 0x18], 0
and dword [ecx + 0x14], 0
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x10], 0xc3d2e1f0
mov dword [ecx + 0x5c], eax
ret

Function at 0x40cef0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x40d968
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push dword [0x418678]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x40d9c9
push esi
push dword [0x418674]
push 8
push dword [0x418068]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push edi
push dword [0x418678]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [0x418670]
jmp 0x40d9b9
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x40d9b7
mov eax, dword [esi + 8]
add eax, edi
push eax
call ecx
pop ecx
mov esi, dword [esi]
test esi, esi
jne 0x40d9a7
push edi
push 0x40d906
call fcn.00412722
pop esi
mov eax, dword [esp + 8]
add eax, edi
pop edi
ret 4
Function at 0x402ece
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, esi
lea eax, [ebp - 4]
and esi, 0x300
push eax
mov eax, esi
and edi, 1
or al, 9
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004063c1
xor ebx, ebx
cmp eax, ebx
jne 0x402fb1
test byte [ebp + 0x10], 2
je 0x402f2f
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x214]
mov dword [ebp - 8], ebx
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x402f96
lea eax, [ebp - 0x214]
push 0x105
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x402f6b
test edi, edi
jne 0x402f96
push dword [ebp + 0x10]
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 4]
call fcn.00402ece
test eax, eax
jne 0x402f74
lea eax, [ebp - 0x214]
push 0x105
push eax
push edi
push dword [ebp - 4]
call ebx
test eax, eax
je 0x402f44
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.00406948
test eax, eax
jne 0x402fa6
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x402fb1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x402fb1
push 0
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4032d9
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x4032f9
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x40330b
mov dword [ebp - 0xc], 0x797700
mov eax, dword [ebp + 8]
test eax, eax
jl 0x403320
mov ecx, dword [0x7a82b8]
add ecx, eax
push ecx
call fcn.004034e7
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.004034d1
test eax, eax
je 0x4034bf
test byte [ebp + 0x17], 0x80
je 0x40346a
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
and dword [0x40ce58], 0
and dword [ebp + 0x14], 0x7fffffff
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov byte [0x40ce40], 0xb
mov dword [ebp + 8], eax
jle 0x4034c7
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x403376
mov esi, dword [ebp + 0x14]
mov edi, 0x793700
push esi
push edi
call fcn.004034d1
test eax, eax
je 0x4034bf
sub dword [ebp + 0x14], esi
mov dword [0x40ce30], edi
mov dword [0x40ce34], esi
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
push 0x40ce30
mov dword [0x40ce38], edi
mov dword [0x40ce3c], eax
call fcn.00406aa3
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x403462
mov esi, dword [0x40ce38]
sub esi, edi
call ebx
test byte [0x7a8314], 1
mov edi, eax
je 0x40341d
sub eax, dword [ebp - 0x10]
cmp eax, 0xc8
ja 0x4033e4
cmp dword [ebp + 0x14], 0
jne 0x40341d
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x94]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x94]
push eax
push 0
call fcn.004055d9
mov dword [ebp - 0x10], edi
test esi, esi
je 0x403456
cmp dword [ebp + 0x10], 0
jne 0x40343c
push esi
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call fcn.004060f6
test eax, eax
je 0x403466
add dword [ebp - 4], esi
jmp 0x40344a
mov eax, dword [0x40ce38]
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x14], 4
jne 0x403399
jmp 0x4034c7
cmp dword [ebp + 0x14], 0
jg 0x403369
jmp 0x4034c7
push 0xfffffffffffffffc
jmp 0x4034c1
push 0xfffffffffffffffe
jmp 0x4034c1
test edi, edi
jne 0x4034ac
cmp dword [ebp + 0x14], edi
jle 0x4034c7
mov ebx, dword [ebp - 8]
cmp dword [ebp + 0x14], ebx
mov esi, dword [ebp + 0x14]
jl 0x403480
mov esi, ebx
mov edi, 0x793700
push esi
push edi
call fcn.004034d1
test eax, eax
je 0x4034bf
push esi
push edi
push dword [ebp + 0xc]
call fcn.004060f6
test eax, eax
je 0x403466
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x403476
jmp 0x4034c7
cmp dword [ebp + 0x14], esi
jge 0x4034b4
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.004034d1
test eax, eax
jne 0x4034c4
push 0xfffffffffffffffd
pop eax
jmp 0x4034ca
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10