joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42c58b
Capabilities:
Write file on windows

Disassembly:
push 0x34
mov eax, 0x46f3e4
call fcn.0042fd63
mov esi, ecx
mov dword [ebp - 0x30], esi
or ebx, 0xffffffff
cmp dword [ebp + 8], ebx
jne 0x42c5ab
xor eax, eax
jmp 0x42c723
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x42c5d9
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x42c5d9
mov eax, dword [ebp + 8]
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], al
jmp 0x42c723
cmp dword [esi + 0x4c], 0
je 0x42c721
mov ecx, esi
call fcn.0042c3c6
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp dword [esi + 0x38], ecx
jne 0x42c612
push dword [esi + 0x4c]
movsx eax, al
push eax
call fcn.00455ca9
pop ecx
cmp eax, ebx
mov eax, dword [ebp + 8]
pop ecx
jne 0x42c723
jmp 0x42c721
push ecx
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x28], cl
lea ecx, [ebp - 0x28]
push 8
mov byte [ebp - 0x29], al
mov dword [ebp - 0x14], 0xf
call fcn.00404460
and dword [ebp - 4], 0
lea eax, [esi + 0x40]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
lea edi, [ebp - 0x28]
mov dword [ebp - 0x34], edi
cmp ecx, 0x10
jb 0x42c64b
mov dword [ebp - 0x34], eax
lea edx, [ebp - 0x28]
cmp ecx, 0x10
jb 0x42c655
mov edx, eax
mov edi, dword [esi + 0x38]
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x34]
mov esi, dword [edi]
push eax
push edx
lea eax, [ebp - 0x40]
mov ecx, dword [esi + 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x29]
push eax
push dword [ebp - 0x38]
call fcn.0042fd03
mov ecx, edi
call dword [esi + 0x1c]
test eax, eax
js 0x42c719
cmp eax, 1
jg 0x42c6fb
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x28]
cmp ecx, 0x10
jb 0x42c69f
mov edx, eax
mov edi, dword [ebp - 0x3c]
sub edi, edx
je 0x42c6ce
lea edx, [ebp - 0x28]
cmp ecx, 0x10
jb 0x42c6b0
mov edx, eax
mov esi, dword [ebp - 0x30]
push dword [esi + 0x4c]
push edi
push 1
push edx
call fcn.0045436f
add esp, 0x10
cmp edi, eax
jne 0x42c719
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
jmp 0x42c6d1
mov esi, dword [ebp - 0x30]
lea edx, [ebp - 0x29]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x40], edx
jne 0x42c716
test edi, edi
jne 0x42c63d
cmp dword [ebp - 0x18], 0x20
jae 0x42c719
push edi
push 8
lea ecx, [ebp - 0x28]
call fcn.004045a0
jmp 0x42c637
cmp eax, 3
jne 0x42c719
mov eax, dword [ebp - 0x30]
push dword [eax + 0x4c]
movsx eax, byte [ebp - 0x29]
push eax
call fcn.00455ca9
pop ecx
pop ecx
cmp eax, ebx
je 0x42c719
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x28]
call fcn.00402200
mov eax, ebx
call fcn.0042fd1e
ret 4

Function at 0x431fd2
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x432371
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
jne 0x43238e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x432392
jmp 0x43239a
mov esp, ebp
pop ebp
ret
movzx eax, ax
or eax, 0x80070000
push eax
lea ecx, [ebp - 0x10]
call fcn.004328d0
push 0x488a94
lea eax, [ebp - 0x10]
push eax
call fcn.0044712d
int3

Function at 0x43b6bf
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 4
mov eax, 0x46fbca
call fcn.0042fd2f
mov edi, ecx
mov dword [ebp - 0x10], edi
or dword [edi + 4], 0xfffffff
lea ecx, [edi + 0x3c]
xor ebx, ebx
mov dword [edi + 8], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], bind
mov dword [edi + 0x18], ebx
mov dword [edi + 0x38], ebx
call fcn.00430ed2
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x64]
mov dword [edi + 0x64], eax
xor eax, eax
mov dword [edi + 0x6c], eax
mov dword [edi + 0x78], eax
mov dword [edi + 0x84], eax
mov dword [edi + 0x88], eax
test dword [0x48c0c4], 0x80000000
je 0x43b730
push dword [0x48ed6c]
call fcn.004323c0
pop ecx
test eax, eax
jne 0x43b735
call fcn.00437bc2
mov dword [edi + 0xc], eax
mov eax, dword [eax + 0x34]
mov dword [edi], eax
mov eax, dword [ebx + 8]
mov dword [edi + 8], eax
test eax, eax
je 0x43b750
cmp eax, 2
je 0x43b750
lock inc dword [eax + 4]
mov ecx, edi
call fcn.0043c2fe
lea ecx, [edi + 0x3c]
call fcn.004317e0
cmp byte [ebp + 0xc], 0
je 0x43b791
mov edx, dword [edi + 0x64]
mov ecx, edi
add edx, 0x68
mov esi, dword [edx]
mov eax, esi
mov dword [edi + 0x68], esi
lock cmpxchg dword [edx], ecx
jmp 0x43b78b
mov dword [edi + 0x68], eax
mov esi, eax
mov ecx, dword [edi + 0x64]
mov edx, edi
add ecx, 0x68
lock cmpxchg dword [ecx], edx
cmp eax, esi
jne 0x43b77a
jmp 0x43b799
or dword [edi + 0x78], 1
and dword [edi + 0x68], 0
call fcn.00437dad
mov esi, eax
mov eax, dword [esi + 0x20]
test eax, eax
jne 0x43b7b1
mov ecx, esi
call fcn.0043ac18
mov eax, dword [esi + 0x20]
mov eax, dword [eax + 0x40]
and dword [edi + 4], 0xfffffff
mov dword [edi + 0x80], eax
mov eax, edi
call fcn.0042fd09
ret 8

Function at 0x44385c
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x48edd8], eax
cmp eax, 0xffffffff
jne 0x44387e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x443882
jmp 0x44388a
mov esp, ebp
pop ebp
ret
movzx eax, ax
or eax, 0x80070000
push eax
lea ecx, [ebp - 0x10]
call fcn.004328d0
push 0x488a94
lea eax, [ebp - 0x10]
push eax
call fcn.0044712d
int3

Function at 0x4495db
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x475a34
push 0x475a2c
push str.FlsAlloc
push 0
call fcn.00449554
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44960d
push dword [ebp + 8]
mov ecx, esi
call fcn.0042fd03
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]
Function at 0x44964f
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x475a44
push 0x475a3c
push str.FlsGetValue
push 2
call fcn.00449554
add esp, 0x10
mov esi, eax
push dword [ebp + 8]
test esi, esi
je 0x449680
mov ecx, esi
call fcn.0042fd03
call esi
jmp 0x449686
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
pop ebp
ret

Function at 0x449689
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x475a4c
push 0x475a44
push str.FlsSetValue
push 3
call fcn.00449554
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x4496bd
mov ecx, esi
call fcn.0042fd03
call esi
jmp 0x4496c3
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret

Function at 0x45d27f
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0045d202

Function at 0x460329
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004601a6

Function at 0x4643e8
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0046408a
Function at 0x403db6
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov edi, dword [ebp + 8]
mov edi, dword [edi]
push edi
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
pop edi
mov esi, ecx
not esi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0xc]
lea eax, [eax + 0x10]
push dword [eax]
xor eax, eax
push edx
mov ecx, dword [edx + 0x30]
movzx ebx, byte [eax + edi]
movzx edx, byte [ecx + eax*2]
sub ebx, edx
cmp ebx, 0
je 0x403dfd
cmp ebx, 0x20
je 0x403dfd
cmp ebx, 0xffffffe0
je 0x403dfd
jne 0x403e06
add eax, 1
cmp esi, eax
je 0x403e13
jne 0x403de2
pop edx
mov edx, dword [edx]
xor eax, eax
pop ebx
cmp ebx, edx
push ebx
je 0x403e17
jne 0x403dde
pop edx
mov eax, dword [edx + 0x18]
leave
ret 4

Function at 0x403e2b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
sub esp, 0x10
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [edx]
test eax, eax
je 0x403eec
test ecx, ecx
je 0x403eec
mov ebx, dword [eax + 0x3c]
mov edx, dword [ebx + eax + 0x78]
mov ebx, dword [ebx + eax + 0x7c]
test edx, edx
je 0x403eec
test ebx, ebx
je 0x403eec
mov ebx, eax
add ebx, edx
je 0x403eec
mov esi, dword [edx + eax + 0x18]
test esi, esi
je 0x403eec
cmp dword [edx + eax + 0x14], 0
je 0x403eec
mov edi, dword [edx + eax + 0x20]
mov ebx, dword [edx + eax + 0x24]
add edi, eax
mov edx, dword [edx + eax + 0x1c]
add ebx, eax
add edx, eax
test esi, esi
jbe 0x403eec
mov dword [esp], edx
xor ebp, ebp
mov dword [esp + 0xc], edi
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 8]
movzx ecx, word [ebx + ebp*2]
mov esi, dword [eax + ebp*4]
add esi, dword [esp + 0x24]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x403edc
test dl, dl
je 0x403ed8
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x403edc
add edi, 2
add esi, 2
test dl, dl
jne 0x403ebc
xor eax, eax
jmp 0x403ee1
sbb eax, eax
or eax, 1
test eax, eax
je 0x403ef8
inc ebp
cmp ebp, dword [esp + 4]
jb 0x403ea9
xor eax, eax
add esp, 0x10
pop ebx
pop edi
pop esi
pop ebp
ret 8
mov edx, dword [esp]
mov edx, dword [edx + ecx*4]
mov eax, dword [esp + 0x24]
add eax, edx
add esp, 0x10
pop ebx
pop edi
pop esi
pop ebp
ret 8
Function at 0x404dee
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
cld
xor edx, edx
mov edx, dword fs:[edx + 0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
push 0x18
pop ecx
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x404e1c
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x404e13
cmp edi, 0x6a4abc5b
mov ebx, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x404e0b
mov eax, ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x404e3d
mov esp, ebp
pop ebp
ret

Function at 0x404e41
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
add esp, 0xffffffec
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 0x10]
xor edx, edx
xchg edx, eax
mov esi, 0x3c
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov esi, dword [eax + 0x78]
add esi, 0x18
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
add esi, 4
lea edi, [ebp - 8]
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
stosd dword es:[edi], eax
mov dword [ebp - 8], eax
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
push eax
stosd dword es:[edi], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
pop esi
mov dword [ebp - 4], 0
push esi
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
xchg edi, eax
mov ebx, edi
push edi
xor al, al
scasb al, byte es:[edi]
jne 0x404ead
pop esi
sub edi, ebx
push edx
cld
xor ecx, ecx
dec ecx
mov edx, ecx
xor eax, eax
xor ebx, ebx
lodsb al, byte [esi]
xor al, cl
mov cl, ch
mov ch, dl
mov dl, dh
mov dh, 8
shr bx, 1
rcr ax, 1
jae 0x404eda
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x404ec9
xor ecx, eax
xor edx, ebx
dec edi
jne 0x404eba
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop edx
cmp edx, eax
je 0x404f00
pop esi
add esi, 4
add dword [ebp - 4], 1
jmp 0x404ea1
pop esi
mov eax, dword [ebp - 4]
shl eax, 1
add eax, dword [ebp - 0x10]
xor esi, esi
xchg esi, eax
mov ax, word [esi]
shl ax, 2
add eax, dword [ebp - 8]
xchg esi, eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
pop ecx
pop edx
pop edi
pop ebx
pop esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x404f2c
mov esp, ebp
pop ebp
ret 0xc

Function at 0x406210
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x40622e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x406223
pop esi
ret
Function at 0x414e4f
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x414e7d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x414e9b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00414db5
jmp 0x414e9b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x414e9b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00414db5
test edi, edi
mov eax, edi
jne 0x414e85
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

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 0x9883790
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x9088000]
push edi
jmp 0x98837aa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x98837b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x98837a0
mov eax, 1
add ebx, ebx
jne 0x98837c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x98837d4
jne 0x98837f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x98837f3
dec eax
add ebx, ebx
jne 0x98837e0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x98837b8
add ebx, ebx
jne 0x98837ef
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x9883845
xor ecx, ecx
sub eax, 3
jb 0x988380b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x988387a
sar eax, 1
mov ebp, eax
jmp 0x9883816
add ebx, ebx
jne 0x9883816
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x98837e4
inc ecx
add ebx, ebx
jne 0x9883824
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x98837e4
add ebx, ebx
jne 0x9883831
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x9883826
jne 0x9883842
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x9883826
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x9883864
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x9883856
jmp 0x98837a6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x9883864
add edi, ecx
jmp 0x98837a6
pop esi
mov edi, esi
mov ecx, 0x4e656
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x9883882
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 0x9883887
lea edi, [esi + 0x947f000]
mov eax, dword [edi]
or eax, eax
je 0x98838f8
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x948522c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x94853fc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x98838ad
mov ecx, edi
jns 0x98838dc
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 + 0x9485404]
or eax, eax
je 0x98838f2
mov dword [ebx], eax
add ebx, 4
jmp 0x98838ca
call dword [esi + 0x9485400]
mov ebp, dword [esi + 0x9485408]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x24f]
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 0x988392c
sub esp, 0xffffff80
jmp 0xd217f7
Function at 0x402f10
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x403488
call fcn.0040323c
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x4043a0
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x402d98
cmp eax, esi
jne 0x402d8b
xor esi, esi
inc esi
mov edi, esi
jmp 0x402d9b
push 0x3e8
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x402d6f
xor esi, esi
inc esi
cmp dword [0x4043a4], esi
jne 0x402dad
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x402de7
cmp dword [0x4043a4], ebx
jne 0x402de1
mov dword [0x4043a4], esi
push 0x4011a8
push 0x40119c
call fcn.00546000
pop ecx
pop ecx
test eax, eax
je 0x402de7
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x402ebc
mov dword [0x404034], esi
cmp dword [0x4043a4], esi
jne 0x402e0a
push 0x401198
push 0x401190
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x4043a4], 2
test edi, edi
jne 0x402e17
xor eax, eax
mov ecx, 0x4043a0
xchg dword [ecx], eax
cmp dword [0x4043a8], 0
je 0x402e43
push 0x4043a8
call fcn.00403090
pop ecx
test eax, eax
je 0x402e43
push ebx
push 2
push ebx
mov esi, dword [0x4043a8]
mov ecx, esi
call dword [0x40515c]
call esi
push dword [0x404040]
push dword [0x40403c]
push dword [0x404038]
call fcn.00401a43
add esp, 0xc
mov dword [0x404030], eax
cmp dword [0x404048], 0
jne 0x402ea1
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x404034], 0
jne 0x402eb5
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x404030]
mov dword [ebp - 4], 0xfffffffe
call fcn.00403284
ret
call fcn.00403183
jmp 0x402d53

Function at 0x402f94
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x4034a8
call fcn.0040340c
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x402ff4
cmp eax, 0xffffffff
je 0x402ff4
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x402fed
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x402fed
cmp edx, 0x10000000
jae 0x402fed
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x402fea
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.00403451
ret 4

Function at 0x403040
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40307e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x403076
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x403080
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x403066
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x401ab5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44c090]
jne 0x401abf
repz ret
jmp fcn.004028f8

Function at 0x40b454
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.00407795
and dword [ebp - 4], 0
cmp dword [0x451bf4], 0
mov ebx, eax
jne 0x40b505
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b5b6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40b5b6
push eax
call fcn.00407723
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x451bf4], eax
call esi
push eax
call fcn.00407723
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x451bf8], eax
call esi
push eax
call fcn.00407723
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x451bfc], eax
call esi
push eax
call fcn.00407723
pop ecx
mov dword [0x451c04], eax
test eax, eax
je 0x40b505
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00407723
pop ecx
mov dword [0x451c00], eax
mov eax, dword [0x451c00]
cmp eax, ebx
je 0x40b55d
cmp dword [0x451c04], ebx
je 0x40b55d
push eax
call fcn.0040779e
push dword [0x451c04]
mov esi, eax
call fcn.0040779e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b55d
test edi, edi
je 0x40b55d
call esi
test eax, eax
je 0x40b554
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b554
test byte [ebp - 0xc], 1
jne 0x40b55d
or dword [ebp + 0x10], 0x200000
jmp 0x40b596
mov eax, dword [0x451bf8]
cmp eax, ebx
je 0x40b596
push eax
call fcn.0040779e
pop ecx
test eax, eax
je 0x40b596
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b596
mov eax, dword [0x451bfc]
cmp eax, ebx
je 0x40b596
push eax
call fcn.0040779e
pop ecx
test eax, eax
je 0x40b596
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x451bf4]
call fcn.0040779e
pop ecx
test eax, eax
je 0x40b5b6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b5b8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40d61b
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [0x17f7934], 0x930
jne 0x40d642
push str.Doxewupotewof_zisih
push 0
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
cmp dword [0x17f7934], 0x114e
mov eax, dword [ebp + 8]
mov dword [0x17f7650], eax
jne 0x40d67a
push str.yevuzemirog_bufuzih_zeyudeceyozuyexu
push 0
call dword [sym.imp.KERNEL32.dll_CreateJobObjectA]
lea eax, [ebp - 0x1c]
push eax
push str.fipuyikadisexot_gabocohivafume_famucupufenoyozozaxidububago_fipunopanacomevoburemamur_sejupeyefovoxayi
call dword [sym.imp.KERNEL32.dll_BuildCommDCBA]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
leave
ret
Function at 0x40d68b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
jle 0x40d6cb
and dword [ebp - 4], 0
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
call fcn.0040d67c
pop ecx
mov eax, dword [ebp - 8]
add eax, 0x46
mov dword [ebp - 4], eax
sub dword [ebp - 4], 0xa
sub dword [ebp - 4], 0x3c
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 4]
add eax, esi
xor byte [eax], cl
inc esi
cmp esi, dword [ebp + 0xc]
jl 0x40d698
cmp dword [ebp + 0xc], 0x2d
pop esi
jne 0x40d6e3
or dword [0x17f7944], 0xffffffff
mov dword [0x17f7940], 0xa62e7790
leave
ret