joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1011078a
Capabilities:
Get file size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1011c838
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov eax, dword [esi + 0x20]
xor edi, edi
xor ebp, ebp
cmp eax, ebx
je 0x101107a2
call fcn.10104e80
mov ebp, eax
mov eax, dword [esi + 0x18]
mov ecx, 0xc0000000
cmp eax, ebx
je 0x101107b3
mov ecx, accept
mov eax, dword [esi + 0x24]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
cmp dword [eax - 8], ebx
je 0x10110808
push ebx
push 0x80
push 3
push ebp
push 3
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x101107ee
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x14], eax
cmp dword [esi + 4], 0xffffffff
je 0x10110934
cmp dword [esp + 0x18], ebx
jne 0x10110808
cmp dword [esp + 0x14], ebx
je 0x10110934
mov eax, dword [esi + 0x18]
mov edi, 4
cmp eax, ebx
je 0x10110819
mov edi, 2
lea ebx, [esi + 0x28]
lea ecx, [esp + 0x10]
push ebx
call fcn.10069f80
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x24], 0
test eax, eax
je 0x1011085f
mov edx, dword [ebx]
mov eax, dword [edx - 8]
test eax, eax
je 0x1011085f
call fcn.100b6cd0
test eax, eax
je 0x1011085f
push str.Global_
lea ecx, [esp + 0x14]
call fcn.1006ac00
push ebx
lea ecx, [esp + 0x14]
call fcn.1006b630
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [esi + 4]
push eax
mov eax, dword [esi + 0x10]
push eax
push 0
push edi
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test eax, eax
mov dword [esi + 8], eax
je 0x1011090e
mov edx, dword [esi + 0x18]
mov ecx, 6
test edx, edx
je 0x1011089b
mov ecx, 4
mov edx, dword [esi + 0x10]
push edx
mov edx, dword [esi + 0x14]
push edx
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 0xc], eax
je 0x1011090e
mov eax, dword [esi + 0x10]
mov ebp, 1
test eax, eax
jne 0x101108e9
mov eax, dword [esi + 4]
or ebx, 0xffffffff
cmp eax, ebx
je 0x101108ec
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x14]
mov eax, dword [esp + 0x18]
xor edi, edi
sub ecx, edx
sbb eax, edi
test eax, eax
jle 0x101108e4
mov dword [esi + 0x10], ebx
jmp 0x101108ec
mov dword [esi + 0x10], ecx
jmp 0x101108ec
or ebx, 0xffffffff
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], ebx
call fcn.1006a980
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.1006a980
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x10111070
Capabilities:
Encode data using base64

Disassembly:
push ebp
push edi
mov edi, dword [esp + 0x14]
xor ebp, ebp
test edi, edi
jle 0x10111156
mov ecx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x18]
cmp edi, 3
jl 0x101110e3
xor edx, edx
xor eax, eax
mov dh, byte [esi]
mov al, byte [esi + 2]
mov dl, byte [esi + 1]
shl edx, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
inc ecx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx - 1], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
inc ecx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx - 1], al
mov eax, edx
shr eax, 6
and eax, 0x3f
inc ecx
and edx, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx - 1], al
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
jmp 0x1011113a
xor edx, edx
mov dl, byte [esi]
shl edx, 0x10
cmp edi, 2
jne 0x101110f6
xor eax, eax
mov ah, byte [esi + 1]
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
inc ecx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx - 1], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
inc ecx
cmp edi, 1
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx - 1], al
jne 0x10111126
mov ebx, 0x3d
jmp 0x10111134
shr edx, 6
and edx, 0x3f
xor ebx, ebx
mov bl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], bl
inc ecx
mov byte [ecx], 0x3d
sub edi, 3
inc ecx
add ebp, 4
add esi, 3
test edi, edi
jg 0x1011108a
pop esi
pop ebx
mov eax, ebp
pop edi
mov byte [ecx], 0
pop ebp
ret
mov ecx, dword [esp + 0xc]
mov eax, ebp
pop edi
pop ebp
mov byte [ecx], 0
ret
Function at 0x10111530
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x80
call fcn.1007f3d0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x9c]
xor eax, eax
push edi
test esi, esi
je 0x1011155b
mov ebx, dword [esp + 0x94]
mov eax, 1
mov dword [ebx], esi
jmp 0x1011156d
mov ebx, dword [esp + 0x94]
mov ecx, dword [ebx]
mov dword [esp + 0xa0], ecx
mov esi, ecx
mov ecx, dword [esp + 0x98]
test ecx, ecx
je 0x101116d9
push esi
call fcn.100df900
mov edi, eax
add esp, 4
cmp edi, 0x80
jle 0x101115a3
push str.j____int_sizeof_ctx__key_
push 0x54
push str..cryptohmachmac.c
call fcn.100dada0
add esp, 0xc
mov ebp, dword [esp + 0x9c]
cmp edi, ebp
jge 0x101115e2
mov edx, dword [esp + 0xa4]
lea edi, [ebx + 4]
push edx
push esi
push edi
call fcn.100e0810
mov eax, dword [esp + 0xa4]
push ebp
push eax
push edi
call fcn.100e0980
lea esi, [ebx + 0x34]
lea ecx, [ebx + 0x38]
push esi
push ecx
push edi
call fcn.100e0a80
add esp, 0x24
jmp 0x10111621
test ebp, ebp
jl 0x101115ee
cmp ebp, 0x80
jle 0x10111602
push str.len_0__len__int_sizeof_ctx__key_
push 0x5e
push str..cryptohmachmac.c
call fcn.100dada0
add esp, 0xc
mov esi, dword [esp + 0x98]
mov ecx, ebp
mov edx, ecx
lea edi, [ebx + 0x38]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [ebx + 0x34]
mov dword [esi], ebp
mov esi, dword [esi]
cmp esi, 0x80
je 0x10111646
mov ecx, 0x80
xor eax, eax
sub ecx, esi
lea edi, [esi + ebx + 0x38]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov esi, dword [esp + 0xa0]
xor eax, eax
mov cl, byte [ebx + eax + 0x38]
xor cl, 0x36
mov byte [esp + eax + 0x10], cl
inc eax
cmp eax, 0x80
jl 0x1011164f
mov ebp, dword [esp + 0xa4]
lea edi, [ebx + 0x14]
push ebp
push esi
push edi
call fcn.100e0810
push esi
call fcn.100df900
lea edx, [esp + 0x20]
push eax
push edx
push edi
call fcn.100e0980
add esp, 0x1c
xor eax, eax
mov cl, byte [ebx + eax + 0x38]
xor cl, 0x5c
mov byte [esp + eax + 0x10], cl
inc eax
cmp eax, 0x80
jl 0x1011168b
lea edi, [ebx + 0x24]
push ebp
push esi
push edi
call fcn.100e0810
push esi
call fcn.100df900
lea edx, [esp + 0x20]
push eax
push edx
push edi
call fcn.100e0980
add esp, 0x1c
lea eax, [ebx + 0x14]
add ebx, 4
push eax
push ebx
call fcn.100e0b30
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret
test eax, eax
je 0x101116be
jmp 0x1011164d

Function at 0x10111be0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x58], ecx
mov eax, 1
ret
Function at 0x9eb920
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
test edi, edi
je 0x9eb96c
mov cl, byte [ebx + esi]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
test dl, 2
movzx ecx, cl
cmove ecx, eax
mov byte [ebx + esi], cl
inc esi
cmp esi, edi
jb 0x9eb932
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x9eb9d0
Capabilities:
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf0000040
push 1
push 0
push 0
lea edi, [esi + 4]
mov dword [esi], 0
push esi
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x9eba22
push edi
push 0
push 0
push 0x8002
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x9eba28
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi], 0
pop edi
xor eax, eax
pop esi
pop ebp
ret
pop edi
mov eax, 1
pop esi
pop ebp
ret

Function at 0xa03f15
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00a03bd5

Function at 0xa08d0f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00a08b8e

Function at 0xa0e2c0
Capabilities:
Parse pe header

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

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

Disassembly:
pushal
nop
mov eax, section..reloc
nop
nop
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x42e072
nop
mov ebx, 0x407ef8
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
pop eax
nop
nop
nop
nop
nop
mov esi, 0x160c53f2
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x42e060
nop
nop
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x42e0d2
nop
mov ebx, 0x42cd70
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x214850ce
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x401aa1
Capabilities:
Parse pe header

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

Function at 0x40abc0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40abed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40abed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4014f0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403288
push 0x4018ac
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov ebx, dword [ebp + 8]
mov dword [0x404074], ebx
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov edi, dword [ebp + 0x10]
push edi
call fcn.0040179c
add esp, 4
lea eax, [eax + eax + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
mov dword [ebp - 0x20], esi
test esi, esi
je 0x401681
push edi
push esi
call fcn.00401780
add esp, 8
mov ecx, dword [ebp + 0x14]
push ecx
push esi
call fcn.00401230
test eax, eax
je 0x40167a
mov edx, dword [ebp + 0xc]
push edx
push ebx
call fcn.004010d0
test eax, eax
je 0x401660
mov edi, esi
mov dword [ebp - 0x1c], edi
mov eax, dword [0x404060]
test eax, eax
je 0x4015de
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
mov dword [ebp - 0x1c], edi
push 0
test edi, edi
jne 0x4015cd
push esi
push str.RUNDLL
push 0x300
push eax
call fcn.00401190
jmp 0x401650
push 0
push ebx
push edi
push 0xffffffffffffffff
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 4], 0
push str.g_lpfnCommand_start
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call ebx
mov eax, dword [ebp + 0x14]
push eax
push edi
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [0x404068]
push edx
call dword [0x404064]
push str.g_lpfnCommand_end
call ebx
mov dword [ebp - 4], 0xffffffff
jmp 0x401650
mov eax, dword [0x404060]
test eax, eax
je 0x401660
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [0x404068]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov edx, dword [0x40406c]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4016a0
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
mov ax, word [esi]
cmp ax, 0x22
jne 0x4016d7
mov ax, word [esi + 2]
add esi, 2
test ax, ax
je 0x4016cc
cmp ax, 0x22
jne 0x4016b5
add esi, 2
jmp 0x4016e9
cmp word [esi], 0x22
jne 0x4016e9
add esi, 2
jmp 0x4016e9
cmp ax, 0x20
jbe 0x4016e9
lea ecx, [ecx]
add esi, 2
cmp word [esi], 0x20
ja 0x4016e0
mov ax, word [esi]
test ax, ax
je 0x401703
cmp ax, 0x20
ja 0x401703
mov ax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x4016f1
lea eax, [esp + 4]
push eax
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [esp + 0x30], 1
movzx eax, word [esp + 0x34]
jne 0x401727
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call main
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x401bac
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x401bda
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x401be1
cmp ebx, dword [eax + 4]
jae 0x401be1
xor eax, eax
jmp 0x401dd1
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x401bf2
xor eax, eax
inc eax
jmp 0x401dd0
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x401c08
cmp ecx, edx
jae 0x401d4d
cmp dword [eax + 4], 0
je 0x401c11
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x401bf9
cmp dword [ebp + 8], 0
je 0x401c33
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x401d4d
cmp eax, esi
jae 0x401d4d
mov eax, dword [0x404080]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x401c58
cmp dword [esi*4 + 0x404088], edi
je 0x401d51
inc esi
cmp esi, eax
jl 0x401c46
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x401dcd
cmp dword [ebp - 8], 0x1000000
jne 0x401dcd
test byte [ebp - 0xc], 0xcc
je 0x401cd6
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x401dcd
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x401dcd
cmp word [eax + 0x18], 0x10b
jne 0x401dcd
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x401dcd
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x401cd6
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x401cd6
test byte [ecx + 0x27], 0x80
jne 0x401d4d
push 1
push 0x4040c8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x401bea
mov ecx, dword [0x404080]
test ecx, ecx
mov edx, ecx
jle 0x401d0a
lea eax, [ecx*4 + 0x404084]
cmp dword [eax], edi
je 0x401d0a
dec edx
sub eax, 4
test edx, edx
jg 0x401cfe
test edx, edx
jne 0x401d3b
push 0xf
pop ebx
cmp ecx, ebx
jg 0x401d17
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x401d2f
lea eax, [edx*4 + 0x404088]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x401d1d
cmp ecx, 0x10
jge 0x401d3b
inc ecx
mov dword [0x404080], ecx
push 0
push 0x4040c8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x401bea
xor eax, eax
jmp 0x401dd0
test esi, esi
jle 0x401bea
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4040c8
call ebx
test eax, eax
jne 0x401bea
cmp dword [esi*4 + 0x404088], edi
je 0x401da7
mov eax, dword [0x404080]
lea esi, [eax - 1]
test esi, esi
jl 0x401d95
cmp dword [esi*4 + 0x404088], edi
je 0x401d91
dec esi
jns 0x401d85
test esi, esi
jge 0x401da5
cmp eax, 0x10
jge 0x401da0
inc eax
mov dword [0x404080], eax
lea esi, [eax - 1]
jmp 0x401da7
je 0x401dbf
xor ecx, ecx
test esi, esi
jl 0x401dbf
lea eax, [ecx*4 + 0x404088]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x401dad
push 0
push 0x4040c8
call ebx
jmp 0x401bea
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401e05
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x404118], esi
push edi
jne 0x401e25
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x404114], esi
mov byte [0x404110], al
jne 0x401e8b
mov ecx, dword [0x404160]
test ecx, ecx
je 0x401e6c
mov eax, dword [0x40415c]
sub eax, 4
cmp eax, ecx
jmp 0x401e65
mov eax, dword [eax]
test eax, eax
je 0x401e57
call eax
mov eax, dword [0x40415c]
sub eax, 4
cmp eax, dword [0x404160]
mov dword [0x40415c], eax
jae 0x401e4f
mov eax, 0x404018
mov esi, 0x40401c
cmp eax, esi
mov edi, eax
jae 0x401e8b
mov eax, dword [edi]
test eax, eax
je 0x401e84
call eax
add edi, 4
cmp edi, esi
jb 0x401e7c
mov eax, 0x404020
mov esi, 0x404024
cmp eax, esi
mov edi, eax
jae 0x401eaa
mov eax, dword [edi]
test eax, eax
je 0x401ea3
call eax
add edi, 4
cmp edi, esi
jb 0x401e9b
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x401ec4
push dword [ebp + 8]
mov dword [0x404118], 1
call fcn.00401dd5
pop ebp
ret

Function at 0x401ed7
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40411c], ebx
push esi
push edi
jne 0x401f57
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x401f92
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x40411c], eax
je 0x401f92
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x404120], eax
call esi
cmp dword [0x4040d8], 2
mov dword [0x404124], eax
jne 0x401f57
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40412c], eax
je 0x401f57
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x404128], eax
mov eax, dword [0x404128]
test eax, eax
je 0x401f9c
call eax
test eax, eax
je 0x401f83
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40412c]
test eax, eax
je 0x401f83
test byte [ebp - 8], 1
jne 0x401f9c
cmp dword [0x4040e4], 4
jb 0x401f96
or byte [ebp + 0x12], 0x20
jmp 0x401fbb
xor eax, eax
jmp 0x401fcb
or byte [ebp + 0x12], 4
jmp 0x401fbb
mov eax, dword [0x404120]
test eax, eax
je 0x401fbb
call eax
mov ebx, eax
test ebx, ebx
je 0x401fbb
mov eax, dword [0x404124]
test eax, eax
je 0x401fbb
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40411c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4b2b80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x70000]
push edi
jmp 0x4b2b9a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4b2ba1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b2b90
mov eax, 1
add ebx, ebx
jne 0x4b2bb3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4b2bc4
jne 0x4b2be3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b2be3
dec eax
add ebx, ebx
jne 0x4b2bd0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4b2ba8
add ebx, ebx
jne 0x4b2bdf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4b2c35
xor ecx, ecx
sub eax, 3
jb 0x4b2bfb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4b2c6a
sar eax, 1
mov ebp, eax
jmp 0x4b2c06
add ebx, ebx
jne 0x4b2c06
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b2bd4
inc ecx
add ebx, ebx
jne 0x4b2c14
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b2bd4
add ebx, ebx
jne 0x4b2c21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4b2c16
jne 0x4b2c32
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4b2c16
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4b2c54
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4b2c46
jmp 0x4b2b96
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4b2c54
add edi, ecx
jmp 0x4b2b96
pop esi
mov edi, esi
mov ecx, 0x377e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4b2c72
cmp byte [edi], 0x11
jne 0x4b2c72
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 0x4b2c77
lea edi, [esi + 0xae000]
mov eax, dword [edi]
or eax, eax
je 0x4b2cef
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb2fa8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb30fc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4b2ca4
mov ecx, edi
jns 0x4b2cd3
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 + 0xb3100]
or eax, eax
je 0x4b2ce9
mov dword [ebx], eax
add ebx, 4
jmp 0x4b2cc1
call dword [esi + 0xb3110]
mov ebp, dword [esi + 0xb3104]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x4b2d23
sub esp, 0xffffff80
jmp 0x416310
Function at 0x42e004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x42e00c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x42e030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219