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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x43055c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [ebp - 0x230]
push eax
push esi
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40bff5
mov edi, edi
lea ecx, [ebp - 0x20c]
push ecx
push edi
call fcn.00416475
add esp, 8
test eax, eax
je 0x40c007
lea edx, [ebp - 0x230]
push edx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40bfd0
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004138ed
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x228]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40bff5
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.004138ed
mov esp, ebp
pop ebp
ret

Function at 0x40c230
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x43055c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x43422c]
push edi
mov edi, dword [eax]
mov dword [ebp - 0x210], edi
cmp edi, eax
je 0x40c31a
push ebx
push esi
jmp 0x40c266
mov edi, dword [ebp - 0x210]
mov eax, dword [edi + 8]
push 0x5c
push eax
call fcn.00416344
mov esi, eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.004146f0
mov edx, dword [edi + 8]
mov eax, edx
add esp, 0x14
lea edi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c2a0
sub eax, edi
sar eax, 1
mov ecx, eax
mov eax, esi
lea ebx, [eax + 2]
mov di, word [eax]
add eax, 2
test di, di
jne 0x40c2b6
sub eax, ebx
sar eax, 1
sub ecx, eax
push ecx
push edx
lea edx, [ebp - 0x20c]
push 0x104
push edx
call fcn.004145ae
add esp, 0x10
push 1
lea eax, [ebp - 0x20c]
push eax
push 0
add esi, 2
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jl 0x40c318
mov ecx, dword [ebp - 0x210]
mov eax, dword [ecx]
mov dword [ebp - 0x210], eax
cmp eax, dword [0x43422c]
jne 0x40c260
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004138ed
mov esp, ebp
pop ebp
ret
Function at 0x40cc50
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4304e4]
mov edx, dword [eax + 0xc]
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 0x4304e4
call edx
mov ecx, dword [ebx + 0x18]
lea edi, [eax + 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x18c]
push str.cpuusage
mov dword [ebp - 4], edi
call edx
mov esi, eax
test esi, esi
jne 0x40cc93
push str.cpuUsageUI
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x40ccbd
lea ecx, [ebx + 0x98]
call fcn.004038e0
push eax
lea ecx, [ebp - 4]
push str.CPU
push ecx
call fcn.00403560
mov edx, dword [esi]
mov edi, dword [ebp - 4]
mov eax, dword [edx + 0x30]
add esp, 0xc
push edi
mov ecx, esi
call eax
lea eax, [edi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ccd9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40cce0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4304e4]
mov edx, dword [eax + 0xc]
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 0x4304e4
call edx
mov ecx, dword [ebx + 0x18]
lea edi, [eax + 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x18c]
push str.memusage
mov dword [ebp - 4], edi
call edx
mov esi, eax
test esi, esi
jne 0x40cd23
push str.memUsageUI
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x40cd4d
lea ecx, [ebx + 0x98]
call fcn.004038a0
push eax
lea ecx, [ebp - 4]
push 0x4294a4
push ecx
call fcn.00403560
mov edx, dword [esi]
mov edi, dword [ebp - 4]
mov eax, dword [edx + 0x30]
add esp, 0xc
push edi
mov ecx, esi
call eax
lea eax, [edi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cd69
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40f850
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
push 0x434250
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40f8c1
push 0x434248
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov edx, dword [0x434250]
mov eax, dword [0x434248]
mov ecx, dword [0x43424c]
push 0
push 0
push 0x10
push 0x434238
push 0
push edx
mov dword [0x434238], 1
mov dword [0x43423c], eax
mov dword [0x434240], ecx
mov dword [0x434244], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov eax, dword [ebp + 8]
test eax, eax
jne 0x40f8d5
push eax
push 1
call dword [sym.imp.USER32.dll_ExitWindowsEx]
pop ebp
ret 4
cmp eax, 2
jne 0x40f8e3
push 0
push eax
call dword [sym.imp.USER32.dll_ExitWindowsEx]
pop ebp
ret 4

Function at 0x40f920
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
push str.bt_close
call edx
push eax
call fcn.00416475
add esp, 8
test eax, eax
jne 0x40f952
mov eax, dword [esi]
mov edx, dword [eax + 0xa4]
mov ecx, esi
call edx
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
push str.bt_ok_q
call edx
push eax
call fcn.00416475
add esp, 8
test eax, eax
jne 0x40f97a
mov eax, dword [esi]
mov edx, dword [eax + 0xa4]
mov ecx, esi
call edx
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
push str.bt_ok
call edx
push eax
call fcn.00416475
add esp, 8
test eax, eax
jne 0x40fa31
cmp dword [esi + 0x60], eax
jne 0x40f9a7
push eax
mov ecx, esi
call fcn.0040f850
cmp dword [esi + 0x60], 2
jne 0x40fa25
push 0x434250
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40fa1b
push 0x434248
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov edx, dword [0x434250]
mov eax, dword [0x434248]
mov ecx, dword [0x43424c]
push 0
push 0
push 0x10
push 0x434238
push 0
push edx
mov dword [0x434238], 1
mov dword [0x43423c], eax
mov dword [0x434240], ecx
mov dword [0x434244], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov eax, dword [esi]
mov edx, dword [eax + 0xa4]
mov ecx, esi
call edx
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
push str.bt_cancle
call edx
push eax
call fcn.00416475
add esp, 8
test eax, eax
jne 0x40fa59
mov eax, dword [esi]
mov edx, dword [eax + 0xa4]
mov ecx, esi
call edx
push edi
mov ecx, esi
call fcn.00402bd0
pop edi
pop esi
pop ebp
ret 4
Function at 0x4101d0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
mov eax, dword [0x43055c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push pe_nt_image_headers32
push 0x2b4
lea eax, [ebp - 0x2b8]
push eax
mov esi, ecx
mov ecx, dword [esi + 0x44]
push 0
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x2b8]
mov ecx, dword [esi + 0x18]
mov edx, dword [ecx]
mov edx, dword [edx + 0x1bc]
push 1
push eax
lea eax, [ebp - 0x2bc]
push eax
call edx
mov ecx, dword [esi + 0x48]
mov eax, dword [ecx]
mov edx, dword [ebp - 0x2bc]
mov eax, dword [eax + 0x50]
push edx
call eax
mov eax, dword [ebp - 0x2bc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
pop esi
test edx, edx
jg 0x410254
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004138ed
mov esp, ebp
pop ebp
ret
Function at 0x4117e0
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x43055c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0x802]
push ecx
mov word [ebp - 0x804], ax
call fcn.004146f0
add esp, 0xc
lea edx, [ebp - 0x808]
push edx
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
mov dword [ebp - 0x80c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x41184a
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004138ed
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x808]
lea eax, [ebp - 0x80c]
push eax
lea ecx, [ebp - 0x804]
push ecx
push 0
push 0
push str.Daerwen
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4118af
mov edx, 0x426f48
lea ecx, [ebp - 0x804]
lea ecx, [ecx]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x4118a6
test ax, ax
je 0x4118a2
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x4118a6
add ecx, 4
add edx, 4
test ax, ax
jne 0x411880
xor eax, eax
jmp 0x4118ab
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41183a
mov eax, dword [ebp - 0x808]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
call fcn.004138ed
mov esp, ebp
pop ebp
ret

Function at 0x411930
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x43055c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.004146f0
add esp, 0xc
push 0x208
lea edx, [ebp - 0x20c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x411986
mov ecx, dword [str.__auto]
mov edx, dword [0x42a644]
mov dword [eax], ecx
mov ecx, dword [0x42a648]
mov dword [eax + 4], edx
mov dx, word [0x42a64c]
mov dword [eax + 8], ecx
mov word [eax + 0xc], dx
lea eax, [ebp - 0x210]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x411a20
cmp byte [ebp + 8], al
je 0x411a01
mov edx, dword [ebp - 0x210]
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push 1
push eax
push str.Daerwen
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x411a13
mov eax, dword [ebp - 0x210]
push str.Daerwen
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [ebp - 0x210]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004138ed
mov esp, ebp
pop ebp
ret
Function at 0x411c00
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
cmp eax, 0x8064
jne 0x411c70
mov eax, dword [ebp + 0x10]
cmp eax, 0x205
jne 0x411c26
call fcn.00411a30
xor eax, eax
pop esi
pop ebp
ret 0xc
cmp eax, 0x204
jne 0x411c49
push 0x434338
call dword [sym.imp.USER32.dll_GetCursorPos]
mov dword [0x430494], 1
xor eax, eax
pop esi
pop ebp
ret 0xc
cmp eax, 0x201
je 0x411c57
cmp eax, 0x203
jne 0x411cb7
mov eax, dword [esi + 0x3f8]
mov ecx, dword [eax + 8]
push 5
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
pop ebp
ret 0xc
cmp eax, 0x1c
je 0x411ca5
cmp eax, 6
je 0x411ca5
cmp eax, 0x401
jne 0x411cb7
mov ecx, dword [esi + 0x3f8]
cmp dword [ecx + 8], 0
je 0x411c92
call fcn.0040c050
mov edx, dword [esi]
mov eax, dword [edx + 0xa4]
mov ecx, esi
call eax
xor eax, eax
pop esi
pop ebp
ret 0xc
cmp dword [ebp + 0xc], 0
jne 0x411cb7
mov ecx, dword [esi + 8]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
pop ebp
ret 0xc

Function at 0x411cc0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 8]
push edi
push 0x42a668
lea ecx, [esi + 0x58]
push 0x80
lea ebx, [esi + 0x40]
push ecx
mov dword [ebx], 0x3b8
mov dword [esi + 0x44], eax
mov dword [esi + 0x4c], 7
mov dword [esi + 0x50], 0x8064
call fcn.0041451f
mov edx, dword [ebp + 8]
add esp, 0xc
push 0x80
push edx
mov dword [esi + 0x48], 0x80
call dword [sym.imp.USER32.dll_LoadIconW]
push ebx
mov edi, eax
push 0
mov dword [esi + 0x54], edi
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
test edi, edi
je 0x411d2a
push edi
call dword [sym.imp.USER32.dll_DestroyIcon]
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x411e90
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
push eax
lea ecx, [ebp + 8]
call fcn.00402850
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
push str.bt_quit
call edx
push eax
call fcn.00416475
add esp, 8
test eax, eax
jne 0x411eed
mov ecx, dword [esi + 0x3f8]
cmp dword [ecx + 8], eax
je 0x411edc
call fcn.0040c050
mov eax, dword [esi]
mov edx, dword [eax + 0xa4]
mov ecx, esi
call edx
jmp 0x412061
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
push str.bt_open_main
call edx
push eax
call fcn.00416475
add esp, 8
test eax, eax
jne 0x411f20
mov eax, dword [esi + 0x3f8]
mov ecx, dword [eax + 8]
push 5
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x412061
mov ecx, dword [edi + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push str.bt_about
call eax
push eax
call fcn.00416475
add esp, 8
test eax, eax
jne 0x411faa
push str.DABOUT
push str.DABOUT
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x411f7b
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov ecx, dword [esi + 8]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x412088
push 0x40
call fcn.004140bb
add esp, 4
test eax, eax
je 0x411f9c
mov ecx, eax
call fcn.00411690
mov ecx, eax
call fcn.004116b0
jmp 0x412061
xor eax, eax
mov ecx, eax
call fcn.004116b0
jmp 0x412061
mov ecx, dword [edi + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push str.bt_open_web
call eax
push eax
call fcn.00416475
add esp, 8
test eax, eax
jne 0x412019
push 0x3c
push eax
lea ecx, [ebp - 0x3c]
push ecx
call fcn.004146f0
add esp, 0xc
lea edx, [ebp - 0x3c]
push edx
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x440
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], str.open
mov dword [ebp - 0x2c], str.http:__www.da2wen.com
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
jmp 0x412061
lea eax, [ebp + 8]
push 0x42a624
push eax
call fcn.00402d60
add esp, 8
test al, al
je 0x412061
mov ecx, dword [esi + 0x18]
mov edx, dword [ecx]
mov eax, dword [edx + 0x18c]
push 0x42a624
call eax
test eax, eax
je 0x412061
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x214]
call eax
test al, al
sete cl
movzx edx, cl
push edx
call fcn.00411930
add esp, 4
mov eax, dword [esi + 8]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
mov ecx, esi
call fcn.00402bd0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412094
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4138ed
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43055c]
jne 0x4138f7
repz ret
jmp fcn.00419e2b

Function at 0x420178
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43055c]
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.004198cc
and dword [ebp - 0x14], 0
cmp dword [0x435478], 0
mov dword [ebp - 0x18], eax
jne 0x42022b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4202d3
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42c67c
push ebx
call edi
test eax, eax
je 0x4202d3
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x435478], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x43547c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x435480], eax
call edi
push eax
call esi
mov dword [0x435488], eax
test eax, eax
je 0x42022b
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x435484], eax
mov eax, dword [0x435484]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x420284
cmp dword [0x435488], ecx
je 0x420284
push eax
call esi
push dword [0x435488]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x420284
test ebx, ebx
je 0x420284
call edi
test eax, eax
je 0x42027b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x42027b
test byte [ebp - 8], 1
jne 0x420284
or dword [ebp + 0x10], 0x200000
jmp 0x4202b7
mov eax, dword [0x43547c]
cmp eax, dword [ebp - 0x18]
je 0x4202b7
push eax
call esi
test eax, eax
je 0x4202b7
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4202b7
mov eax, dword [0x435480]
cmp eax, dword [ebp - 0x18]
je 0x4202b7
push eax
call esi
test eax, eax
je 0x4202b7
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x435478]
call esi
test eax, eax
je 0x4202d3
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4202d5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004138ed
leave
ret
Function at 0x402ed5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x402ee4
pop dword [ebp - 0x48]
mov eax, 0xd155b9ad
sub eax, 0xd1158ac9
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0xb2a6b14c
add dword [ebp - 0x58], 0x9bab93ff
mov dword [ebp - 0x54], 0x7f18c895
sub dword [ebp - 0x54], 0x4ce57c50
mov dword [ebp - 0x50], 0xe9027c8f
sub dword [ebp - 0x50], 0x9cb63861
mov dword [ebp - 0x4c], 0xd2ad202d
add dword [ebp - 0x4c], 0x2d52dfd3
lea eax, [ebp - 0x58]
push eax
mov eax, 0x3d77b3f9
add eax, 0xc2c8cd0b
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0xc6e8ba8d
sub dword [ebp - 0x58], 0x52765137
mov dword [ebp - 0x54], 0x97d299c7
sub dword [ebp - 0x54], 0x56663852
mov dword [ebp - 0x50], 0xc642e5ef
sub dword [ebp - 0x50], 0x62d37983
mov dword [ebp - 0x4c], 0xe3c06234
sub dword [ebp - 0x4c], 0xe3c06234
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, 0xe2c045d
sub eax, 0xdeb835d
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x352d7
push 0
call eax
mov ecx, 0x9f9f2d94
sub ecx, 0x9f9eed03
mov edi, eax
mov esi, 0x46e400
add esi, dword [ebp - 0x48]
mov ebx, 0xcd60192c
add ebx, 0x35cc4e64
xor dword [ebp - 0x24], ecx
mov edx, dword [esi]
xor dword [ebp - 0x3c], eax
add edx, ebx
mov dword [edi], edx
add edi, 0x18660829
add edi, 0xe799f7db
add esi, 4
loop 0x403000
add eax, 0xf517
mov ebx, eax
add eax, 5
mov ecx, 0x30b4e889
sub ecx, 0x3074e889
add ecx, dword [ebp - 0x48]
call ebx
leave
ret

Function at 0x40317b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp eax, esi
jl 0x4031a6
mov ecx, dword [0x42a298]
push esi
add eax, ecx
push esi
push eax
mov dword [0x418ed4], eax
push dword [0x40a01c]
call dword [sym.imp.kernel32.dll_SetFilePointer]
push 4
call fcn.00403283
cmp eax, esi
jl 0x40327d
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40a01c]
call fcn.00402ed5
test eax, eax
je 0x40326d
push dword [ebp + 8]
add dword [0x418ed4], 4
call fcn.00403283
mov ebx, eax
cmp ebx, esi
jl 0x40327b
cmp dword [ebp + 0x10], esi
jne 0x403249
cmp dword [ebp + 8], esi
jle 0x40327b
mov esi, 0x414ed0
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x40320b
mov eax, 0x4000
push eax
push esi
push dword [0x40a01c]
mov dword [ebp - 4], eax
call fcn.00402ed5
test eax, eax
je 0x40326d
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.00402ed5
test eax, eax
je 0x403245
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x418ed4], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x4031fa
jmp 0x40327b
push 0xfffffffffffffffe
jmp 0x40326f
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403254
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a01c]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x403272
push 0xfffffffffffffffd
pop eax
jmp 0x40327d
mov ebx, dword [ebp - 4]
add dword [0x418ed4], ebx
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10
Function at 0x4018a3
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4075d5
push ebx
push esi
call fcn.00407501
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00407495
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x407582
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4075d4
push edi
push eax
call fcn.00405e9b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4075a2
call fcn.00405ff6
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4075d3
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00407495
add esp, 0x20
test eax, eax
jne 0x4075c1
push edi
call fcn.00405ff6
jmp 0x4075c9
push ebx
call fcn.00405ff6
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4087e4
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x410fd0
push 0x410fc8
push str.FlsAlloc
push 0x1f
call fcn.004086a3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408818
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f10c]
call esi
jmp 0x40881e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x408862
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x410fe0
push 0x410fd8
push str.FlsGetValue
push 0x21
call fcn.004086a3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408899
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f10c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4088a1
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x410fe8
push 0x410fe0
push str.FlsSetValue
push 0x22
call fcn.004086a3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4088db
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x40f10c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40dcb0
Capabilities:
Parse pe header

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