joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4068fb
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 0x40691f
xor eax, eax
test eax, eax
je 0x406932
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406932
xor ecx, ecx
jmp 0x406935
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 0x406a58
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x46590c], 0
push esi
jne 0x406a8f
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 0x406a69
mov dword [ecx*4 + 0x465908], eax
inc ecx
cmp ecx, 0x100
jl 0x406a64
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406ac0
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 + 0x465908]
xor eax, esi
inc ecx
dec edx
jne 0x406aa2
pop edi
not eax
pop esi
ret 0xc

Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x403f59
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x403f68
pop dword [ebp - 0x10]
mov eax, 0x97041b65
add eax, 0x693c2403
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x9bccb9b0
sub dword [ebp - 0x20], 0x4d7a7465
mov dword [ebp - 0x1c], 0x1f1be84
sub dword [ebp - 0x1c], 0xcfbe723f
mov dword [ebp - 0x18], 0x1628802d
sub dword [ebp - 0x18], 0xc9dc3bff
mov dword [ebp - 0x14], 0x7a961620
add dword [ebp - 0x14], 0x8569e9e0
lea eax, [ebp - 0x20]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x1f28ad61
sub dword [ebp - 0x20], 0xaab6440b
mov dword [ebp - 0x1c], 0x45f731f
sub dword [ebp - 0x1c], 0xc2f311aa
mov dword [ebp - 0x18], 0xd0e532d2
sub dword [ebp - 0x18], 0x6d75c666
mov dword [ebp - 0x14], 0x2d44b684
sub dword [ebp - 0x14], 0x2d44b684
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0x35c0b27c
add eax, 0xca801dd0
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x3a7c8
push 0
call eax
mov ecx, 0xbc3b5738
add ecx, 0x43c4f458
xor edx, edx
add edx, eax
mov esi, 0xf3221166
add esi, 0xd1f9e9a
add esi, dword [ebp - 0x10]
mov ebx, 0x4ba6661e
sub ebx, 0xe40b5dd1
mov dword [ebp - 4], 0xbddb678f
mov edi, dword [esi]
add dword [ebp - 4], 0xc2743174
add edi, ebx
mov dword [edx], edi
xor dword [ebp - 4], ebx
add edx, 0x932240eb
sub edx, 0x932240e7
add esi, 0xf8f560a3
add esi, 0x70a9f61
loop 0x404087
add eax, 0x4d285e6f
add eax, 0xb2d8c2a4
mov ebx, eax
add eax, 0x1bf3a4a0
sub eax, 0x1bf3a49b
mov ecx, 0x400000
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x402477
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [esp + 0x14]
lea eax, [esp + 0x18]
mov edi, ecx
push eax
call fcn.0040256a
xor ebp, ebp
pop ecx
pop ecx
mov ebx, dword [eax]
mov dword [eax], ebp
cmp dword [esp + 0x14], ebp
je 0x4024a6
push 4
push dword [esp + 0x18]
call fcn.00409440
pop ecx
pop ecx
lea esi, [edi + 4]
push esi
push ebp
push ebx
push 0x40206d
push ebp
push ebp
call fcn.004119db
add esp, 0x18
mov dword [edi], eax
test eax, eax
je 0x4024c8
pop edi
pop esi
pop ebp
pop ebx
ret 4
push 6
mov dword [esi], ebp
call fcn.00406136
int3

Function at 0x4079bd
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x4079de
jl 0x4079d5
test edi, edi
jne 0x4079de
xor eax, eax
xor edx, edx
jmp 0x407a9f
cmp dword [ebx + 0x38], 0
je 0x4079f3
push eax
push edi
push dword [ebp + 8]
call fcn.00407aa5
jmp 0x407a9f
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x407a3a
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x407a3a
cmp eax, edi
jb 0x407a14
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040a200
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x407a40
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x407a94
mov ecx, ebx
call fcn.00407254
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x407a7f
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00412f01
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x407a94
jmp 0x407a52
test edx, edx
je 0x407a94
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00412f01
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x40a046
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40a085
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40a085
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40a085
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40a085
cmp dword [ecx + 0x74], 0xe
jbe 0x40a085
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x419447
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42d674
push 0x42d66c
push str.FlsAlloc
push 0x1e
call fcn.00419274
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41947b
push dword [ebp + 8]
mov ecx, esi
call dword [0x429164]
call esi
jmp 0x419481
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x4194c5
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42d684
push 0x42d67c
push str.FlsGetValue
push 0x20
call fcn.00419274
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4194fc
push dword [ebp + 8]
mov ecx, esi
call dword [0x429164]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41cc8d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041c92f

Function at 0x41cc98
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041cabe

Function at 0x41d092
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040a1b0
mov eax, dword [0x480700]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041a989
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41d0d4
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41d230
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00426c50
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x482638]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041e262
mov ecx, dword [esi*4 + 0x482638]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41d229
cmp eax, dword [edi + ecx + 0x24]
jne 0x41d229
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41d229
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041e262
add esp, 0x14
test edx, edx
jl 0x41d229
jg 0x41d19f
test eax, eax
jb 0x41d229
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41d229
jl 0x41d1b9
cmp dword [ebp - 0x1008], eax
ja 0x41d229
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41d1d7
test ebx, ebx
je 0x41d210
cmp ecx, edi
jae 0x41d210
mov al, byte [ecx]
cmp al, 0xd
jne 0x41d1f1
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41d1fd
cmp byte [ecx + 1], 0xa
jne 0x41d1fd
inc ecx
jmp 0x41d1fd
movzx eax, al
movsx eax, byte [eax + 0x4809d8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41d1d7
cmp edx, ebx
jne 0x41d1d7
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41d22e
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00409453
leave
ret
Function at 0x41d700
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 + 0x482638]
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 0x41d740
cmp byte [ebx], 0xa
jne 0x41d740
or byte [eax + edi + 0x28], 4
jmp 0x41d745
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41d843
mov al, byte [edx]
cmp al, 0x1a
je 0x41d825
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41d774
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41d799
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41d7a3
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 0x41d756
jmp 0x41d843
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 0x41d820
cmp dword [ebp - 0xc], 0
je 0x41d820
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x482638]
test byte [eax + edi + 0x28], 0x48
je 0x41d7fa
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41d7e5
mov byte [esi], dl
jmp 0x41d7f6
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x482638]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41d843
cmp byte [ebp - 1], 0xa
jne 0x41d809
cmp esi, ebx
jne 0x41d809
mov byte [esi], 0xa
jmp 0x41d842
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041e280
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41d843
mov byte [esi], 0xd
jmp 0x41d842
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x482638]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41d83f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41d843
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41d84c
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 + 0x482638]
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 0x41d88f
cmp word [esi], dx
jne 0x41d88f
or byte [edi + eax + 0x28], 4
jmp 0x41d894
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 0x41d9e7
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 0x41d9c7
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41d8d6
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41d90c
cmp eax, edx
jae 0x41d918
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 0x41d8ae
jmp 0x41d9e7
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 0x41d9c3
cmp dword [ebp - 0x14], 0
je 0x41d9c3
mov eax, dword [ebx*4 + 0x482638]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41d99b
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41d964
mov word [esi], cx
jmp 0x41d997
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x482638]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x482638]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x482638]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41d9e7
pop ebx
cmp word [ebp - 4], bx
jne 0x41d9ac
cmp esi, dword [ebp + 0xc]
jne 0x41d9ac
mov word [esi], bx
jmp 0x41d9e4
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041e280
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41d9e7
push 0xd
jmp 0x41d9e0
mov ecx, dword [ebx*4 + 0x482638]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41d9de
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41d9e7
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 0x41f7de
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 0x41f87b
push ebx
push esi
call fcn.0041f7a7
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.0041e42c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41f828
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41f87a
push edi
push eax
call fcn.00419ae3
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41f848
call fcn.00418da9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41f879
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041e42c
add esp, 0x20
test eax, eax
jne 0x41f867
push edi
call fcn.00418da9
jmp 0x41f86f
push ebx
call fcn.00418da9
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 0x426a50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x426a7d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x426a7d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4285ec
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp + 8]
sar eax, 2
push edi
mov edi, dword [ebp + 0x14]
test eax, eax
je 0x42866c
push esi
xor esi, esi
cmp dword [ebp + 0x18], esi
jbe 0x42866b
push ebx
mov ebx, 0x481c00
mov al, byte [edi + esi]
xor al, 0x73
sub al, 0x6c
xor al, 0x74
push str.Own_head
push ebx
mov byte [edi + esi], al
call fcn.00401200
push eax
call fcn.00402518
mov al, byte [edi + esi]
add al, 0x4e
xor al, 0xdc
push str.Earth
push ebx
mov byte [edi + esi], al
call fcn.00401200
push eax
call fcn.00402518
mov al, byte [edi + esi]
xor al, 0xac
sub al, 0x65
xor al, 0x22
sub al, 0x73
push 0x4293f0
mov byte [edi + esi], al
call fcn.0040eb3e
xor byte [edi + esi], al
add esp, 0x1c
inc esi
cmp esi, dword [ebp + 0x18]
jb 0x42860e
pop ebx
pop esi
lea ecx, [ebp + 8]
call fcn.00404306
pop edi
pop ebp
ret 0x14
Function at 0x401c00
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
mov esi, eax
push ebx
lea ebx, [ebp - 0x41c]
sub esp, 0x534
mov dword [ebp - 0x524], ecx
mov dword [esp + 4], ebx
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
lea eax, [ebp - 0x520]
sub esp, 8
mov dword [esp], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x406000
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
lea eax, [ebp - 0x520]
sub esp, 0x10
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateFileA]
sub esp, 0x1c
mov ebx, eax
lea eax, [ebp - 0x214]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov ecx, dword [ebp - 0x524]
mov dword [esp], ebx
mov dword [esp + 8], ecx
mov dword [esp + 4], edi
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
lea eax, [ebp - 0x520]
sub esp, 4
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x214]
mov dword [esp + 8], esi
lea esi, [ebp - 0x318]
mov dword [esp + 4], str._s__hs
mov dword [esp], eax
call dword [sym.imp.user32.dll_wsprintfW]
lea eax, [ebp - 0x520]
mov dword [esp], eax
call dword [sym.imp.user32.dll_CharUpperA]
lea eax, [ebp - 0x520]
sub esp, 4
mov dword [esp + 8], eax
mov dword [esp + 4], str._r_n____________s_r_n
mov dword [esp], esi
call dword [sym.imp.user32.dll_wsprintfA]
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll_strlen]
mov ebx, eax
add eax, dword [ebp + 0xc]
mov dword [ebp - 0x524], eax
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_malloc]
mov edx, eax
cmp ebx, 4
jae 0x401dc0
test ebx, ebx
jne 0x401de0
mov eax, dword [ebp + 0xc]
add ebx, edx
mov edi, edx
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp + 0x14]
xor ecx, ecx
mov edx, section..rdata
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x524]
mov dword [esp], edi
mov dword [esp + 4], eax
lea eax, [ebp - 0x214]
call fcn.004016e0
mov dword [esp], edi
call dword [sym.imp.msvcrt.dll_free]
lea eax, [ebp - 0x520]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + ebx - 0x31c]
lea ecx, [ebx - 1]
mov edi, edx
shr ecx, 2
mov dword [edx + ebx - 4], eax
rep movsd dword es:[edi], dword [esi]
jmp 0x401d56
movzx eax, byte [ebp - 0x318]
mov byte [edx], al
test bl, 2
je 0x401d56
movzx eax, word [ebp + ebx - 0x31a]
mov word [edx + ebx - 2], ax
jmp 0x401d56
Function at 0x403af0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
mov dword [esp + 0x10], eax
lea eax, [ebp - 8]
mov dword [esp + 8], eax
lea eax, [ebp - 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 0x10]
mov dword [esp], eax
mov dword [esp + 0xc], 0
call sub.msvcrt.dll___getmainargs
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.msvcrt.dll___set_app_type
mov eax, dword [ebp - 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.00403be0
mov dword [esp], eax
call sub.msvcrt.dll_exit
nop
nop
nop
nop
push ebp
mov ebp, esp
call sub.msvcrt.dll___iob_func
mov edx, dword [ebp + 8]
pop ebp
shl edx, 5
add eax, edx
ret
Function at 0x12cc550
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa75000]
push edi
or ebp, 0xffffffff
jmp 0x12cc572
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x12cc579
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x12cc568
mov eax, 1
add ebx, ebx
jne 0x12cc58b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x12cc59c
jne 0x12cc5bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x12cc5bb
dec eax
add ebx, ebx
jne 0x12cc5a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x12cc580
add ebx, ebx
jne 0x12cc5b7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x12cc60d
xor ecx, ecx
sub eax, 3
jb 0x12cc5d3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x12cc642
sar eax, 1
mov ebp, eax
jmp 0x12cc5de
add ebx, ebx
jne 0x12cc5de
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x12cc5ac
inc ecx
add ebx, ebx
jne 0x12cc5ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x12cc5ac
add ebx, ebx
jne 0x12cc5f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x12cc5ee
jne 0x12cc60a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x12cc5ee
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x12cc62c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x12cc61e
jmp 0x12cc56e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x12cc62c
add edi, ecx
jmp 0x12cc56e
pop esi
mov edi, esi
mov ecx, 0x3890f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x12cc64a
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
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 0x12cc64f
lea edi, [esi + 0xe66000]
mov eax, dword [edi]
or eax, eax
je 0x12cc6c0
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xedc768]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xedc9f8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x12cc675
mov ecx, edi
jns 0x12cc6a4
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 + 0xedca00]
or eax, eax
je 0x12cc6ba
mov dword [ebx], eax
add ebx, 4
jmp 0x12cc692
call dword [esi + 0xedc9fc]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x12cc6fa
cmp al, 0xef
ja 0x12cc6e4
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x12cc6c6
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
or eax, eax
jne 0x12cc6d3
mov eax, dword [edi]
add edi, 4
jmp 0x12cc6d3
mov ebp, dword [esi + 0xedca04]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x12cc72e
sub esp, 0xffffff80
jmp 0xd3c8d8