joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5ea8f9
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 + 0x6d1890]
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 0x5ea939
cmp byte [ebx], 0xa
jne 0x5ea939
or byte [eax + edi + 0x28], 4
jmp 0x5ea93e
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x5eaa3c
mov al, byte [edx]
cmp al, 0x1a
je 0x5eaa1e
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x5ea96d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x5ea992
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x5ea99c
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 0x5ea94f
jmp 0x5eaa3c
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 0x5eaa19
cmp dword [ebp - 0xc], 0
je 0x5eaa19
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x6d1890]
test byte [eax + edi + 0x28], 0x48
je 0x5ea9f3
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x5ea9de
mov byte [esi], dl
jmp 0x5ea9ef
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x6d1890]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x5eaa3c
cmp byte [ebp - 1], 0xa
jne 0x5eaa02
cmp esi, ebx
jne 0x5eaa02
mov byte [esi], 0xa
jmp 0x5eaa3b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.005eb9d3
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x5eaa3c
mov byte [esi], 0xd
jmp 0x5eaa3b
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x6d1890]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x5eaa38
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x5eaa3c
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x5eaa45
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 + 0x6d1890]
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 0x5eaa88
cmp word [esi], dx
jne 0x5eaa88
or byte [edi + eax + 0x28], 4
jmp 0x5eaa8d
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 0x5eabc6
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 0x5eaba6
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x5eaacf
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x5eab05
cmp eax, edx
jae 0x5eab11
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 0x5eaaa7
jmp 0x5eabc6
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 0x5eaba2
cmp dword [ebp - 0x14], 0
je 0x5eaba2
mov eax, dword [ebx*4 + 0x6d1890]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x5eab7a
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x5eabc0
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x6d1890]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x6d1890]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x6d1890]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x5eabc3
pop ebx
cmp word [ebp - 4], bx
jne 0x5eab8b
cmp esi, dword [ebp + 0xc]
jne 0x5eab8b
mov word [esi], bx
jmp 0x5eabc3
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.005eb9d3
add esp, 0x10
cmp word [ebp - 4], bx
je 0x5eabc6
push 0xd
jmp 0x5eabbf
mov ecx, dword [ebx*4 + 0x6d1890]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x5eabbd
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x5eabc6
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 0x5eb5bd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005eb258

Function at 0x5eb5c8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005eb3e7
Function at 0x5ed998
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x669f18
push 0x669f10
push str.FlsAlloc
push 0x1e
call fcn.005ed7c5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5ed9cc
push dword [ebp + 8]
mov ecx, esi
call dword [0x60cab4]
call esi
jmp 0x5ed9d2
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x5eda16
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x669f28
push 0x669f20
push str.FlsGetValue
push 0x20
call fcn.005ed7c5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5eda4d
push dword [ebp + 8]
mov ecx, esi
call dword [0x60cab4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x5eff4b
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x6934c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x5eff96
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.005f00ea
test al, al
jne 0x5eff90
sub edx, 2
cmp edx, edi
jne 0x5eff76
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x5effb8
lea eax, [edi + 2]
cmp edx, eax
je 0x5effb8
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.005efe97
add esp, 0x10
jmp 0x5f00b2
push esi
lea ecx, [ebp - 0x255]
call fcn.005f00ea
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5efffb
push dword [ebp - 0x25c]
jmp 0x5effa8
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x5f0038
cmp word [ebp - 0x226], 0
je 0x5f0059
cmp word [ebp - 0x226], ax
jne 0x5f0038
cmp word [ebp - 0x224], 0
je 0x5f0059
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.005efe97
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x5f00a5
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x5f0012
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x5f008d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x5f00b2
push 0x5efcc7
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.005e6970
add esp, 0x10
jmp 0x5f0082
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005bd291
leave
ret
Function at 0x5f09bd
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 0x5f0a5a
push ebx
push esi
call fcn.005f0986
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.005ee97c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x5f0a07
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5f0a59
push edi
push eax
call fcn.005e933e
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x5f0a27
call fcn.005e9304
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5f0a58
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.005ee97c
add esp, 0x20
test eax, eax
jne 0x5f0a46
push edi
call fcn.005e9304
jmp 0x5f0a4e
push ebx
call fcn.005e9304
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 0x5f0a5d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x5f0a6e
pop esi
ret
push ebx
push edi
push esi
call fcn.005f0986
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.005e933e
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x5f0a96
push ebx
push esi
push edi
call fcn.005cae40
add esp, 0xc
push 0
call fcn.005e9304
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x5f11e2
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005f0d09
Function at 0x5f91c9
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.005f9145
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x5f9341
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x5f9341
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x5f92f0
jg 0x5f9222
test eax, eax
je 0x5f92e6
push 1
push 0x1000
call fcn.005ec94f
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x5f9248
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x5f92dd
push 0x8000
push ebx
call fcn.005e3292
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x5f9274
jg 0x5f926f
cmp ecx, 0x1000
jb 0x5f9274
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.005ec31e
add esp, 0x10
cmp eax, 0xffffffff
je 0x5f92b9
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x5f926f
jl 0x5f92a0
test ecx, ecx
jne 0x5f9261
push dword [ebp - 0xc]
push ebx
call fcn.005e3292
push esi
call fcn.005e9304
add esp, 0xc
xor edi, edi
jmp 0x5f9352
cmp byte [edi + 0x24], 0
je 0x5f92d0
cmp dword [edi + 0x20], 5
jne 0x5f92d0
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x5f92db
mov edi, dword [edi + 0x18]
jmp 0x5f92dd
xor edi, edi
push esi
call fcn.005e9304
pop ecx
jmp 0x5f9352
test ecx, ecx
jg 0x5f92b2
jl 0x5f92f0
test eax, eax
jae 0x5f92b2
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.005eb9d3
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x5f9313
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x5f92b2
jmp 0x5f934a
push ebx
call fcn.005e20b9
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x5f92b2
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x5f9352
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x5f934f
mov edi, dword [edi + 0x18]
jmp 0x5f9352
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.005eb9d3
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x74cc80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x256000]
push edi
or ebp, 0xffffffff
jmp 0x74cca2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x74cca9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x74cc98
mov eax, 1
add ebx, ebx
jne 0x74ccbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x74cccc
jne 0x74cceb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x74cceb
dec eax
add ebx, ebx
jne 0x74ccd8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x74ccb0
add ebx, ebx
jne 0x74cce7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x74cd3d
xor ecx, ecx
sub eax, 3
jb 0x74cd03
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x74cd72
sar eax, 1
mov ebp, eax
jmp 0x74cd0e
add ebx, ebx
jne 0x74cd0e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x74ccdc
inc ecx
add ebx, ebx
jne 0x74cd1c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x74ccdc
add ebx, ebx
jne 0x74cd29
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x74cd1e
jne 0x74cd3a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x74cd1e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x74cd5c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x74cd4e
jmp 0x74cc9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x74cd5c
add edi, ecx
jmp 0x74cc9e
pop esi
mov edi, esi
mov ecx, 0x82b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x74cd7a
cmp byte [edi], 0x1f
jne 0x74cd7a
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 0x74cd7f
lea edi, [esi + 0x34a000]
mov eax, dword [edi]
or eax, eax
je 0x74cdf7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x34c75c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x34c798]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x74cdac
mov ecx, edi
jns 0x74cddb
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 + 0x34c79c]
or eax, eax
je 0x74cdf1
mov dword [ebx], eax
add ebx, 4
jmp 0x74cdc9
call dword [esi + 0x34c7a4]
mov ebp, dword [esi + 0x34c7a0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1df]
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 0x74ce2b
sub esp, 0xffffff80
jmp 0x406158
Function at 0x402e78
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push 0
mov eax, dword [ebp + 8]
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
push eax
push dword [ebp + 0x14]
call sub.kernel32.dll_WriteFile
test eax, eax
setne al
movsx eax, al
push eax
call fcn.00402d18
mov esi, eax
cmp dword [0x407eb0], 0xffffffff
je 0x402ed9
mov eax, dword [ebp + 0x14]
cmp eax, dword [0x407eac]
jne 0x402ed9
lea eax, [ebp - 0x1c]
push eax
push dword [0x407eac]
call sub.kernel32.dll_GetConsoleScreenBufferInfo
movsx eax, word [ebp - 0x18]
mov dword [0x407eb8], eax
movsx eax, word [ebp - 0x16]
mov dword [0x407ebc], eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x402ff0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38c
push esi
push edi
mov edi, 3
push 0x4089f0
call fcn.004060d0
mov esi, dword [eax]
push 0x4089f0
call fcn.004060d0
mov dword [eax], 0x40
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x38c]
push eax
push 0
call fcn.00405938
call fcn.004057b4
lea eax, [ebp - 0x150]
push eax
push 1
call fcn.00405840
call fcn.0040447c
test eax, eax
jne 0x403131
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x190]
push eax
push 0x40
push 0
call fcn.00405918
call fcn.0040447c
test eax, eax
jne 0x4030a7
cmp word [ebp - 0x190], 0x5a4d
jne 0x4030a7
lea eax, [ebp - 0x150]
push eax
push dword [ebp - 0x154]
call fcn.0040585c
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x190]
push eax
push 2
push 0
call fcn.00405918
jmp 0x4030b1
mov dword [ebp - 0x154], 0
lea eax, [ebp - 0x150]
push eax
push dword [ebp - 0x154]
call fcn.0040585c
call fcn.0040447c
test eax, eax
jne 0x403115
cmp word [ebp - 0x190], 0x4550
jne 0x403115
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x288]
push eax
push 0xf8
push 0
call fcn.00405918
call fcn.0040447c
test eax, eax
jne 0x403115
cmp dword [ebp - 0x288], 0x4550
jne 0x403115
cmp word [ebp - 0x22c], 3
jne 0x403115
mov edi, 2
lea eax, [ebp - 0x150]
push eax
call fcn.0040588c
push 0x4089e8
call fcn.004060d0
mov dword [eax], 0
push 0x4089f0
call fcn.004060d0
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x403188
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [ebp + 8]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push dword [ebp + 0x14]
push dword [ebp + 0x18]
push dword [ebp + 0x1c]
call sub.kernel32.dll_CreateThread
mov esi, eax
push esi
call sub.kernel32.dll_CloseHandle
test esi, esi
setne al
movsx eax, al
push eax
call fcn.00402d18
mov esi, eax
mov eax, esi
pop esi
pop ebp
ret 0x18
Function at 0x40322c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push edi
cmp dword [0x407f50], 0
je 0x40324e
mov eax, dword [0x407f50]
mov dword [ebp - 4], eax
jmp 0x4032e3
push 0x104
call fcn.00404550
mov dword [ebp - 4], eax
push 0x104
push dword [ebp - 4]
push 0
call sub.kernel32.dll_GetModuleFileNameA
push dword [ebp - 4]
call fcn.00404018
inc eax
mov ebx, eax
call sub.kernel32.dll_GetCommandLineA
mov esi, eax
mov al, byte [esi]
dec al
cmp al, 0x1f
jbe 0x403293
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.004031c4
mov esi, eax
inc esi
push esi
call fcn.00404018
inc eax
mov edi, eax
lea eax, [ebp - 4]
push eax
mov eax, ebx
add eax, edi
inc eax
push eax
call fcn.004045b0
call sub.kernel32.dll_AreFileApisANSI
test eax, eax
jne 0x4032c4
push edi
mov eax, dword [ebp - 4]
add eax, ebx
push eax
push esi
call sub.user32.dll_CharToOemBuffA
jmp 0x4032d1
push esi
mov eax, dword [ebp - 4]
add eax, ebx
push eax
push edi
call fcn.00404d90
mov eax, dword [ebp - 4]
add eax, ebx
add eax, edi
mov byte [eax], 0
mov eax, dword [ebp - 4]
mov dword [0x407f50], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4033c0
Capabilities:
Contain obfuscated stackstrings
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov dword [ebp - 0x24], 0x52414853
mov dword [ebp - 0x20], 0x454d4445
mov dword [ebp - 0x1c], 0x5356354d
call sub.kernel32.dll_GetCurrentProcessId
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0xb
call fcn.00404d04
xor eax, eax
mov bl, 0
cmp dword [0x407ef4], 0
jne 0x40340e
push 0x407c44
push 1
call fcn.00402c24
mov dword [0x407ef4], eax
cmp dword [0x407ef4], 0
jne 0x403427
push 0x8000
call fcn.00404550
mov esi, eax
mov bl, 1
jmp 0x403461
lea eax, [ebp - 0x24]
push eax
push 0
push 6
call dword [0x407ef4]
test eax, eax
jne 0x403451
lea eax, [ebp - 0x24]
push eax
push 0x8000
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov bl, 1
push 0
push 0
push 0
push 6
push eax
call sub.kernel32.dll_MapViewOfFile
mov esi, eax
test bl, bl
je 0x40348a
push esi
push 0x8000
push 0xff
call fcn.00404dec
push esi
push 0x24
push 0
call fcn.00404dec
mov eax, esi
add eax, 0xc
push eax
call fcn.00404638
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403838
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push esi
call fcn.004037c4
lea edx, [ebp - 0x400]
movzx ecx, word [ebp + 0x14]
dec ecx
xor esi, esi
jmp 0x403870
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
mov word [edx + 2], ax
mov eax, dword [ebp + 0x18]
movzx eax, byte [eax]
mov word [edx], ax
inc dword [ebp + 0x18]
add edx, 4
inc esi
cmp ecx, esi
jge 0x403856
mov ax, word [ebp + 0x14]
mov word [ebp - 0x404], ax
mov word [ebp - 0x402], 1
mov word [ebp - 0x408], 0
mov word [ebp - 0x406], 0
mov ax, word [ebp + 0x10]
mov word [ebp - 0x410], ax
mov ax, word [ebp + 0xc]
mov word [ebp - 0x40e], ax
movzx ecx, word [ebp + 0x10]
movzx eax, word [ebp + 0x14]
add ecx, eax
dec ecx
mov word [ebp - 0x40c], cx
mov ax, word [ebp + 0xc]
mov word [ebp - 0x40a], ax
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x408]
push dword [ebp - 0x404]
lea eax, [ebp - 0x400]
push eax
push dword [0x407eac]
call sub.kernel32.dll_WriteConsoleOutputA
pop esi
mov esp, ebp
pop ebp
ret 0x14

Function at 0x403c18
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x403c38
mov al, byte [ebp - 4]
jmp 0x403c3b
mov al, byte [ebp + 8]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405bf0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
or edi, 0xffffffff
or eax, 0xffffffff
mov dword [ebp - 0x24], 0
xor esi, esi
mov edx, dword [0x4082a4]
add edx, 0x24
mov esi, edx
cmp dword [edx], 0xffffffff
je 0x405c2e
mov ecx, dword [edx + 8]
cmp ecx, dword [ebp + 0x10]
ja 0x405c29
mov ecx, dword [edx + 8]
cmp ecx, dword [esi + 8]
jbe 0x405c29
mov esi, edx
add edx, 0x10
jmp 0x405c12
mov edx, esi
cmp dword [edx], 0xffffffff
je 0x405d42
mov ecx, dword [edx + 8]
cmp ecx, dword [ebp + 0x10]
ja 0x405d42
mov ecx, dword [edx + 8]
cmp ecx, dword [ebp + 0x10]
ja 0x405d40
mov ecx, dword [edx + 8]
sub dword [ebp + 0x10], ecx
mov ecx, dword [edx + 8]
mov dword [ebp - 0x18], ecx
mov edx, dword [edx + 0xc]
test edx, edx
je 0x405d40
mov cl, byte [edx]
sub cl, 0x3c
jne 0x405c76
jmp 0x405d40
sub cl, 3
jne 0x405c90
inc edx
mov dword [ebp - 0xc], edx
movzx ecx, byte [edx]
inc ecx
add edx, ecx
mov byte [ebp - 0x25], 1
jmp 0x405d3b
inc cl
jne 0x405ca4
movzx ecx, word [edx + 1]
add edi, ecx
add edx, 3
jmp 0x405d3b
inc cl
jne 0x405cb8
movzx ecx, word [edx + 1]
add edi, ecx
mov ecx, dword [edx + 3]
add eax, ecx
add edx, 7
jmp 0x405ccb
movzx ecx, byte [edx]
shr ecx, 6
add edi, ecx
mov cl, byte [edx]
and cl, 0x3f
movzx ecx, cl
add eax, ecx
inc edx
cmp eax, dword [ebp + 0x10]
jne 0x405cd5
mov esi, eax
mov dword [ebp - 0x24], edi
cmp eax, dword [ebp + 0x10]
jl 0x405d32
sub eax, dword [ebp + 0x10]
cmp eax, 0xa
jle 0x405ce8
cmp byte [ebp - 0x25], 0
jne 0x405d30
mov eax, dword [ebp - 0xc]
mov cl, byte [eax]
mov eax, dword [ebp + 0xc]
mov byte [eax], cl
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
cmp eax, dword [ebp - 0x14]
jle 0x405d1e
inc dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
mov dl, byte [eax + ecx]
xor dl, 0xaa
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
mov byte [eax + ecx], dl
jmp 0x405cf9
movzx eax, word [ebp - 0x24]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
add esi, dword [ebp - 0x18]
mov eax, esi
jmp 0x405d42
jmp 0x405d40
mov esi, eax
mov dword [ebp - 0x24], edi
mov byte [ebp - 0x25], 0
jmp 0x405c68
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x406218
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x10
cld
push ecx
call fcn.004061f4
call fcn.004033c0
mov dword [0x4082a4], eax
lea edx, [eax + 0x18]
mov dword [0x408304], edx
pop edx
call fcn.00406074
call sub.kernel32.dll_GetEnvironmentStrings
mov dword [0x4082d0], eax
push 0
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x4082e4], eax
mov dword [0x40830c], eax
call fcn.00402ff0
cmp eax, 3
setb byte [0x4082ad]
call fcn.00404010
lea eax, [esp]
xor edx, edx
mov ecx, dword fs:[edx]
mov dword fs:[edx], eax
mov dword [eax], ecx
mov dword [eax + 4], 0x4064a4
mov dword [eax + 8], ebp
jmp dword [esp + 0x10]