joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f40
Capabilities:
Enumerate processes
Terminate process

Disassembly:
sub esp, 0x1b4
mov eax, dword [0x415024]
xor eax, esp
mov dword [esp + 0x1ac], eax
push ebx
push ebp
push esi
push edi
push 0x124
lea eax, [esp + 0x18]
push 0
push eax
mov dword [esp + 0x1c], 0
call fcn.00404860
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
cmp ebp, 0xffffffff
je 0x402021
lea ecx, [esp + 0x10]
push ecx
push ebp
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40201a
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401fb0
lea edx, [esp + 0x34]
push edx
push 0x412d48
lea edx, [esp + 0x140]
call fcn.00402a70
lea eax, [esp + 0x140]
push str.sremote.exe
push eax
call fcn.00402f43
add esp, 0x10
test eax, eax
jne 0x401ff1
mov ecx, dword [esp + 0x18]
push ecx
push eax
push 1
call edi
mov esi, eax
call ebx
test esi, esi
jne 0x402002
lea edx, [esp + 0x10]
push edx
push ebp
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x401fb0
jmp 0x40201a
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1e
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1bc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00402abc
add esp, 0x1b4
ret
Function at 0x402abc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x415024]
jne 0x402ac6
repz ret
jmp fcn.0040342e

Function at 0x40c9d3
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.00404142
and dword [ebp - 4], 0
cmp dword [0x416cf0], 0
mov ebx, eax
jne 0x40ca84
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40cb35
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40cb35
push eax
call fcn.004040d0
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x416cf0], eax
call esi
push eax
call fcn.004040d0
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x416cf4], eax
call esi
push eax
call fcn.004040d0
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x416cf8], eax
call esi
push eax
call fcn.004040d0
pop ecx
mov dword [0x416d00], eax
test eax, eax
je 0x40ca84
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004040d0
pop ecx
mov dword [0x416cfc], eax
mov eax, dword [0x416cfc]
cmp eax, ebx
je 0x40cadc
cmp dword [0x416d00], ebx
je 0x40cadc
push eax
call fcn.0040414b
push dword [0x416d00]
mov esi, eax
call fcn.0040414b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40cadc
test edi, edi
je 0x40cadc
call esi
test eax, eax
je 0x40cad3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40cad3
test byte [ebp - 0xc], 1
jne 0x40cadc
or dword [ebp + 0x10], 0x200000
jmp 0x40cb15
mov eax, dword [0x416cf4]
cmp eax, ebx
je 0x40cb15
push eax
call fcn.0040414b
pop ecx
test eax, eax
je 0x40cb15
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40cb15
mov eax, dword [0x416cf8]
cmp eax, ebx
je 0x40cb15
push eax
call fcn.0040414b
pop ecx
test eax, eax
je 0x40cb15
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x416cf0]
call fcn.0040414b
pop ecx
test eax, eax
je 0x40cb35
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40cb37
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40f854
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x40f885
call fcn.0040481f
mov dword [eax], esi
call fcn.0040480c
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004047a4
add esp, 0x14
push 0x16
pop eax
jmp 0x40f8da
test dword [ebp + 0xc], 0xfffffff9
jne 0x40f861
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40f8b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00404832
pop ecx
call fcn.0040480c
mov eax, dword [eax]
jmp 0x40f8da
test al, 0x10
jne 0x40f8d8
test al, 1
je 0x40f8d8
test byte [ebp + 0xc], 2
je 0x40f8d8
call fcn.0040481f
mov dword [eax], 5
call fcn.0040480c
mov dword [eax], 0xd
jmp 0x40f8a9
xor eax, eax
pop esi
pop ebp
ret
Function at 0x15a8d45
Capabilities:
Check http status code

Disassembly:
lea esp, [esp + 8]
jbe 0x15a9992
sal si, 5
stc
sub ecx, 1
clc
sar si, 6
rcr di, 7
mov dword [ebp - 4], ecx
sbb di, si
mov ecx, dword [ebp - 8]
add si, 0x93da
add ecx, dword [ebp - 4]
bt ecx, eax
shl si, 0xd
pushal
shr ecx, 1
sar esi, 0x13
bsf esi, edx
adc esi, 0xc194d917
mov edi, dword [ebx + ecx*4]
xor si, cx
add edi, eax
pushal
pushfd
mov esi, dword [ebp + 0xc]
mov byte [esp + 4], dh
jmp 0x15af0c1
ror al, 4
pushfd
push ecx
pushfd
mov byte [esp], al
not al
pushfd
call fcn.0264658a
lea esp, [esp + 0x44]
jg 0x263dac3
push eax
jmp 0x2638fcc
not al
push 0xa858ada1
pushfd
lodsb al, byte [esi]
pushfd
pushal
pushfd
push esp
inc al
call fcn.015abdd9
cdq
xchg edx, eax
stosd dword es:[edi], eax
mov bl, 0xc0
ror dh, 0xa8
and cl, byte [ebx + 0x71]
call 0xa28648dc
int 0x95
rcr dl, cl
inc edi
or al, 0x14
xor ecx, esi
sub dh, byte [edx]
aas
inc edi
pop esp
sbb al, 0x5d
sbb eax, 0x77775656
lea ebx, [ecx - 0x75]
fild dword [eax + 0x43ecbe7f]
pop ebp
inc eax
xchg ecx, eax
inc edi
push 0xb3af5628
pop edx
sti
fist dword [bx + di - 0x4b94]
cmp byte [bp + 0x67], al
cmp eax, 0x405d5d4c
shr bl, 1
invalid
jmp 0x263de39
pushfd
pushfd
mov dword [esp + 4], eax
mov byte [esp], bh
lodsb al, byte [esi]
push dword [esp]
inc al
mov word [esp], si
pushfd
jmp 0x15add27

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

Disassembly:
stc
pushfd
test eax, eax
jmp 0x15a8441
Function at 0x440037
Capabilities:
Packed with generic packer

Disassembly:
pushal
call 0x44003d
pop eax
sub eax, 0x3d
push eax
lea edi, [eax - 0x3f000]
push edi
add word [edi + 0x3e5ac], 1
lea esi, [eax + 0x1ec]
or ebp, 0xffffffff
xor ebx, ebx
jmp 0x440066
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x440071
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x440060
mov eax, 1
add ebx, ebx
jne 0x440083
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
ja 0x440078
jne 0x440094
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x440078
xor ecx, ecx
sub eax, 3
jb 0x440102
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x44011e
mov ebp, eax
add ebx, ebx
jne 0x4400b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4400c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4400e4
inc ecx
add ebx, ebx
jne 0x4400d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
ja 0x4400c5
jne 0x4400e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4400c5
add ecx, 2
cmp eax, 0xfffff300
adc ecx, 1
lea edx, [edi + eax]
cmp eax, 0xfffffffc
jle 0x440108
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4400f4
jmp 0x440066
mov eax, ebp
jmp 0x4400a8
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x440108
add edi, ecx
jmp 0x440066
pop esi
pop ebp
sub edi, dword [edi - 4]
push edi
lea edi, [esi]
mov ecx, 0x3cd
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x44012f
cmp byte [edi], 0x18
jne 0x44012f
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 0x440134
pop edi
mov eax, dword [edi]
or eax, eax
je 0x440199
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3e000]
add ebx, esi
push eax
add edi, 8
call dword [ebp]
xchg edx, eax
mov al, byte [edi]
inc edi
or al, al
je 0x44015c
push edx
mov ecx, edi
jns 0x440189
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push edx
call dword [ebp + 4]
pop edx
mov dword [ebx], eax
add ebx, 4
jmp 0x440176
lea ebx, [esi - 4]
add edi, 4
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4401ca
cmp al, 0xef
ja 0x4401bd
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x44019f
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4401ac
popal
jmp 0x43434b
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x42e072
nop
mov ebx, 0x407ef8
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x46bf3843
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x42e060
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x42e0d2
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x2eb96cb7
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x401000
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
push esi
push 0x40
push 0x3000
push 0xc1
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x401038
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
push 0x401280
call fcn.00401070
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
lea eax, [esi + 1]
pop esi
ret
push 0xc1
push str.PSQRVWU
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
push 0
push 0
push 0
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
pop esi
ret

Function at 0x401b6f
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 0x248]
mov edi, 0xfffff758
and eax, edi
or eax, dword [ebp + 8]
push eax
lea eax, [esi + 0x274]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x10013e4
mov eax, dword [esi + 0x248]
and eax, edi
or eax, dword [ebp + 8]
mov dword [esi + 0x248], eax
mov al, 1
jmp 0x10013f5
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x10013f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
xor al, al
pop edi
pop esi
pop ebp
ret 8

Function at 0x1002653
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1001278
call fcn.01002808
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x100268e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100268e
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x10026a6
cmp eax, 0x20b
je 0x1002693
mov dword [ebp - 0x1c], edi
jmp 0x10026ba
cmp dword [ecx + 0x84], 0xe
jbe 0x100268e
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x10026b4
cmp dword [ecx + 0x74], 0xe
jbe 0x100268e
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1004034], 0xffffffff
or dword [0x1004038], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1004030]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100402c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x100403c], eax
call fcn.01002800
cmp dword [0x100401c], edi
jne 0x1002715
push fcn.01002800
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.010027e9
push 0x1004010
push 0x100400c
call sub.msvcrt.dll__initterm
mov eax, dword [0x1004028]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1004024]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x34], eax
push 0x1004008
push section..data
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.0100239f
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x100278c
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x10027c1
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01002843
ret

Function at 0x7e86a6
Capabilities:
Encode data using xor

Disassembly:
sub cl, bl
and cl, byte [ebx]
fidivr word [edi - 2]
in eax, dx
push 0xffffffffffffff83
add bl, byte [ebp + 0x63a0c14a]
pop ebx
dec edx
pop ss
fidiv dword [ebx]
inc edx
Function at 0x406760
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406784
xor eax, eax
test eax, eax
je 0x406797
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406797
xor ecx, ecx
jmp 0x40679a
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x4068bd
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x427dac], 0
push esi
jne 0x4068f4
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4068ce
mov dword [ecx*4 + 0x427da8], eax
inc ecx
cmp ecx, 0x100
jl 0x4068c9
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406925
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427da8]
xor eax, esi
inc ecx
dec edx
jne 0x406907
pop edi
not eax
pop esi
ret 0xc

Function at 0x402770
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x40d02c], 0x8088405
inc edx
mov dword [0x40d02c], edx
mul edx
mov eax, edx
ret

Function at 0x40782c
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x40d558
mov eax, esi
mov edx, 8
test al, 1
je 0x407848
shr eax, 1
xor eax, 0xedb88320
jmp 0x40784a
shr eax, 1
dec edx
jne 0x40783b
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x407834
pop esi
ret

Function at 0x407877
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x40d554], 0
jne 0x407883
call fcn.0040782c
push 1
push 0x40d554
call fcn.00404398
mov eax, edi
test esi, esi
je 0x4078ae
mov edx, ebx
and dx, 0xff
xor ecx, ecx
mov cl, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x40d558]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x407889
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x1597430
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x208000]
push edi
or ebp, 0xffffffff
jmp 0x1597452
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1597459
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1597448
mov eax, 1
add ebx, ebx
jne 0x159746b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x159747c
jne 0x159749b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x159749b
dec eax
add ebx, ebx
jne 0x1597488
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1597460
add ebx, ebx
jne 0x1597497
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x15974ed
xor ecx, ecx
sub eax, 3
jb 0x15974b3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1597522
sar eax, 1
mov ebp, eax
jmp 0x15974be
add ebx, ebx
jne 0x15974be
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x159748c
inc ecx
add ebx, ebx
jne 0x15974cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x159748c
add ebx, ebx
jne 0x15974d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x15974ce
jne 0x15974ea
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x15974ce
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x159750c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x15974fe
jmp 0x159744e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x159750c
add edi, ecx
jmp 0x159744e
pop esi
mov edi, esi
mov ecx, 0x8486
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x159752a
cmp byte [edi], 0x2c
jne 0x159752a
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 0x159752f
lea edi, [esi + 0x10da000]
mov eax, dword [edi]
or eax, eax
je 0x15975a7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x11982d8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1198404]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x159755c
mov ecx, edi
jns 0x159758b
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 + 0x1198408]
or eax, eax
je 0x15975a1
mov dword [ebx], eax
add ebx, 4
jmp 0x1597579
call dword [esi + 0x1198418]
mov ebp, dword [esi + 0x119840c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x25f]
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 0x15975db
sub esp, 0xffffff80
jmp 0x4e9cf3
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x479004]
jne 0x401010
repz ret
jmp fcn.0040176d

Function at 0x40655b
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.004032f4
and dword [ebp - 4], 0
cmp dword [0x47b0dc], 0
mov ebx, eax
jne 0x40660c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4066bd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4066bd
push eax
call fcn.00403282
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x47b0dc], eax
call esi
push eax
call fcn.00403282
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x47b0e0], eax
call esi
push eax
call fcn.00403282
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x47b0e4], eax
call esi
push eax
call fcn.00403282
pop ecx
mov dword [0x47b0ec], eax
test eax, eax
je 0x40660c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403282
pop ecx
mov dword [0x47b0e8], eax
mov eax, dword [0x47b0e8]
cmp eax, ebx
je 0x406664
cmp dword [0x47b0ec], ebx
je 0x406664
push eax
call fcn.004032fd
push dword [0x47b0ec]
mov esi, eax
call fcn.004032fd
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x406664
test edi, edi
je 0x406664
call esi
test eax, eax
je 0x40665b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40665b
test byte [ebp - 0xc], 1
jne 0x406664
or dword [ebp + 0x10], 0x200000
jmp 0x40669d
mov eax, dword [0x47b0e0]
cmp eax, ebx
je 0x40669d
push eax
call fcn.004032fd
pop ecx
test eax, eax
je 0x40669d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40669d
mov eax, dword [0x47b0e4]
cmp eax, ebx
je 0x40669d
push eax
call fcn.004032fd
pop ecx
test eax, eax
je 0x40669d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x47b0dc]
call fcn.004032fd
pop ecx
test eax, eax
je 0x4066bd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4066bf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4737b6
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x40
push dword [0x489044]
push dword [0x488d60]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
leave
ret

Function at 0x473845
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
jle 0x47386f
push esi
and dword [ebp - 4], 0
lea esi, [ebp - 4]
call fcn.0047383a
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 4]
add eax, edi
xor byte [eax], cl
inc edi
cmp edi, dword [ebp + 0xc]
jl 0x473852
pop esi
cmp dword [ebp + 0xc], 0x2d
pop edi
jne 0x473887
or dword [0x489054], 0xffffffff
mov dword [0x489050], 0xa62e7790
leave
ret
Function at 0x403bfc
Capabilities:
Encrypt data using tea

Disassembly:
sub esp, 0x28
and dword [esp + 8], 0
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov esi, edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x34], edi
mov eax, dword [edi]
mov ebp, dword [edi + 4]
mov dword [esp + 0x1c], eax
mov eax, dword [esi]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x30], eax
call fcn.00403287
mov ebx, dword [esp + 0x18]
mov eax, dword [esi + 0xc]
add ebx, 0x23f
mov edi, dword [esi + 8]
push 0x20
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x2c], eax
pop esi
mov dword [esp + 0x20], 2
add dword [esp + 0x20], 3
mov edx, dword [esp + 0x1c]
mov eax, edx
shl eax, 4
add eax, edi
mov dword [esp + 0x24], 0xedeb2e40
cmp dword [0x66fd24], 0xfa9
mov dword [esp + 0x10], eax
lea ecx, [ebx + edx]
mov eax, dword [0x66fd68]
cmove eax, dword [esp + 0x24]
and dword [esp + 0x24], 0
cmp dword [0x66fd24], 0x3eb
mov dword [0x66fd68], eax
mov eax, dword [0x66fd70]
cmove eax, dword [esp + 0x24]
mov dword [0x66fd70], eax
mov eax, dword [esp + 0x1c]
shr eax, 5
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x28]
xor eax, ecx
mov dword [0x66fd6c], 0xf4ea3dee
xor eax, dword [esp + 0x10]
sub ebp, eax
mov dword [esp + 0x14], eax
mov eax, ebp
shl eax, 4
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
add dword [esp + 0x10], eax
mov eax, ebp
shr eax, 5
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x30]
add dword [esp + 0x14], eax
lea eax, [ebx + ebp]
xor eax, dword [esp + 0x14]
xor dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
sub dword [esp + 0x1c], eax
mov edx, 0x9e3779b9
lea ecx, [esp + 0x18]
call fcn.00403bf0
dec esi
je 0x403d20
mov ebx, dword [esp + 0x18]
jmp 0x403c4a
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x1c]
mov dword [edi + 4], ebp
mov dword [edi], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret