joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409580
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [0x439440]
mov ebx, edx
push edi
mov edi, ecx
mov dword [ebp - 0xc], edi
mov eax, dword [esi + 0x49fc]
mov edx, dword [eax]
inc dword [esi + 0xa4]
mov ecx, dword [edi + 0x26c]
mov dword [ebp - 4], edx
cmp dword [ecx + 0x7c], 1
jle 0x4095bf
push ecx
add ecx, 0x78
call fcn.00425090
mov edx, dword [ebp - 4]
mov edi, dword [edi + 0x26c]
mov esi, dword [edx + ebx*4 + 0x70]
mov eax, dword [edi]
test eax, eax
je 0x409632
cmp eax, 1
jne 0x4095e3
mov eax, dword [edi + 8]
cmp dword [eax + 0x1c], 0
jne 0x4095e3
cmp dword [eax + 0x20], 0
je 0x409632
mov eax, dword [esi]
mov ecx, dword [esi + 4]
cmp eax, ecx
jne 0x409619
lea edx, [eax + 1]
mov dword [ebp - 8], edx
test ecx, ecx
je 0x409604
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [ebp - 8]
sar eax, 1
add eax, ecx
jmp 0x409609
mov eax, 8
cmp eax, edx
mov ecx, esi
cmovg edx, eax
push edx
call fcn.00419860
mov edx, dword [ebp - 4]
mov ecx, dword [esi]
mov eax, dword [esi + 8]
mov dword [eax + ecx*4], edi
inc dword [esi]
inc dword [edx + 0x3c]
mov eax, dword [edi + 0x18]
add dword [edx + 0x44], eax
mov eax, dword [edi + 0xc]
add dword [edx + 0x40], eax
mov eax, dword [ebp - 0xc]
mov esi, dword [eax + 0x190]
mov eax, dword [eax + 0x188]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x409672
nop dword [eax + eax]
mov ecx, dword [esi]
cmp byte [ecx + 0xae], 0
je 0x40966b
cmp byte [ecx + 0xb5], 0
jne 0x40966b
mov edx, ebx
call fcn.00409580
add esi, 4
cmp esi, edi
jne 0x409650
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a890
Capabilities:
Hash data with crc32

Disassembly:
mov eax, ecx
or ecx, 0xffffffff
push ebx
push esi
mov bl, byte [eax]
lea esi, [eax + 1]
test bl, bl
je 0x40a8cd
push edi
or edi, 0xffffffff
cmp bl, 0x23
jne 0x40a8b3
cmp byte [esi], bl
jne 0x40a8b3
cmp byte [esi + 1], bl
cmove ecx, edi
movzx edx, cl
movzx eax, bl
mov bl, byte [esi]
xor edx, eax
shr ecx, 8
inc esi
xor ecx, dword [edx*4 + 0x432428]
test bl, bl
jne 0x40a8a4
pop edi
pop esi
not ecx
pop ebx
jmp fcn.0040a830
Function at 0x4178b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
cmp dword [edi + 0x5dc0], 0
lea esi, [edi + 0x5dc4]
je 0x417932
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x4178ec
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.00419c50
push dword [ebp + 8]
mov ecx, esi
mov dword [esi], 0
push ebx
call fcn.00404d00
mov edx, dword [esi]
mov ecx, 0x43943c
push dword [edi + 0x5dc0]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edi + 0x5dcc]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
mov ecx, esi
push ebx
call fcn.00404d00
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x417d40
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov bl, byte [ecx]
or eax, 0xffffffff
push esi
lea esi, [ecx + 1]
push edi
mov edi, dword [0x439440]
test bl, bl
je 0x417d86
or edi, 0xffffffff
cmp bl, 0x23
jne 0x417d67
cmp byte [esi], bl
jne 0x417d67
cmp byte [esi + 1], bl
cmove eax, edi
movzx edx, al
movzx ecx, bl
mov bl, byte [esi]
xor edx, ecx
shr eax, 8
inc esi
xor eax, dword [edx*4 + 0x432428]
test bl, bl
jne 0x417d58
mov edi, dword [0x439440]
mov ecx, dword [edi + 0x5d64]
not eax
mov edx, dword [edi + 0x5d6c]
pop edi
pop esi
lea ecx, [ecx + ecx*8]
lea ecx, [edx + ecx*4]
pop ebx
cmp edx, ecx
je 0x417dad
cmp dword [edx + 4], eax
je 0x417db0
add edx, 0x24
cmp edx, ecx
jne 0x417da1
xor eax, eax
ret
mov eax, edx
ret
Function at 0x42a630
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x439008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x439440]
lea eax, [ebp - 0x10]
push esi
push edi
push eax
mov dword [ebp - 0x24], ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x42a7dd
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x42a7dd
push 0x38
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, dword [0x439440]
add esp, 4
mov edi, eax
test esi, esi
je 0x42a6d4
movsx edx, word [esi + 0x5e50]
lea eax, [esi + 0x5e54]
mov ecx, dword [esi + 0x3f08]
lea eax, [eax + edx*8]
cmp dword [eax], ecx
je 0x42a6ca
lea eax, [edx + 1]
mov dword [ebp - 0x1c], 6
cdq
idiv dword [ebp - 0x1c]
movzx eax, dx
mov word [esi + 0x5e50], ax
cwde
lea eax, [eax*8 + 0x5e54]
add eax, esi
mov dword [eax], ecx
xor ecx, ecx
mov dword [eax + 4], ecx
inc word [eax + 4]
inc dword [esi + 0x5e48]
test edi, edi
je 0x42a6e7
push 0x38
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x42a6e9
xor edi, edi
or dword [ebx + 0xc], 6
mov dword [ebx + 0x70], edi
mov dword [ebx + 0x68], str.imgui_impl_win32
mov ebx, dword [ebp - 0x24]
mov dword [edi], ebx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
mov dword [edi + 0x20], 9
test esi, esi
je 0x42a724
mov esi, dword [esi + 0x70]
jmp 0x42a726
xor esi, esi
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 4
add esi, 0x24
shr eax, 0x10
push esi
push 0x20001004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x42a749
mov dword [esi], eax
mov eax, dword [0x439440]
xor esi, esi
mov dword [ebp - 0x38], str.xinput1_4.dll
mov dword [ebp - 0x34], str.xinput1_3.dll
mov dword [ebp - 0x30], str.xinput9_1_0.dll
mov eax, dword [eax + 0x49fc]
mov dword [ebp - 0x2c], str.xinput1_2.dll
mov dword [ebp - 0x28], str.xinput1_1.dll
mov eax, dword [eax]
mov dword [eax + 0x24], ebx
mov byte [edi + 0x29], 1
push dword [ebp + esi*4 - 0x38]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
jne 0x42a7ab
inc esi
cmp esi, 5
jl 0x42a782
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f68b
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.XInputGetCapabilities
push ebx
mov dword [edi + 0x2c], ebx
call esi
push str.XInputGetState
push ebx
mov dword [edi + 0x30], eax
call esi
mov dword [edi + 0x34], eax
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f68b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042f68b
mov esp, ebp
pop ebp
ret
Function at 0x42fe70
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42feaf
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42feaf
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42feaf
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42feaf
cmp dword [ecx + 0x74], 0xe
jbe 0x42feaf
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

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 0x408923
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x4085d8
sub edx, 0xd10582a8
call fcn.00408944
xor dword [ebx], edi
inc ebx
and esi, edx
or esi, esi
cmp ebx, eax
jne fcn.00408923
mov edx, 0x546b1e3e
ret
Function at 0x47d8ee
Capabilities:
Encode data using xor

Disassembly:
mov eax, ecx
jmp 0x463b2b
xor ecx, ecx
cmp dword [esp + 4], ecx
jbe 0x463b45
push esi
movzx esi, byte [ecx + edx]
rol eax, 7
xor eax, esi
inc ecx
cmp ecx, dword [esp + 8]
jb 0x463b34
pop esi
jmp 0x463b50
ret 4
jmp 0x463b1e

Function at 0x53b70f
Capabilities:
Execute anti-debugging instructions

Disassembly:
add esp, 0xe
mov byte [esp + 5], al
lea esp, [esp + 0x14]
pushal
sub esp, 0x1c
jmp 0x53b741
call 0x53b70f
push ebx
popal
outsb dx, byte gs:[esi]
imul ebp, dword [bp + 0x65], reloc.oleaut32.dll_SysFreeString
insb byte es:[edi], dx
outsb dx, byte gs:[esi]
and byte [esi + 0x32], dh
xor al, 0x2e
xor byte [esi], ch
xor byte [eax], al
pushfd
stc
push sp
pushal
jmp 0x53b6d8
mov eax, 0x9a1e3582
xchg word [esp + 0x10], si
lea esp, [esp + 0x15]
push esi
jmp 0x53b8a0
shr si, 0xa
not ecx
mov dword [esp + 1], eax
bswap ecx
cpuid
xchg di, cx
jmp 0x53b72b
lea esp, [esp + 2]
mov bx, word [esp]
xchg byte [esp], cl
not ax
cmc
jmp 0x53b794
mov cx, word [esp + 2]
pop ebx
xchg si, ax
mov di, word [esp]
clc
xchg si, bp
jmp 0x53b76c
rdtsc
mov ebx, edx
mov dl, byte [esp]
mov cx, 0xc154
rdtsc
lea edi, reloc.oleaut32.dll_SysFreeString
jmp 0x53b85d
pop ebp
xchg di, bp
rdtsc
mov word [esp + 1], sp
bsr ecx, ebp
xchg ebx, edx
jmp 0x53b782
mov ecx, ebx
add esp, 0
call fcn.0053b812
cmp byte [edx + 0x15a25730], ah
jp 0x53b7c6
ja 0x53b7f3
loope 0x53b829
lcall 0xfc49, 0x7e17e4f5
cld
setg dh
lea ecx, [ecx*4]
bswap edi
not ebp
mov ebp, edi
jmp 0x53b7cd
add byte [edi], cl
iretd
bswap esi
add esp, 6
jmp 0x53b885
neg di
cpuid
inc si
cpuid
add esp, 0
std
jmp 0x53b7e9
mov dword [esp + 3], edi
pop di
lea esp, [esp + 2]
pop bx
call fcn.0053b86f
jnp 0x53b8d6
arpl word [ecx], bp
movaps xmmword [ebx - 0x4e], xmm3
lodsd eax, dword [esi]
mov esp, 0x3245c89
mov dword [esp + 3], ebx
dec edx
cmp bh, al
mov cl, byte [esp + 3]
mov bh, byte [esp + 9]
clc
jmp 0x53b7bb
not esi
lea ebx, [edi*4]
xchg ebx, ecx
xchg byte [esp + 8], al
jmp 0x53b91d
xchg word [esp + 1], di
pushal
sub esp, 3
xchg dword [esp + 2], eax
jmp 0x53b948
lea edx, [ebp*4]
pushfd
mov dx, 0xc3d2
not edi
not edi
xchg byte [esp], ah
jmp 0x53b907
not cx
mov byte [esp + 0x2e], dl
mov ah, bh
lea ebx, [esi + edi]
lea esp, [esp + 0x18]
jmp 0x53baf8
xchg word [esp + 0x13], si
mov bx, word [esp + 0x27]
mov dl, ah
pop dx
xchg bh, dh
cld
jmp 0x53b932
mov dl, byte [esp + 0xd]
mov ecx, 0xe28bc33f
rcl ax, 9
call fcn.0053ba8c
xchg ch, cl
rdtsc
sub esp, 5
mov si, 0x7a4d
pop word [esp + 3]
bt ax, di
jmp 0x53bb5b
cpuid
push word [esp + 6]
dec esi
pop dword [esp]
btr di, bp
call fcn.0053bb39
push edx
mov word [esp + 0xf], bp
xchg byte [esp + 0x11], bl
mov al, cl
xchg bp, ax
jmp 0x53bbb1
lea ecx, [edi*4]
xchg word [esp + 8], ax
push dword [esp + 0x11]
jmp 0x53bbff
rcl ax, cl
cpuid
xchg byte [esp + 3], ah
mov ax, 0x9b8a
mov cx, word [esp + 1]
bsf eax, eax
jmp 0x53bb9b
lea edx, [edi*4]
inc di
xchg word [esp + 2], dx
call int.0053bdab
adc byte [ebx + 0x5ec830a], dl
sub esp, 5
bt ebx, edx
add esp, 0x19
mov ah, 0x3d
xchg byte [esp], ch
mov dh, byte [esp + 3]
jmp 0x53bbe9
Function at 0x53bb39
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov bh, byte [esp + 8]
jmp 0x53bb43
xchg cl, ah
not bp
mov bh, al
xchg byte [esp + 6], ah
sub esp, 0xf
mov edx, dword [esp + 9]
jmp 0x53bbd5
lea edx, [edx*4]
bt ebx, ecx
rdtsc
pop dword [esp + 5]
bsr ebp, esp
cld
jmp 0x53bb6f
rcr ax, 0xf
pop bx
pop word [esp]
rdtsc
cpuid
xchg dword [esp + 0xc], ecx
jmp 0x53bb85

Function at 0x53c44d
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea ebx, [ecx + esi]
mov word [esp + 4], bx
jmp 0x53cdca
xchg si, ax
rcl cl, 5
xchg word [esp + 4], bp
lea edx, [edx + edx]
rol al, cl
not ch
bsr bp, bp
pop edi
mov bp, word [esp + 4]
jmp 0x53c4db
mov edi, 0x599071ff
xchg dx, ax
rdtsc
add esp, 6
pop edx
pop word [esp + 7]
jmp 0x53c5db
rol bx, 9
push word [esp + 0x1a]
mov dword [esp + 0x31], ebx
shr ax, cl
pop dword [esp + 0x32]
popal
jmp 0x53c754
sub esp, 0x1f
push word [esp + 9]
rdtsc
shl eax, 0x11
pushfd
btr eax, esi
jmp 0x53c80d
pop word [esp + 1]
pop eax
mov dh, byte [esp + 3]
sub esp, 3
sub esp, 0x10
sub bp, bp
jmp 0x53caff

Function at 0x53c575
Capabilities:
Execute anti-debugging instructions

Disassembly:
add esp, 1
mov byte [esp + 9], ah
xchg dword [esp + 8], edx
mov ah, byte [esp + 0xa]
jmp 0x53c5af
pop edx
mov dl, 0x5d
lea ebp, [ebp + 0xc2]
mov dh, byte [esp + 0xd]
pop word [esp + 1]
jmp 0x53c55f
inc ch
xchg ch, dh
mov byte [esp + 2], bl
pop di
push dword [esp + 7]
mov di, word [esp + 0xa]
jmp 0x53c599
Function at 0x406820
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x41be2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x404744
call fcn.00407a0b
push 4
mov dword [esp + 0x18], 0
call fcn.004092bd
mov edi, eax
add esp, 4
test edi, edi
je 0x406894
push ebx
call fcn.00407806
mov dword [edi], eax
call fcn.004075c5
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.004079cc
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x406888
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.004079f4
pop ebx
jmp 0x406896
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x409e8b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41f354]
jne 0x409e95
repz ret
jmp fcn.0041097c
Function at 0x41584c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41f354]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040bf17
and dword [ebp - 0x14], 0
cmp dword [0x439544], 0
mov dword [ebp - 0x18], eax
jne 0x4158ff
push 0x403acc
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4159a7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403ac0
push ebx
call edi
test eax, eax
je 0x4159a7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403ab0
push ebx
mov dword [0x439544], eax
call edi
push eax
call esi
push 0x403a9c
push ebx
mov dword [0x439548], eax
call edi
push eax
call esi
push 0x403a80
push ebx
mov dword [0x43954c], eax
call edi
push eax
call esi
mov dword [0x439554], eax
test eax, eax
je 0x4158ff
push 0x403a68
push ebx
call edi
push eax
call esi
mov dword [0x439550], eax
mov eax, dword [0x439550]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x415958
cmp dword [0x439554], ecx
je 0x415958
push eax
call esi
push dword [0x439554]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x415958
test ebx, ebx
je 0x415958
call edi
test eax, eax
je 0x41594f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41594f
test byte [ebp - 8], 1
jne 0x415958
or dword [ebp + 0x10], 0x200000
jmp 0x41598b
mov eax, dword [0x439548]
cmp eax, dword [ebp - 0x18]
je 0x41598b
push eax
call esi
test eax, eax
je 0x41598b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41598b
mov eax, dword [0x43954c]
cmp eax, dword [ebp - 0x18]
je 0x41598b
push eax
call esi
test eax, eax
je 0x41598b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x439544]
call esi
test eax, eax
je 0x4159a7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4159a9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409e8b
leave
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

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

Function at 0x401010
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 3
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 4
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
add eax, 5
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 6
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 7
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
add eax, 8
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 9
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 0xa
mov dword [ebp - 4], edx
push 0x4e20
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x40b709
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor ecx, ecx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 0x30]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
cmp byte [eax + 2], cl
mov edi, dword [0x744110fc]
mov ebx, 0xdeadbeef
jne 0x40c34b
mov eax, dword [ebp + 8]
cmp eax, ebx
jne 0x40b752
push dword [esi + 8]
call edi
mov ecx, eax
test ecx, ecx
je 0x40c356
mov eax, dword [ecx + 0x64]
mov dword [0x74436100], eax
mov eax, dword [ebp + 0xc]
cmp eax, ebx
jne 0x40b769
test ecx, ecx
je 0x40c361
mov eax, dword [ecx + 0x64]
mov dword [0x74436104], eax
mov eax, dword [ebp + 0x10]
test eax, eax
pop edi
pop esi
pop ebx
mov dword [0x74436108], 0x7443374e
jne 0x40c37c
mov eax, dword [ebp + 0x14]
test eax, eax
mov dword [0x7443610c], 0x74433773
jne 0x40c386
pop ebp
ret 0x10
mov dword [0x74436100], ecx
jmp 0x40b757
and dword [0x74436100], eax
jmp 0x40b757
push dword [esi + 8]
call edi
mov ecx, eax
test ecx, ecx
jne 0x40b766
or dword [0x74436104], 0xffffffff
jmp 0x40b76e
mov dword [0x74436108], eax
jmp 0x40b786
mov dword [0x7443610c], eax
jmp 0x40b79b
Function at 0x423ea0
Capabilities:
Parse pe header

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

Function at 0x433000
Capabilities:
Encode data using xor

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

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, 0x1005c
call fcn.00436930
mov ecx, dword [esp + 0x10070]
mov eax, dword [0x4690e0]
xor eax, esp
mov dword [esp + 0x10058], eax
mov word [esp + 0x58], 0
mov word [esp + 8], 0
movzx ebx, byte [ecx]
test bl, bl
je 0x421e29
mov dword [esp], ecx
mov edi, 0x28
lea esi, [esp + 8]
xor eax, eax
nop word [eax + eax]
mov ebp, esi
mov ecx, edi
test ax, ax
je 0x421ddd
mov ecx, edi
mov eax, esi
nop dword [eax]
lea ebp, [eax + 2]
dec ecx
cmp word [eax + 2], 0
mov eax, ebp
jne 0x421dd0
test ecx, ecx
je 0x421e72
push ebp
call fcn.00444580
add esp, 4
lea eax, [eax*2]
add eax, ebp
mov byte [esp + 6], bl
mov byte [esp + 7], 0
push 2
lea ecx, [esp + 0xa]
push ecx
push eax
call fcn.00443ce0
add esp, 0xc
mov eax, dword [esp]
movzx ebx, byte [eax + 1]
test bl, bl
je 0x421e29
inc eax
mov dword [esp], eax
dec edi
movzx eax, word [esi + 2]
add esi, 2
jmp 0x421dc0
lea edi, [esp + 0x58]
lea eax, [esp + 8]
push 0x10000
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
add eax, 0xfffeffff
xor esi, esi
cmp eax, 0xffff0000
jb 0x421e57
push edi
call fcn.00442e3a
add esp, 4
mov esi, eax
mov ecx, dword [esp + 0x10058]
xor ecx, esp
call fcn.00436920
mov eax, esi
add esp, 0x1005c
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.00443b68
int3

Function at 0x421e80
Capabilities:
Set environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x5c
mov ecx, dword [esp + 0x70]
mov eax, dword [0x4690e0]
xor eax, esp
mov dword [esp + 0x58], eax
mov word [esp + 8], 0
movzx ebx, byte [ecx]
test bl, bl
je 0x421f25
mov dword [esp], ecx
mov edi, 0x28
lea esi, [esp + 8]
xor eax, eax
nop word cs:[eax + eax]
mov ebp, esi
mov ecx, edi
test ax, ax
je 0x421edd
mov ecx, edi
mov eax, esi
nop dword [eax]
lea ebp, [eax + 2]
dec ecx
cmp word [eax + 2], 0
mov eax, ebp
jne 0x421ed0
test ecx, ecx
je 0x421f47
push ebp
call fcn.00444580
add esp, 4
lea eax, [eax*2]
add eax, ebp
mov byte [esp + 6], bl
mov byte [esp + 7], 0
push 2
lea ecx, [esp + 0xa]
push ecx
push eax
call fcn.00443ce0
add esp, 0xc
mov eax, dword [esp]
movzx ebx, byte [eax + 1]
test bl, bl
je 0x421f25
inc eax
mov dword [esp], eax
dec edi
movzx eax, word [esi + 2]
add esi, 2
jmp 0x421ec0
lea eax, [esp + 8]
push dword [esp + 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.00436920
add esp, 0x5c
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.00443b68
int3