joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409930
Capabilities:
Get common file path
Get program files directory
Query or enumerate registry value

Disassembly:
sub esp, 0x810
mov eax, dword [0x43e270]
xor eax, esp
mov dword [esp + 0x80c], eax
push ebx
xor ebx, ebx
cmp esi, ebx
je 0x409a51
push 0x800
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.0040d9a0
add esp, 0xc
push ebx
push 0x26
lea ecx, [esp + 0x18]
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4099b2
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
push 0x3ff
lea eax, [esp + 0x14]
push eax
push 0x400
push esi
call fcn.0040cafb
mov bl, 1
add esp, 0x10
mov al, bl
pop ebx
mov ecx, dword [esp + 0x80c]
xor ecx, esp
call fcn.0040c641
add esp, 0x810
ret
lea ecx, [esp + 4]
push ecx
push 0x20019
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409a39
lea edx, [esp + 8]
push edx
mov edx, dword [esp + 8]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
push ebx
push str.ProgramFilesDir
push edx
mov dword [esp + 0x20], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
adc eax, sym.imp.ADVAPI32.dll_RegQueryValueExW
test eax, eax
jne 0x409a2e
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
push 0x3ff
lea ecx, [esp + 0x14]
push ecx
push 0x400
push esi
call fcn.0040cafb
add esp, 0x10
mov bl, 1
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov ecx, dword [esp + 0x80c]
xor ecx, esp
call fcn.0040c641
add esp, 0x810
ret
mov ecx, dword [esp + 0x810]
pop ebx
xor ecx, esp
xor al, al
call fcn.0040c641
add esp, 0x810
ret
Function at 0x409bd0
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x120]
sub esp, 0x120
push 0xffffffffffffffff
push 0x430390
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x43e270]
xor eax, ebp
mov dword [ebp + 0x11c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
push 0x11c
push esi
lea eax, [ebp]
push eax
call fcn.0040d9a0
add esp, 0xc
mov dword [ebp], 0x11c
lea ecx, [ebp]
push ecx
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
call edi
mov ebx, eax
test ebx, ebx
jne 0x409c54
mov dword [ebp], 0x114
lea edx, [ebp]
push edx
call edi
test eax, eax
je 0x409e17
mov eax, dword [ebp + 0x10]
sub eax, 0
je 0x409de5
sub eax, 1
je 0x409d45
sub eax, 1
jne 0x409dea
mov eax, dword [ebp + 4]
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x409c81
jmp dword [eax*4 + 0x409e3c]
mov esi, 0x20001
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0xffffffff
jmp 0x409e15
mov esi, 0x20002
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0xffffffff
jmp 0x409e15
mov eax, dword [ebp + 8]
sub eax, 0
je 0x409cff
sub eax, 1
je 0x409ceb
sub eax, 1
jne 0x409ceb
mov esi, 0x40003
mov dword [ebp - 0x14], esi
cmp byte [0x440848], al
je 0x409dea
test ebx, ebx
je 0x409dea
cmp byte [ebp + 0x11a], 1
jne 0x409dea
mov esi, 0x40002
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0xffffffff
jmp 0x409e15
mov esi, 0x40001
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0xffffffff
jmp 0x409e15
xor eax, eax
cmp dword [ebp + 8], eax
setne al
add eax, 0x100001
mov esi, eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0xffffffff
jmp 0x409e15
mov esi, 0x100001
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0xffffffff
jmp 0x409e15
mov esi, dword [ebp + 8]
test esi, esi
je 0x409d99
cmp esi, 0xa
je 0x409d70
sub esi, 0x5a
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x10005
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0xffffffff
jmp 0x409e15
push 0x4368bc
lea ecx, [ebp + 0x14]
push ecx
call fcn.0040c7e8
add esp, 8
mov esi, eax
neg esi
sbb esi, esi
add esi, 0x10004
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0xffffffff
jmp 0x409e15
push 0x4368b4
lea edx, [ebp + 0x14]
push edx
call fcn.0040c7e8
add esp, 8
test eax, eax
je 0x409dd4
push 0x4368b8
lea eax, [ebp + 0x14]
push eax
call fcn.0040c7e8
add esp, 8
test eax, eax
je 0x409dd4
mov esi, 0x10001
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0xffffffff
jmp 0x409e15
mov esi, 0x10002
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0xffffffff
jmp 0x409e15
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0xffffffff
jmp 0x409e15
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x11c]
xor ecx, ebp
call fcn.0040c641
add ebp, 0x120
mov esp, ebp
pop ebp
ret
Function at 0x409e50
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x6804]
mov eax, 0x6804
call fcn.00416960
push 0xffffffffffffffff
push 0x430360
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x43e270]
xor eax, ebp
mov dword [ebp + 0x6800], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov edi, edx
mov dword [ebp - 4], 0
test esi, esi
je 0x40a064
mov eax, esi
lea edx, [eax + 2]
jmp 0x409eb0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409eb0
sub eax, edx
sar eax, 1
je 0x40a064
push 0x44
push 0
lea eax, [ebp - 0x6c]
push eax
call fcn.0040d9a0
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
push 0x800
push eax
lea ecx, [ebp + 0x2000]
push ecx
call fcn.0040d9a0
push 0x2000
push 0
lea edx, [ebp + 0x2800]
push edx
call fcn.0040d9a0
push 0x2000
push 0
lea eax, [ebp]
push eax
call fcn.0040d9a0
push 0x2000
push 0
lea ecx, [ebp + 0x4800]
push ecx
call fcn.0040d9a0
push esi
push 0x1000
lea edx, [ebp]
push edx
call fcn.0040ca8c
add esp, 0x48
mov ecx, 0x4345d0
lea edx, [ebp]
call fcn.0040a150
mov ecx, 0x4345d0
lea edx, [ebp]
call fcn.0040a300
lea eax, [ebp]
push eax
push 0x1000
lea ecx, [ebp + 0x4800]
push ecx
call fcn.0040ca8c
mov ecx, 0x436130
lea edx, [ebp + 0x4800]
call fcn.0040a150
mov ecx, 0x436130
lea edx, [ebp + 0x4800]
call fcn.0040a300
push 0x1000
lea edx, [ebp + 0x4800]
push edx
call fcn.0040d8d3
push str..EXE
lea eax, [ebp + 0x4800]
push eax
call fcn.0040d68d
add esp, 0x1c
test eax, eax
je 0x409fdb
xor ecx, ecx
mov word [eax], cx
push 0x5c
lea edx, [ebp + 0x4800]
push edx
call fcn.0040c87b
add esp, 8
test eax, eax
je 0x409fdb
xor ecx, ecx
mov word [eax], cx
lea esi, [ebp + 0x4800]
mov eax, esi
jmp 0x409fe2
xor esi, esi
mov eax, str.NULL
push eax
push 0xffffffffffffffff
lea edx, [ebp]
push edx
push str._RunExecute__Command_Line____s____wait_time___d__Working_Directory____s_
mov ecx, 0x440628
call fcn.00403b70
add esp, 0x10
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x6c]
push ecx
push esi
push 0
push 0x20
push 1
push 0
push 0
lea edx, [ebp]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40a02c
push edi
mov esi, dword [ebp - 0x24]
call fcn.0040a0b0
add esp, 4
jmp 0x40a032
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x6800]
xor ecx, ebp
call fcn.0040c641
add ebp, 0x6804
mov esp, ebp
pop ebp
ret
push str.Fail_____Invalid_Parameter_in_RunExecute____
mov ecx, 0x440628
call fcn.00403b70
add esp, 4
mov eax, 0x57
jmp 0x40a03f

Function at 0x40c641
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43e270]
jne 0x40c64b
repz ret
jmp fcn.00413512
Function at 0x41b92b
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.00412d31
and dword [ebp - 4], 0
cmp dword [0x4404f0], 0
mov ebx, eax
jne 0x41b9dc
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41ba8d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x41ba8d
push eax
call fcn.00412cbf
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4404f0], eax
call esi
push eax
call fcn.00412cbf
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4404f4], eax
call esi
push eax
call fcn.00412cbf
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4404f8], eax
call esi
push eax
call fcn.00412cbf
pop ecx
mov dword [0x440500], eax
test eax, eax
je 0x41b9dc
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00412cbf
pop ecx
mov dword [0x4404fc], eax
mov eax, dword [0x4404fc]
cmp eax, ebx
je 0x41ba34
cmp dword [0x440500], ebx
je 0x41ba34
push eax
call fcn.00412d3a
push dword [0x440500]
mov esi, eax
call fcn.00412d3a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41ba34
test edi, edi
je 0x41ba34
call esi
test eax, eax
je 0x41ba2b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41ba2b
test byte [ebp - 0xc], 1
jne 0x41ba34
or dword [ebp + 0x10], 0x200000
jmp 0x41ba6d
mov eax, dword [0x4404f4]
cmp eax, ebx
je 0x41ba6d
push eax
call fcn.00412d3a
pop ecx
test eax, eax
je 0x41ba6d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41ba6d
mov eax, dword [0x4404f8]
cmp eax, ebx
je 0x41ba6d
push eax
call fcn.00412d3a
pop ecx
test eax, eax
je 0x41ba6d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4404f0]
call fcn.00412d3a
pop ecx
test eax, eax
je 0x41ba8d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41ba8f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42eaa0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x43e270]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x40c], ecx
cmp dword [ebp + 8], 0
je 0x42eacf
mov eax, dword [ebp + 8]
push eax
call fcn.0040d97b
add esp, 4
test eax, eax
jne 0x42ead6
xor al, al
jmp 0x42eb69
mov ecx, dword [ebp - 0x40c]
cmp dword [ecx + 0x800], 0
je 0x42eafc
push 0
mov edx, dword [ebp - 0x40c]
mov eax, dword [edx + 0x800]
push eax
call fcn.0042c110
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x400
push 0
lea edx, [ebp - 0x408]
push edx
call fcn.0040d9a0
add esp, 0xc
push 0
push 0
push 0x400
lea eax, [ebp - 0x408]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
lea edx, [ebp - 0x408]
push edx
call fcn.0042c360
add esp, 8
mov ecx, dword [ebp - 0x40c]
mov dword [ecx + 0x800], eax
mov edx, dword [ebp - 0x40c]
cmp dword [edx + 0x800], 0
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c641
mov esp, ebp
pop ebp
ret 4
Function at 0x42f370
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430b10
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x43e270]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], ecx
mov byte [ebp - 0x11], 1
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x42f3d6
mov eax, dword [ebp + 8]
push eax
call fcn.0040d97b
add esp, 4
test eax, eax
je 0x42f3d6
cmp dword [ebp + 0xc], 0
je 0x42f3d6
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0040d97b
add esp, 4
test eax, eax
jne 0x42f3dd
xor al, al
jmp 0x42f504
mov edx, dword [ebp + 8]
push edx
call fcn.0040d97b
add esp, 4
cmp eax, 0x400
jae 0x42f403
mov eax, dword [ebp + 0xc]
push eax
call fcn.0040d97b
add esp, 4
cmp eax, 0x400
jb 0x42f40a
xor al, al
jmp 0x42f504
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42f41f
xor al, al
jmp 0x42f504
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0x20]
call fcn.0042eaa0
movzx eax, al
test eax, eax
jne 0x42f439
xor al, al
jmp 0x42f504
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x42f490
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
call fcn.00402990
mov dword [ebp - 0x18], 0
mov eax, 0x5c
mov ecx, dword [ebp - 0x20]
call fcn.004029d0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42f477
xor edx, edx
mov eax, dword [ebp - 0x18]
mov word [eax], dx
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x20]
call fcn.0042ef50
movzx edx, al
test edx, edx
jne 0x42f48e
xor al, al
jmp 0x42f504
jmp 0x42f4e7
mov dword [ebp - 0x1c], 0
push 0x5c
mov eax, dword [ebp + 8]
push eax
call fcn.0040c87b
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x42f4b2
xor al, al
jmp 0x42f504
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp + 8]
sar ecx, 1
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x400
mov eax, dword [ebp - 0x20]
push eax
call fcn.0040cafb
add esp, 0x10
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x20]
call fcn.0042eb80
movzx edx, al
test edx, edx
jne 0x42f4e7
xor al, al
jmp 0x42f504
jmp 0x42f4fa
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x42f5b0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x182c
call fcn.00416960
mov eax, dword [0x43e270]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x182c], ecx
mov byte [ebp - 0x811], 0
mov dword [ebp - 0x810], 0
mov eax, dword [0x43a214]
mov dword [ebp - 0x101c], eax
mov dword [ebp - 0x818], 0
mov dword [ebp - 0x80c], 0
cmp dword [ebp + 8], 0
je 0x42f613
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040d97b
add esp, 4
test eax, eax
jne 0x42f61a
xor al, al
jmp 0x42f7bc
movzx edx, byte [ebp + 0xc]
test edx, edx
jne 0x42f66c
push 0x5c
mov eax, dword [ebp + 8]
push eax
call fcn.0040c87b
add esp, 8
mov dword [ebp - 0x80c], eax
cmp dword [ebp - 0x80c], 0
jne 0x42f646
xor al, al
jmp 0x42f7bc
mov ecx, dword [ebp - 0x80c]
sub ecx, dword [ebp + 8]
sar ecx, 1
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x400
lea eax, [ebp - 0x1018]
push eax
call fcn.0040cafb
add esp, 0x10
jmp 0x42f67a
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x1018]
call fcn.00402990
lea ecx, [ebp - 0x818]
push ecx
lea edx, [ebp - 0x101c]
push edx
lea eax, [ebp - 0x1018]
push eax
call fcn.0040c8f8
add esp, 0xc
mov dword [ebp - 0x810], eax
cmp dword [ebp - 0x810], 0
je 0x42f7b6
mov eax, dword [ebp - 0x810]
lea ecx, [ebp - 0x808]
call fcn.00402990
mov eax, 0x43a218
lea ecx, [ebp - 0x808]
call fcn.004029c0
lea ecx, [ebp - 0x818]
push ecx
lea edx, [ebp - 0x101c]
push edx
push 0
call fcn.0040c8f8
add esp, 0xc
mov dword [ebp - 0x810], eax
cmp dword [ebp - 0x810], 0
je 0x42f7af
mov eax, dword [ebp - 0x810]
push eax
call fcn.0040d97b
add esp, 4
test eax, eax
je 0x42f7af
mov eax, dword [ebp - 0x810]
lea ecx, [ebp - 0x808]
call fcn.004029c0
mov eax, 0x43a21c
lea ecx, [ebp - 0x808]
call fcn.004029c0
push 0
lea ecx, [ebp - 0x808]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x42f754
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x42f752
xor al, al
jmp 0x42f7bc
jmp 0x42f78c
cmp dword [ebp + 0x10], 0
je 0x42f78c
lea ecx, [ebp - 0x1828]
call fcn.0040a7f0
lea eax, [ebp - 0x808]
lea ecx, [ebp - 0x1828]
call fcn.00402990
mov byte [ebp - 0x1028], 1
lea edx, [ebp - 0x1828]
push edx
mov ecx, dword [ebp + 0x10]
call fcn.0040a820
lea eax, [ebp - 0x818]
push eax
lea ecx, [ebp - 0x101c]
push ecx
push 0
call fcn.0040c8f8
add esp, 0xc
mov dword [ebp - 0x810], eax
jmp 0x42f6e9
mov byte [ebp - 0x811], 1
mov al, byte [ebp - 0x811]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c641
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100012a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0x208
push 0
push 0x100427a0
call fcn.10001910
mov eax, dword [ebp + 0xc]
add esp, 0xc
cmp eax, 0x206
jb 0x100012c6
mov eax, 0x206
push eax
mov eax, dword [ebp + 8]
push eax
push 0x208
push 0x100427a0
call fcn.10001370
add esp, 0x10
cmp dword [0x1004279c], 0
jne 0x1000130c
mov ecx, dword [0x10042794]
push 0
push 0
push ecx
push 0x10001020
push 0
push 0
call fcn.100014aa
add esp, 0x18
mov dword [0x1004279c], 1
xor eax, eax
pop ebp
ret 0xc

Function at 0x10001361
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x1000136b
repz ret
jmp fcn.10001801

Function at 0x10005577
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
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.10001f16
and dword [ebp - 0x14], 0
cmp dword [0x10042778], 0
mov dword [ebp - 0x18], eax
jne 0x1000562a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x100056d2
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x100056d2
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x10042778], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1004277c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x10042780], eax
call edi
push eax
call esi
mov dword [0x10042788], eax
test eax, eax
je 0x1000562a
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x10042784], eax
mov eax, dword [0x10042784]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10005683
cmp dword [0x10042788], ecx
je 0x10005683
push eax
call esi
push dword [0x10042788]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10005683
test ebx, ebx
je 0x10005683
call edi
test eax, eax
je 0x1000567a
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1000567a
test byte [ebp - 8], 1
jne 0x10005683
or dword [ebp + 0x10], 0x200000
jmp 0x100056b6
mov eax, dword [0x1004277c]
cmp eax, dword [ebp - 0x18]
je 0x100056b6
push eax
call esi
test eax, eax
je 0x100056b6
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100056b6
mov eax, dword [0x10042780]
cmp eax, dword [ebp - 0x18]
je 0x100056b6
push eax
call esi
test eax, eax
je 0x100056b6
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x10042778]
call esi
test eax, eax
je 0x100056d2
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x100056d4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10001361
leave
ret
Function at 0x4fdb30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x401986
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x4016e8
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
xor eax, eax
mov edx, 0x4f1014
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
call esi
mov eax, dword [0x507058]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov dword [eax + 0xc], 0x80000001
mov ecx, dword [ebp - 0x14]
push ecx
push 0x4f090c
call edi
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov edx, eax
lea ecx, [ebp - 0x18]
call ebx
mov edx, eax
mov eax, dword [0x507058]
lea ecx, [eax + 0x10]
call esi
lea ecx, [ebp - 0x18]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov ecx, dword [0x507058]
mov edx, 0x4f10c0
add ecx, 0x14
call esi
mov edx, dword [0x507058]
mov dword [edx + 0x18], 0x80000001
mov eax, dword [ebp - 0x14]
push eax
push 0x4f16b8
call edi
mov edx, eax
lea ecx, [ebp - 0x18]
call ebx
mov ecx, dword [0x507058]
mov edx, eax
add ecx, 0x1c
call esi
lea ecx, [ebp - 0x18]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov eax, dword [0x507058]
mov edx, 0x4f10d8
lea ecx, [eax + 0x20]
call esi
mov ecx, dword [0x507058]
mov dword [ecx + 0x24], 0x80000002
mov edx, dword [ebp - 0x14]
push edx
push 0x4f090c
call edi
mov edx, eax
lea ecx, [ebp - 0x18]
call ebx
mov edx, eax
mov eax, dword [0x507058]
lea ecx, [eax + 0x28]
call esi
lea ecx, [ebp - 0x18]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov ecx, dword [0x507058]
mov edx, 0x4f111c
add ecx, 0x2c
call esi
mov edx, dword [0x507058]
mov dword [edx + 0x30], 0x80000002
mov eax, dword [ebp - 0x14]
push eax
push 0x4f16b8
call edi
mov edx, eax
lea ecx, [ebp - 0x18]
call ebx
mov edx, eax
mov ecx, dword [0x507058]
add ecx, 0x34
call esi
lea ecx, [ebp - 0x18]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov eax, dword [0x507058]
mov edx, 0x4f1138
lea ecx, [eax + 0x38]
call esi
push 0x4fdca7
jmp 0x4fdc9d
lea ecx, [ebp - 0x14]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
ret
Function at 0x40cb2f
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov edx, 0x1505
jmp 0x40cb50
lea eax, [ecx - 0x61]
cmp eax, 0x19
ja 0x40cb48
and ecx, 0xffffffdf
imul edx, edx, 0x21
xor edx, ecx
add esi, 2
movzx ecx, word [esi]
test ecx, ecx
jne 0x40cb3d
mov eax, dword [ebp + 0x10]
movzx ecx, dl
mov edx, ecx
shr edx, 5
mov dword [eax], edx
mov eax, dword [ebp + 0x14]
xor edx, edx
and ecx, 0x1f
inc edx
shl edx, cl
pop esi
mov dword [eax], edx
pop ebp
ret 0x10

Function at 0x402403
Capabilities:
Enumerate files on windows
Get disk size
Get geographical location
Print debug messages
Query environment variable

Disassembly:
inc eax
add dl, bh
jbe 0x402397
add dl, ah
mov dword [0xa22759], eax
push 0x40c0cd
jmp [ebp - 0x1dbfc917]
daa
mov byte [0xc0cd6800], al
inc eax
add bh, bh
lodsd eax, dword [esi]
jmp 0xe92263e0
inc eax
loop 0x402392
popal
add dl, ah
add byte [ebx + 0x40bb6d], ah
push 0x402249
jecxz 0x4023ef
jmp 0xe840c5f5
and ah, byte [edx - 0x3417b000]
add byte [eax], al
add byte [edi], bh
popal
daa
inc eax
loop 0x402456
push 0x40bf32
push eax
cli
push es
add byte [eax], al
loop 0x4023ad
daa
mov byte [0x5955c300], al
in eax, 0x83
in al, dx
salc
mov edi, dword [ebp + 8]
jl 0x40239b
aas
dec ebp
mov byte [ebp + 0x65], dh
mov eax, ebp
add edx, dword [edi + 0x3c]
jl 0x4023a7
cmp dl, byte [eax - 0x63]
jne 0x402484
mov dword [ebp + 0x6a428bf4], ecx
add eax, dword [ebp + 8]
pop ecx
inc ebp
clc
mov esp, dword [edx - 0x25bafce0]
mov dword [ebp - 4], eax
mov cl, 0xc9
mov edx, dword [ebp - 0x16]
cmp ecx, dword [edx + 0x18]
cmp cl, byte gs:[ebx + 0x1c8be65d]
mov ebx, edi
pop ebp
or bh, bh
insd dword es:[edi], dx
or al, 0x53
push ebx
call fcn.0040220a
pop edi
clc
add dword [edi + ebx*8 + 0x41], esi
jmp 0x402442
mov cl, 0xc0
mov esp, ebp
test edx, eax
or byte [eax], al

Function at 0x4042a0
Capabilities:
Terminate process

Disassembly:
mov edx, eax
push dword [0x402740]
call dword [sym.imp.pdh.dll_PdhValidatePathA]
and eax, 0xf
add eax, 0xb
xor edi, edi
xor esi, esi
cmp eax, 0x18
je 0x4042c9
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]
mov edx, eax
mov dword [0x403705], eax
ret

Function at 0x40c006
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ecx, 0xcbf
mov ebx, edx
xor word [eax], dx
lea edx, [ebx + edx]
xchg dh, dl
lea eax, [eax + 2]
loop 0x40c00e
pop ebx
ret