joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402c60
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
movlpd qword [ebp - 0x1c], xmm0
movlpd qword [ebp - 0x14], xmm0
mov ecx, dword [eax]
mov eax, dword [ebp + 0xc]
movlpd qword [ebp - 0xc], xmm0
mov dword [ebp - 4], 0
mov dword [ebp - 0x3c], 0x3c
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x30], str.open
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x24], ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp dword [ebp + 0x14], 0
je 0x402ce8
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp + 8]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
xor eax, eax
cmp dword [ebp + 8], eax
sete al
mov esp, ebp
pop ebp
ret
mov eax, 1
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402d1e
test al, 0x10
jne 0x402d1e
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4032d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42dfc2
mov eax, dword fs:[0]
push eax
sub esp, 0x414
mov eax, dword [0x43f50c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x420], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x41c], 0
call fcn.00404b2d
mov ecx, eax
test ecx, ecx
je 0x403465
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x414]
mov dword [ebp - 4], 0
push eax
mov eax, dword [ebp + 0x10]
or eax, 0x20019
mov dword [ebp - 0x41c], 1
push eax
push 0
push dword [edi]
mov dword [ebp - 0x414], 0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403448
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x410]
mov dword [ebp - 0x418], 0x400
push eax
push 0
push 0
push str.DisplayName
push dword [ebp - 0x414]
call edi
test eax, eax
jne 0x4033cf
lea ecx, [ebp - 0x410]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4033b1
sub ecx, edx
lea eax, [ebp - 0x410]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00402930
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x410]
push eax
push 0
push 0
push str.DisplayVersion
push dword [ebp - 0x414]
call edi
test eax, eax
jne 0x40343c
push 0xb
push str.__Version:
mov ecx, esi
call fcn.00402930
lea ecx, [ebp - 0x410]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403410
sub ecx, edx
lea eax, [ebp - 0x410]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00402930
push 2
push 0x42f8f8
mov ecx, esi
call fcn.00402930
push dword [ebp - 0x414]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00418b5f
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00401310
int3
Function at 0x403470
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x43f50c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
mov dword [esi], 0
mov dword [esi + 4], 0
cmp edi, 0xffffffff
je 0x40353c
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x4034dd
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418b5f
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebx]
lea eax, [ebp - 0x20c]
nop dword [eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x403516
test dx, dx
je 0x403512
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x403516
add ecx, 4
add eax, 4
test dx, dx
jne 0x4034f0
xor eax, eax
jmp 0x40351b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40352a
mov eax, dword [ebp - 0x228]
add dword [esi], eax
inc dword [esi + 4]
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4034e1
pop ebx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00418b5f
mov esp, ebp
pop ebp
ret

Function at 0x403550
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x43f50c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x403597
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x4035a9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418b5f
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 8]
nop dword [eax]
mov ecx, dword [edi]
lea eax, [ebp - 0x20c]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4035de
test dx, dx
je 0x4035da
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4035de
add ecx, 4
add eax, 4
test dx, dx
jne 0x4035b8
xor eax, eax
jmp 0x4035e3
sbb eax, eax
or eax, 1
test eax, eax
je 0x403608
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4035b0
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418b5f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00418b5f
mov esp, ebp
pop ebp
ret
Function at 0x403670
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e019
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x43f50c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
call fcn.00404b2d
mov ecx, eax
test ecx, ecx
je 0x403830
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
push 0x42f874
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.004029e0
test al, al
jne 0x4036e7
push 0
push 0x42f874
mov ecx, esi
call fcn.00402050
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x14]
push ecx
push 0x20019
push 0
push dword [eax]
mov dword [ebp - 4], 0
push dword [ebp + 0xc]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40381c
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push dword [edi]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x403813
mov eax, dword [ebp - 0x10]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00403fd1
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x18], ebx
push eax
push ebx
push 0
push 0
push dword [edi]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40380a
mov eax, dword [ebp - 0x10]
xor ecx, ecx
push ebx
mov word [ebx + eax*2], cx
lea ecx, [ebp - 0x24]
call fcn.00402760
mov ecx, dword [eax]
or ebx, 0xffffffff
mov edi, dword [esi]
sub edi, 0x10
mov dword [ebp - 4], 2
lea edx, [ecx - 0x10]
cmp edx, edi
je 0x4037eb
cmp dword [edi + 0xc], 0
jl 0x4037e0
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x4037e0
push edx
call fcn.00402b70
add esp, 4
mov dword [ebp - 0x20], eax
mov ecx, ebx
lea edx, [edi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4037d9
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x20]
add eax, 0x10
mov dword [esi], eax
jmp 0x4037eb
push dword [ecx - 0xc]
push ecx
mov ecx, esi
call fcn.00402050
mov edx, dword [ebp - 0x24]
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x403807
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x18]
push ebx
call fcn.00403fcc
add esp, 4
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00401310
int3
Function at 0x403840
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e050
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x43f50c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00404b2d
mov ecx, eax
test ecx, ecx
je 0x40397f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push 0x42f874
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.004029e0
test al, al
jne 0x4038a9
push 0
push 0x42f874
lea ecx, [ebp - 0x14]
call fcn.00402050
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 1
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push dword [eax]
mov dword [ebp - 0x10], 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x403947
mov esi, dword [ebp + 0x14]
mov esi, dword [esi]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4038e6
sub esi, ecx
sar esi, 1
add esi, esi
lea edi, [esi + 1]
push edi
call fcn.00403fd1
push edi
mov ebx, eax
push 0
push ebx
call fcn.0041aab0
mov eax, dword [ebp + 0x14]
push esi
push dword [eax]
push ebx
call fcn.00419fb0
mov eax, dword [ebp + 0x10]
add esp, 0x1c
push edi
push ebx
push 1
push 0
push dword [eax]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.00403fcc
add esp, 4
mov edi, 1
jmp 0x403949
xor edi, edi
mov esi, dword [ebp - 0x14]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40396b
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00401310
int3

Function at 0x403990
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x43f50c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0
push 0xf
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x403a42
push esi
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x20c]
mov eax, dword [eax]
nop dword [eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x403a06
test dx, dx
je 0x403a02
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x403a06
add ecx, 4
add eax, 4
test dx, dx
jne 0x4039e0
xor eax, eax
jmp 0x403a0b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x403a30
push dword [ebp - 0x228]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x403a30
push 9
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call ebx
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4039d2
pop esi
push edi
call ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00418b5f
mov esp, ebp
pop ebp
ret
Function at 0x407709
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x40775c
push esi
push dword [ebp + 8]
call fcn.004078f2
mov edi, eax
test edi, edi
je 0x407757
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x407757
mov eax, dword [ebp - 8]
jmp 0x40776e
mov eax, dword [ebp + 0x10]
jmp 0x40776e
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop edi
pop esi
leave
ret 0xc

Function at 0x41fe23
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x41fe4c
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x41fe47
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x41fe31
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add byte [ebx + 0x34572bd6], cl
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x41fe39
cmp edx, ebx
jne 0x41ff87
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x41fe08
add eax, dword [eax + 4]
jmp 0x41fdf5
mov dword [ebp + 0xc], ebx
jmp 0x41fe57
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42149a
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc dword [eax]
mov byte [ebp - 0x7aa], 0xed
and byte [ebp - 0x7a9], 0
mov byte [ebp - 0x7a8], 0x4e
mov byte [ebp - 0x7a7], 0x55
test dword [ecx - 8], ebx
invalid
call dword [ebp - 0x3a]
test dword [edx - 8], ebx
invalid
call dword [esi - 0x3a]
invalid
Function at 0x401000
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [0x408010]
mov dword [eax], 1
mov eax, dword [0x408014]
mov dword [eax], 1
mov eax, dword [0x408018]
mov dword [eax], 1
mov ecx, dword [0x408004]
movzx edx, word [ecx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x40107b
mov edx, dword [ecx + 0x3c]
cmp dword [ecx + edx], 0x4550
jne 0x40107b
add ecx, edx
movzx edx, word [ecx + 0x18]
cmp edx, 0x20b
je 0x401064
cmp edx, 0x10b
jne 0x40107b
cmp dword [ecx + 0x74], 0xf
jb 0x40107b
add ecx, 0xe8
jmp 0x401073
cmp dword [ecx + 0x84], 0xf
jb 0x40107b
add ecx, 0xf8
xor eax, eax
cmp dword [ecx], 0
setne al
push esi
mov ecx, dword [0x40800c]
cmp dword [ecx], 1
mov dword [0x40a050], eax
mov eax, 2
sbb eax, 0
push eax
call sym.___set_app_type
add esp, 4
mov eax, dword [0x408040]
mov esi, dword [eax]
call sym.___p__fmode
mov dword [eax], esi
mov eax, dword [0x408038]
mov esi, dword [eax]
call sym.___p__commode
mov dword [eax], esi
call dbg._setargv
mov eax, dword [section..rdata]
cmp dword [eax], 1
jne 0x4010d3
push dbg._matherr
call dbg.__mingw_setusermatherr
add esp, 4
xor eax, eax
pop esi
ret

Function at 0x401980
Capabilities:
Write file on windows

Disassembly:
push esi
push eax
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
mov dword [esp], eax
push 2
call dbg.__acrt_iob_func
add esp, 4
push eax
push 1
push 0x1b
push str.Mingw_w64_runtime_failure:_n
call sym._fwrite
add esp, 0x10
push 2
call dbg.__acrt_iob_func
add esp, 4
push dword [esp]
push esi
push eax
call sym._vfprintf
add esp, 0xc
call sym._abort
int3
Function at 0x401c80
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [esp + 0x18]
cmp eax, 3
ja case.default.0x401c91
jmp dword [eax*4 + 0x40832c]
cmp dword [0x40a0b4], 0
je 0x401da0
push 0x40a0b8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x40a0d0]
test edi, edi
je 0x401d95
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401cdb
mov edi, dword [edi + 8]
test edi, edi
je 0x401d95
push dword [edi]
call ebx
mov esi, eax
call ebp
test eax, eax
jne 0x401cd0
test esi, esi
je 0x401cd0
mov ecx, dword [edi + 4]
call dword [0x4087bc]
push esi
call ecx
add esp, 4
jmp 0x401cd0
call dbg._fpreset
jmp case.default.0x401c91
cmp dword [0x40a0b4], 0
je case.default.0x401c91
push 0x40a0b8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x40a0d0]
test edi, edi
je 0x401d88
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401d47
mov edi, dword [edi + 8]
test edi, edi
je 0x401d88
push dword [edi]
call ebx
mov esi, eax
call ebp
test eax, eax
jne 0x401d40
test esi, esi
je 0x401d40
mov ecx, dword [edi + 4]
call dword [0x4087bc]
push esi
call ecx
add esp, 4
jmp 0x401d40
cmp dword [0x40a0b4], 0
jne 0x401d7c
push 0x40a0b8
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x40a0b4], 1
jmp case.default.0x401c91
push 0x40a0b8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp case.default.0x401c91
push 0x40a0b8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x40a0b4]
cmp eax, 1
jne case.default.0x401c91
mov eax, dword [0x40a0d0]
test eax, eax
je 0x401dd2
nop word cs:[eax + eax]
mov esi, dword [eax + 8]
push eax
call sym._free
add esp, 4
mov eax, esi
test esi, esi
jne 0x401dc0
mov dword [0x40a0d0], 0
mov dword [0x40a0b4], 0
push 0x40a0b8
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, 1
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x401f00
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push edi
push esi
mov esi, dword [0x408004]
movzx ecx, word [esi]
xor eax, eax
cmp ecx, 0x5a4d
jne 0x401f66
mov ecx, dword [esi + 0x3c]
cmp dword [esi + ecx], 0x4550
jne 0x401f66
add esi, ecx
movzx ecx, word [esi + 0x18]
cmp ecx, 0x10b
jne 0x401f66
movzx ecx, word [esi + 6]
test ecx, ecx
je 0x401f66
mov edx, dword [esp + 0xc]
sub edx, dword [0x408004]
movzx edi, word [esi + 0x14]
add esi, edi
add esi, 0x18
jmp 0x401f56
add esi, 0x28
dec ecx
je 0x401f66
mov edi, dword [esi + 0xc]
cmp edi, edx
ja 0x401f50
add edi, dword [esi + 8]
cmp edi, edx
jbe 0x401f50
mov eax, esi
pop esi
pop edi
ret
Function at 0x40283d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x4eb940
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x402896
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x402896
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 8]
jne 0x402896
xor eax, eax
inc eax
jmp 0x402898
xor eax, eax
leave
ret 0x10

Function at 0x405bae
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
imul eax, edi
add eax, edx
cmp edx, eax
mov dword [ebp - 0x14], eax
jae 0x405cd1
mov eax, dword [ebp + 0x10]
lea eax, [edx + eax*4]
push ebx
push esi
mov dword [ebp + 0x14], eax
mov esi, 0xffc03fc0
mov eax, 0xff00ff
cmp edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
jae 0x405cb5
mov ebx, dword [ebp + 0x14]
sub ebx, edx
dec ebx
shr ebx, 3
lea ecx, [edx + 4]
inc ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ebx
mov edx, dword [ecx + edi]
mov edi, dword [edi + ecx - 4]
mov dword [ebp - 8], edi
shr edi, 2
and edi, esi
mov dword [ebp + 0x10], edx
mov edx, dword [ecx]
mov ecx, dword [ecx - 4]
mov ebx, ecx
shr ebx, 2
and ebx, esi
add ebx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ebx, edi
mov edi, edx
shr edi, 2
and edi, esi
lea ebx, [ebx + edi - 0x7fff80]
mov edi, dword [ebp - 8]
and edi, eax
mov esi, ecx
and esi, eax
add esi, edi
mov edi, dword [ebp + 0x10]
and edi, eax
add esi, edi
mov edi, edx
and edi, eax
lea esi, [esi + edi + 0x20002]
mov edi, dword [ebp - 8]
shr ecx, 2
shr esi, 2
xor ebx, esi
shr edi, 2
mov esi, 0x3fc03fc0
and ecx, esi
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x18]
shr edx, 2
and edx, esi
lea ecx, [ecx + edx + 0x800080]
and ebx, eax
xor ebx, ecx
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
mov dword [ecx], ebx
mov ecx, dword [ebp - 0xc]
add ecx, 8
dec dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov esi, 0xffc03fc0
jne 0x405c07
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
add dword [ebp + 8], ecx
lea ecx, [edi + edi]
add dword [ebp + 0x14], ecx
add edx, ecx
cmp edx, dword [ebp - 0x14]
mov dword [ebp + 0xc], edx
jb 0x405be5
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret 0x18
Function at 0x419352
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
push esi
xor esi, esi
cmp dword [ebp + 8], esi
push edi
mov edi, ecx
mov dword [ebp - 4], esi
jne 0x419375
mov eax, 0x8876086c
jmp 0x41948a
cmp dword [ebp + 0xc], esi
push ebx
je 0x41940d
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
je 0x4193ed
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push dword [ebp + 8]
push esi
push 0xfde9
call ebx
push eax
mov dword [ebp + 0xc], eax
call fcn.004b3251
cmp eax, esi
pop ecx
mov dword [ebp - 4], eax
jne 0x4193d1
mov eax, 0x8007000e
jmp 0x419489
push esi
push esi
push dword [ebp + 0xc]
push eax
push 0xffffffffffffffff
push dword [ebp + 8]
push esi
push 0xfde9
call ebx
mov eax, dword [ebp - 4]
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], esi
cmp dword [ebp + 0xc], esi
je 0x41940d
push esi
push 0x10000000
push 3
push esi
push 1
push closesocket
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x419426
push esi
push 0x10000000
push 3
push esi
push 1
push closesocket
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push dword [ebp - 4]
mov dword [edi], eax
call fcn.004b3281
mov eax, dword [edi]
cmp eax, 0xffffffff
pop ecx
je 0x419477
push esi
push esi
push esi
push 2
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, 0xffffffff
mov dword [edi + 4], eax
je 0x419477
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [edi + 0xc], eax
je 0x419477
cmp eax, esi
je 0x419484
push esi
push esi
push esi
push 4
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
mov dword [edi + 8], eax
jne 0x419487
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x88760b59
jmp 0x419489
mov dword [edi + 8], esi
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret 8