joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402f0c
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.00402dac
mov esi, eax
cmp dword [0x407ef0], 0xffffffff
je 0x402f6d
mov eax, dword [ebp + 0x14]
cmp eax, dword [0x407eec]
jne 0x402f6d
lea eax, [ebp - 0x1c]
push eax
push dword [0x407eec]
call sub.kernel32.dll_GetConsoleScreenBufferInfo
movsx eax, word [ebp - 0x18]
mov dword [0x407ef8], eax
movsx eax, word [ebp - 0x16]
mov dword [0x407efc], eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x403084
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38c
push esi
push edi
mov edi, 3
push 0x408a38
call fcn.004061e8
mov esi, dword [eax]
push 0x408a38
call fcn.004061e8
mov dword [eax], 0x40
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x38c]
push eax
push 0
call fcn.00405a50
call fcn.004058cc
lea eax, [ebp - 0x150]
push eax
push 1
call fcn.00405958
call fcn.00404510
test eax, eax
jne 0x4031c5
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x190]
push eax
push 0x40
push 0
call fcn.00405a30
call fcn.00404510
test eax, eax
jne 0x40313b
cmp word [ebp - 0x190], 0x5a4d
jne 0x40313b
lea eax, [ebp - 0x150]
push eax
push dword [ebp - 0x154]
call fcn.00405974
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x190]
push eax
push 2
push 0
call fcn.00405a30
jmp 0x403145
mov dword [ebp - 0x154], 0
lea eax, [ebp - 0x150]
push eax
push dword [ebp - 0x154]
call fcn.00405974
call fcn.00404510
test eax, eax
jne 0x4031a9
cmp word [ebp - 0x190], 0x4550
jne 0x4031a9
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x288]
push eax
push 0xf8
push 0
call fcn.00405a30
call fcn.00404510
test eax, eax
jne 0x4031a9
cmp dword [ebp - 0x288], 0x4550
jne 0x4031a9
cmp word [ebp - 0x22c], 3
jne 0x4031a9
mov edi, 2
lea eax, [ebp - 0x150]
push eax
call fcn.004059a4
push 0x408a30
call fcn.004061e8
mov dword [eax], 0
push 0x408a38
call fcn.004061e8
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40321c
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.00402dac
mov esi, eax
mov eax, esi
pop esi
pop ebp
ret 0x18
Function at 0x4032c0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push edi
cmp dword [0x407f90], 0
je 0x4032e2
mov eax, dword [0x407f90]
mov dword [ebp - 4], eax
jmp 0x403377
push 0x104
call fcn.004045e4
mov dword [ebp - 4], eax
push 0x104
push dword [ebp - 4]
push 0
call sub.kernel32.dll_GetModuleFileNameA
push dword [ebp - 4]
call fcn.004040ac
inc eax
mov ebx, eax
call sub.kernel32.dll_GetCommandLineA
mov esi, eax
mov al, byte [esi]
dec al
cmp al, 0x1f
jbe 0x403327
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.00403258
mov esi, eax
inc esi
push esi
call fcn.004040ac
inc eax
mov edi, eax
lea eax, [ebp - 4]
push eax
mov eax, ebx
add eax, edi
inc eax
push eax
call fcn.00404644
call sub.kernel32.dll_AreFileApisANSI
test eax, eax
jne 0x403358
push edi
mov eax, dword [ebp - 4]
add eax, ebx
push eax
push esi
call sub.user32.dll_CharToOemBuffA
jmp 0x403365
push esi
mov eax, dword [ebp - 4]
add eax, ebx
push eax
push edi
call fcn.00404e24
mov eax, dword [ebp - 4]
add eax, ebx
add eax, edi
mov byte [eax], 0
mov eax, dword [ebp - 4]
mov dword [0x407f90], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403454
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.00404d98
xor eax, eax
mov bl, 0
cmp dword [0x407f34], 0
jne 0x4034a2
push 0x407c84
push 1
call fcn.00402cb8
mov dword [0x407f34], eax
cmp dword [0x407f34], 0
jne 0x4034bb
push 0x8000
call fcn.004045e4
mov esi, eax
mov bl, 1
jmp 0x4034f5
lea eax, [ebp - 0x24]
push eax
push 0
push 6
call dword [0x407f34]
test eax, eax
jne 0x4034e5
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 0x40351e
push esi
push 0x8000
push 0xff
call fcn.00404e80
push esi
push 0x24
push 0
call fcn.00404e80
mov eax, esi
add eax, 0xc
push eax
call fcn.004046cc
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4038cc
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push esi
call fcn.00403858
lea edx, [ebp - 0x400]
movzx ecx, word [ebp + 0x14]
dec ecx
xor esi, esi
jmp 0x403904
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 0x4038ea
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 [0x407eec]
call sub.kernel32.dll_WriteConsoleOutputA
pop esi
mov esp, ebp
pop ebp
ret 0x14

Function at 0x403cac
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 0x403ccc
mov al, byte [ebp - 4]
jmp 0x403ccf
mov al, byte [ebp + 8]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405d08
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 [0x4082e4]
add edx, 0x24
mov esi, edx
cmp dword [edx], 0xffffffff
je 0x405d46
mov ecx, dword [edx + 8]
cmp ecx, dword [ebp + 0x10]
ja 0x405d41
mov ecx, dword [edx + 8]
cmp ecx, dword [esi + 8]
jbe 0x405d41
mov esi, edx
add edx, 0x10
jmp 0x405d2a
mov edx, esi
cmp dword [edx], 0xffffffff
je 0x405e5a
mov ecx, dword [edx + 8]
cmp ecx, dword [ebp + 0x10]
ja 0x405e5a
mov ecx, dword [edx + 8]
cmp ecx, dword [ebp + 0x10]
ja 0x405e58
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 0x405e58
mov cl, byte [edx]
sub cl, 0x3c
jne 0x405d8e
jmp 0x405e58
sub cl, 3
jne 0x405da8
inc edx
mov dword [ebp - 0xc], edx
movzx ecx, byte [edx]
inc ecx
add edx, ecx
mov byte [ebp - 0x25], 1
jmp 0x405e53
inc cl
jne 0x405dbc
movzx ecx, word [edx + 1]
add edi, ecx
add edx, 3
jmp 0x405e53
inc cl
jne 0x405dd0
movzx ecx, word [edx + 1]
add edi, ecx
mov ecx, dword [edx + 3]
add eax, ecx
add edx, 7
jmp 0x405de3
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 0x405ded
mov esi, eax
mov dword [ebp - 0x24], edi
cmp eax, dword [ebp + 0x10]
jl 0x405e4a
sub eax, dword [ebp + 0x10]
cmp eax, 0xa
jle 0x405e00
cmp byte [ebp - 0x25], 0
jne 0x405e48
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 0x405e36
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 0x405e11
movzx eax, word [ebp - 0x24]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
add esi, dword [ebp - 0x18]
mov eax, esi
jmp 0x405e5a
jmp 0x405e58
mov esi, eax
mov dword [ebp - 0x24], edi
mov byte [ebp - 0x25], 0
jmp 0x405d80
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x406330
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x10
cld
push ecx
call fcn.0040630c
call fcn.00403454
mov dword [0x4082e4], eax
lea edx, [eax + 0x18]
mov dword [0x408344], edx
pop edx
call fcn.0040618c
call sub.kernel32.dll_GetEnvironmentStrings
mov dword [0x408310], eax
push 0
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x408324], eax
mov dword [0x40834c], eax
call fcn.00403084
cmp eax, 3
setb byte [0x4082ed]
call fcn.004040a4
lea eax, [esp]
xor edx, edx
mov ecx, dword fs:[edx]
mov dword fs:[edx], eax
mov dword [eax], ecx
mov dword [eax + 4], 0x4065bc
mov dword [eax + 8], ebp
jmp dword [esp + 0x10]
Function at 0x4336c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2f000]
push edi
or ebp, 0xffffffff
jmp 0x4336e2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4336e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4336d8
mov eax, 1
add ebx, ebx
jne 0x4336fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4336f0
jne 0x43370c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4336f0
xor ecx, ecx
sub eax, 3
jb 0x433720
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x433792
mov ebp, eax
add ebx, ebx
jne 0x43372b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x433738
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x43375c
inc ecx
add ebx, ebx
jne 0x433748
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x43373d
jne 0x433759
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43373d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x43377c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43376d
jmp 0x4336de
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43377c
add edi, ecx
jmp 0x4336de
pop esi
mov edi, esi
mov ecx, 0x121
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43379a
cmp byte [edi], 0
jne 0x43379a
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 eax, ebx
loop 0x43379f
lea edi, [esi + 0x31000]
mov eax, dword [edi]
or eax, eax
je 0x433817
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x342b8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x34380]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4337cc
mov ecx, edi
jns 0x4337fb
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 + 0x34384]
or eax, eax
je 0x433811
mov dword [ebx], eax
add ebx, 4
jmp 0x4337e9
call dword [esi + 0x34388]
popal
jmp 0x4021d2
Function at 0x1001a082
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x30dc
call fcn.1002fb29
mov eax, dword [0x100400b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x1001a18b
test esi, esi
je 0x1001a18b
push ecx
lea eax, [ebp - 0x2094]
xor ebx, ebx
push eax
lea eax, [edi + 0x30]
push eax
push edx
lea eax, [edi + 0x20]
mov edx, edi
push eax
push ebx
call fcn.1001a1a1
test eax, eax
js 0x1001a190
push 1
push 0x824
lea eax, [ebp - 0x104c]
push eax
push esi
lea eax, [ebp - 0x2094]
push eax
call fcn.1001a1a1
test eax, eax
js 0x1001a190
lea ecx, [ebp - 0x104c]
call fcn.1001a1a1
test eax, eax
lea eax, [ebp - 0x104c]
jne 0x1001a120
push eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
mov eax, 0x80044809
jmp 0x1001a190
push 0xffffffffffffffff
push eax
mov esi, 0x824
lea eax, [ebp - 0x30dc]
push esi
push eax
call fcn.1001a1a1
add esp, 0x10
cmp eax, 0x50
jne 0x1001a144
mov eax, 0x80040161
jmp 0x1001a190
push esi
lea edx, [ebp - 0x104c]
lea ecx, [ebp - 0x30dc]
call fcn.1001a1a1
test eax, eax
js 0x1001a190
add edi, 0x1078
je 0x1001a17d
push 0xffffffffffffffff
lea eax, [ebp - 0x104c]
push eax
push esi
push edi
call fcn.1001a1a1
xor ebx, ebx
add esp, 0x10
cmp eax, 0x50
setne bl
xor ecx, ecx
mov eax, 0x80040110
test ebx, ebx
cmovne eax, ecx
jmp 0x1001a190
mov eax, 0x80070057
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001c65c
leave
ret 0x14

Function at 0x1001a1a1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x1001a1b0
pop dword [ebp - 0x34]
mov eax, 0x14e8aa26
add eax, 0xfb18f78a
sub dword [ebp - 0x34], eax
push 0x40
push 0x1000
push 0x400cf
push 0
mov eax, 0xab8bd11f
add eax, 0x64775039
add eax, dword [ebp - 0x34]
call dword [eax]
mov ecx, 0xb9d24ac0
add ecx, 0x462df851
xor ebx, ebx
add ebx, eax
mov esi, 0x10048000
add esi, dword [ebp - 0x34]
mov edi, 0x57d376b4
mov dword [ebp - 0x20], 0xbc0bedbb
mov edx, dword [esi]
xor edx, edi
add dword [ebp - 0x1c], 0x317c0d36
mov dword [ebx], edx
xor dword [ebp - 0x28], 0xd39cd2e2
add ebx, 4
add esi, 4
loop 0x1001a205
add eax, 0xd473bcf3
sub eax, 0xd472bddc
mov ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x4019c0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [0x4350c0], 0x24e1
mov eax, dword [0x4350c0]
sub eax, 0x24e1
mov dword [0x4350c0], eax
mov ecx, 1
test ecx, ecx
je 0x401a6b
mov edx, dword [0x4350c0]
cmp edx, dword [ebp + 0xc]
jb 0x4019f7
jmp 0x401a6b
cmp dword [0x4350c0], 0
jne 0x401a15
push 0x263
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
test eax, eax
je 0x401a15
xor eax, eax
jmp 0x401a6b
mov eax, dword [ebp + 8]
add eax, dword [0x4350c0]
mov ecx, dword [eax]
add ecx, dword [0x4350c0]
mov edx, dword [ebp + 8]
add edx, dword [0x4350c0]
mov dword [edx], ecx
mov dword [ebp - 4], 9
mov eax, dword [0x4350c0]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax + 2]
push edx
mov eax, dword [ebp + 8]
add eax, dword [0x4350c0]
push eax
call fcn.004011d0
add esp, 8
mov ecx, dword [0x4350c0]
add ecx, 4
mov dword [0x4350c0], ecx
jmp 0x4019dd
mov esp, ebp
pop ebp
ret

Function at 0x401a70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov dword [ebp - 0x114], str._ffffffffffffffff
mov eax, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 0x11c], eax
push 0x104
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, dword [ebp - 0x114]
push edx
lea eax, [ebp - 0x110]
push eax
call dword [ebp - 0x11c]
push 0
push 0x80
push 3
push 0
push 3
push 1
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0xffffffff
je 0x401aea
cmp dword [ebp - 0x118], 0
je 0x401aea
jmp 0x401b4c
mov edx, dword [ebp + 8]
cmp dword [edx + 4], 0
je 0x401b4c
mov dword [ebp - 0x120], 0x3c41
mov eax, dword [ebp + 8]
add eax, 8
mov dword [0x4350b4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
mov dword [0x4350d0], edx
mov dword [ebp - 0x120], 0x3c41
mov dword [ebp - 0x120], 0x3c41
call fcn.004011c0
mov eax, dword [ebp + 8]
mov dword [0x4350cc], eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 1
call fcn.00401980
add esp, 0xc
mov dword [ebp + 8], eax
jmp 0x401aea
mov esp, ebp
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219

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 0x41ecca
Capabilities:
Parse pe header

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

Function at 0x424cbf
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x47a498
push 0x47a490
push str.FlsAlloc
push 0x1f
call fcn.00424b7e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x424cf3
push dword [ebp + 8]
mov ecx, esi
call dword [0x42d144]
call esi
jmp 0x424cf9
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x424d3d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x47a4a8
push 0x47a4a0
push str.FlsGetValue
push 0x21
call fcn.00424b7e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x424d74
push dword [ebp + 8]
mov ecx, esi
call dword [0x42d144]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x424d7c
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x47a4b0
push 0x47a4a8
push str.FlsSetValue
push 0x22
call fcn.00424b7e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x424db6
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42d144]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x42656e
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 0x42660b
push ebx
push esi
call fcn.00426537
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.004264cb
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4265b8
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42660a
push edi
push eax
call fcn.00424f81
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4265d8
call fcn.00424fcf
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x426609
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004264cb
add esp, 0x20
test eax, eax
jne 0x4265f7
push edi
call fcn.00424fcf
jmp 0x4265ff
push ebx
call fcn.00424fcf
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 0x401069
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4bf030]
jne 0x401073
repz ret
jmp fcn.00401e41

Function at 0x408aeb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00404d3a
and dword [ebp - 4], 0
cmp dword [0x4c1b68], 0
mov ebx, eax
jne 0x408b9c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408c4d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x408c4d
push eax
call fcn.00404cc8
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4c1b68], eax
call esi
push eax
call fcn.00404cc8
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4c1b6c], eax
call esi
push eax
call fcn.00404cc8
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4c1b70], eax
call esi
push eax
call fcn.00404cc8
pop ecx
mov dword [0x4c1b78], eax
test eax, eax
je 0x408b9c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404cc8
pop ecx
mov dword [0x4c1b74], eax
mov eax, dword [0x4c1b74]
cmp eax, ebx
je 0x408bf4
cmp dword [0x4c1b78], ebx
je 0x408bf4
push eax
call fcn.00404d43
push dword [0x4c1b78]
mov esi, eax
call fcn.00404d43
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408bf4
test edi, edi
je 0x408bf4
call esi
test eax, eax
je 0x408beb
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408beb
test byte [ebp - 0xc], 1
jne 0x408bf4
or dword [ebp + 0x10], 0x200000
jmp 0x408c2d
mov eax, dword [0x4c1b6c]
cmp eax, ebx
je 0x408c2d
push eax
call fcn.00404d43
pop ecx
test eax, eax
je 0x408c2d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x408c2d
mov eax, dword [0x4c1b70]
cmp eax, ebx
je 0x408c2d
push eax
call fcn.00404d43
pop ecx
test eax, eax
je 0x408c2d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4c1b68]
call fcn.00404d43
pop ecx
test eax, eax
je 0x408c4d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408c4f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40af50
Capabilities:
Set console window title

Disassembly:
sub esp, 0x820
mov eax, dword [0x4bf030]
xor eax, esp
mov dword [esp + 0x81c], eax
mov eax, dword [0x2c9f55c]
push ebx
mov ebx, dword [0x2c9f280]
push esi
mov esi, dword [0x4bff60]
push edi
mov edi, eax
cmp eax, 0x930
jne 0x40af91
push 0x4bd5f8
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
mov eax, dword [0x2c9f55c]
mov dword [0x4c1d0c], esi
cmp eax, 0x114e
jne 0x40afbb
lea eax, [esp + 0xc]
push eax
push str.Gijetuhe_batawuwafadis_fomikayemes_zeruru
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov eax, dword [0x2c9f55c]
cmp eax, 0x2f
jne 0x40afdb
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
push 0
lea ecx, [esp + 0x2c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
call fcn.0040ae50
mov ecx, dword [esp + 0x828]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401069
add esp, 0x820
ret
Function at 0x40d11e
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x40d136
push 0
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov esp, ebp
pop ebp
ret
Function at 0x421054
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
movzx eax, byte [ebp + 8]
test eax, eax
je 0x4210b2
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
test eax, eax
je 0x4210a8
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
movzx eax, word [eax]
sar eax, 0xc
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], eax
jmp 0x4210b0
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
jmp 0x4210ba
push 0
call fcn.004151f3
pop ecx
mov esp, ebp
pop ebp
ret