joyce8/EMBER2024-capa huggingface dataset:
Function at 0x475cf4
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004047b8
lea ebx, [ebp - 0xc]
xor eax, eax
push ebp
push 0x475d7e
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebx], eax
xor eax, eax
push ebp
push 0x475d5e
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x475d46
cmp dword [ebx], 0
je 0x475d54
push 0
mov eax, dword [ebx]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00475d90
test al, al
jne 0x475d2d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x475d68
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x475d85
lea eax, [ebp - 4]
call fcn.004042f8
ret
Function at 0x40f90b
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
mov dword [ebp - 0x164], ecx
mov eax, dword [ebp + 0xc]
push eax
push 0x160
lea ecx, [ebp - 0x160]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov eax, dword [ebp - 0x15c]
mov esp, ebp
pop ebp
ret 8

Function at 0x4102bd
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
mov dword [ebp - 0x168], ecx
push 0x4001
push 0x160
lea eax, [ebp - 0x160]
push eax
push 0
push 0x41a4c4
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov dword [ebp - 0x164], eax
cmp dword [ebp - 0x164], 0
je 0x410317
mov ecx, dword [ebp - 0x164]
push ecx
push 0
push 0x1109
mov edx, dword [ebp - 0x168]
mov eax, dword [edx + 0x20]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov esp, ebp
pop ebp
ret

Function at 0x412987
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4129df
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x41a860
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4129d2
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x4129e1
xor eax, eax
pop esi
leave
ret 4
Function at 0x30003340
Capabilities:
Download url
Receive data

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x30007000]
push ebx
push edi
mov edi, dword [ebp + 0x198]
xor ebx, ebx
push edi
mov dword [ebp + 0x18c], eax
mov dword [ebp - 0x80], ebx
call fcn.30001d3e
test eax, eax
jne 0x300033df
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
push 7
push edi
push 0x30001814
call esi
test eax, eax
je 0x300033a1
push 8
push edi
push 0x30001800
call esi
test eax, eax
je 0x300033a1
push 6
push edi
push 0x300017f0
call esi
test eax, eax
jne 0x300033de
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
cmp word [eax], bx
je 0x300033af
inc eax
inc eax
push ebx
lea ecx, [ebp - 0x7c]
push ecx
push eax
push ebx
push edi
call dword [sym.imp.WININET.dll_CreateUrlCacheEntryW]
test eax, eax
je 0x300033de
push ebx
push ebx
lea eax, [ebp - 0x7c]
push eax
push edi
push ebx
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
jl 0x300033de
lea eax, [ebp - 0x7c]
push eax
call fcn.30004cab
mov dword [ebp - 0x80], eax
pop esi
mov ecx, dword [ebp + 0x18c]
mov eax, dword [ebp - 0x80]
pop edi
pop ebx
call fcn.300050a1
add ebp, 0x190
leave
ret 4

Function at 0x300037e2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x14]
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
call fcn.3000192c
test eax, eax
jl 0x30003848
test esi, esi
mov edx, dword [ebp - 4]
jne 0x30003822
test edi, edi
je 0x3000383f
mov eax, 0x8000ffff
jmp 0x30003848
test edi, edi
je 0x3000383f
cmp edx, 1
je 0x30003830
cmp edx, 2
jne 0x3000383f
mov ecx, dword [esi]
cmp ecx, 2
jb 0x3000381b
cmp word [ecx + edi - 2], 0
jmp 0x30003819
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x30003848
mov dword [ecx], edx
pop edi
pop esi
leave
ret 0x14

Function at 0x300041de
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x30007000]
push esi
push edi
push 3
push dword [ebp + 8]
mov dword [ebp - 4], eax
xor edi, edi
mov dword [ebp - 0x40c], 0x201
xor esi, esi
call dword [sym.imp.SHLWAPI.dll_UrlIsW]
test eax, eax
je 0x30004247
xor eax, eax
mov ecx, pe_nt_image_headers32
lea edi, [ebp - 0x408]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push esi
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x408]
push eax
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathCreateFromUrlW]
test eax, eax
jl 0x30004241
lea esi, [ebp - 0x408]
xor edi, edi
test esi, esi
jne 0x3000424a
mov esi, dword [ebp + 8]
push 1
push 0
push esi
push 0x30001880
push 0x3000125c
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x3000426b
mov edi, 0x80004005
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
call fcn.300050a1
leave
ret 4
Function at 0x30004d96
Capabilities:
Parse pe header

Disassembly:
push 0x74
push 0x300018f0
call fcn.300050ae
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x30004dd6
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x30004dd6
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x30004dee
cmp eax, 0x20b
je 0x30004ddb
mov dword [ebp - 0x1c], ebx
jmp 0x30004e02
cmp dword [ecx + 0x84], 0xe
jbe 0x30004dd6
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x30004dfc
cmp dword [ecx + 0x74], 0xe
jbe 0x30004dd6
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x300060e8], 0xffffffff
or dword [0x300060ec], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x300060e0]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x300060dc]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x300060e4], eax
call fcn.30005132
call fcn.300051e7
cmp dword [0x300060c4], ebx
jne 0x30004e62
push 0x300051e4
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.300051d2
push 0x30006010
push 0x3000600c
call sub.MSVCRT.dll__initterm
push 0x30005176
call fcn.30005120
mov eax, dword [0x300060d8]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x300060d4]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x30004eb6
push 8
call sub.MSVCRT.dll__amsg_exit
pop ecx
push 0x30006008
push 0x30006000
call sub.MSVCRT.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCRT.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x30004f1b
cmp al, bl
je 0x30004ee0
cmp dword [ebp - 0x20], ebx
jne 0x30004f1b
mov al, byte [esi]
cmp al, bl
je 0x30004ef0
cmp al, 0x20
ja 0x30004ef0
inc esi
mov dword [ebp - 0x24], esi
jmp 0x30004ee0
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x30004f0c
movzx eax, word [ebp - 0x54]
jmp 0x30004f0f
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.30001957
cmp al, 0x22
jne 0x30004f2a
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCRT.dll__ismbblead]
pop ecx
test eax, eax
je 0x30004f3d
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x30004ece
Function at 0x300050a1
Capabilities:
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x30007000]
push edi
mov dword [ebp + 0x2a4], eax
xor eax, eax
and dword [ebp - 0x28], eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x80], 0xc0000409
lea eax, [ebp + 0x2ac]
mov eax, dword [eax]
mov dword [ebp - 0x74], eax
lea eax, [ebp + 0x2ac]
mov dword [ebp - 0x28], 0x10001
mov eax, dword [eax]
mov dword [ebp + 0x90], eax
lea eax, [ebp + 0x2ac]
mov dword [ebp + 0x9c], eax
push ss
pop dword [ebp + 0xa0]
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push 0
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push 0x502
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.300050a1
pop edi
add ebp, 0x2a8
leave
ret
cmp ecx, dword [0x30007000]
jne 0x30004f79
ret
Function at 0x10001770
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x1015f670]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
mov dword [ebp - 0x110], 0x2e484e5c
mov dword [ebp - 0x10c], 0x747874
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [ebp - 0x110]
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100017c0
push esi
push edi
lea edi, [ebp - 0x108]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100017d4
mov ecx, eax
shr ecx, 2
push 0
rep movsd dword es:[edi], dword [esi]
push 0x80
push 3
push 0
push 1
mov ecx, eax
push SysReAllocString
lea edx, [ebp - 0x108]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000184e
push ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
call fcn.10001bb7
add esp, 4
push 0
mov edi, eax
lea eax, [ebp - 0x10c]
push eax
push ebx
push edi
push esi
mov dword [ebp - 0x10c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop ebx
test edi, edi
je 0x1000184e
push edi
call fcn.10001050
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.100f539a
mov esp, ebp
pop ebp
ret

Function at 0x1001400c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x10014053
call fcn.10005e97
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x10014053
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x1001406f
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.10013b0c
mov esi, eax
test edi, edi
je 0x1001406d
test ebx, ebx
je 0x1001406d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x1001444e
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x10113d57
call fcn.100f5c63
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x10014473
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x100144c5
call fcn.1000965e
push eax
lea ecx, [ebp - 0x10]
call fcn.1000292a
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100f8478
push eax
call fcn.10001cf9
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.100021d4
mov eax, esi
call fcn.100f5d3b
ret 8
Function at 0x1003ea3c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.10005e97
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x1003ea75
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.1003e679
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x1003ead3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x1003eaf7
cmp dword [edi + 0x74], 0
jne 0x1003eaf7
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.10005e97
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.1003ea94
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x10040af6
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.1004079a
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x10040b40
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.1000955f
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.10004746
jmp 0x10040b4b
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.1000884f
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x10040b51
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.10014118
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x10040b8e
call fcn.1004079a
mov dword [esi + 0xc], 1
jmp 0x10040b93
call fcn.1004079a
cmp dword [esi], 0
je 0x10040bdc
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x10040bb4
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.1000955f
jmp 0x10040bc6
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.10002ad2
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.10004746
jmp 0x10040c00
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x10040c00
push dword [esi]
push dword [ebp + 8]
call fcn.1000884f
pop esi
pop ebp
ret 0xc

Function at 0x10070002
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x1007001c
call fcn.10005e97
mov esi, dword [eax + 0xc]
push dword [0x10164620]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x1007003a
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x10070032
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x10070067
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x10070034
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.1006ff30
mov esi, eax
jmp 0x10070059

Function at 0x100bb32d
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.100efad4
call fcn.100058c8
cmp dword [eax + 0x14], 0
jne 0x100bb34a
mov ecx, esi
pop esi
jmp fcn.100bae32
pop esi
ret

Function at 0x100be54a
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.1003ec39
call fcn.100058c8
cmp dword [eax + 0x14], 0
jne 0x100be567
mov ecx, esi
pop esi
jmp fcn.100bdf1d
pop esi
ret
Function at 0x100d0c3f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x100d0c57
mov edi, dword [esi + 0xc]
jmp 0x100d0c97
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x100d0c70
call fcn.1000753b
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x100d0c85
call fcn.1000753b
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x100d0c97
call fcn.1000753b
call fcn.10005e97
cmp dword [eax + 0x3c], 0
je 0x100d0cac
push edi
mov ecx, ebx
call fcn.100cfa69
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.100d0b59
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x100d0cca
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x100d0cd6
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x100f539a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1015f670]
jne 0x100f53a4
repz ret
jmp fcn.100fb0e4
Function at 0x101069ba
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1015f670]
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.100fb418
and dword [ebp - 0x14], 0
cmp dword [0x10166de8], 0
mov dword [ebp - 0x18], eax
jne 0x10106a6d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10106b15
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1014179c
push ebx
call edi
test eax, eax
je 0x10106b15
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x1014178c
push ebx
mov dword [0x10166de8], eax
call edi
push eax
call esi
push 0x10141778
push ebx
mov dword [0x10166dec], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x10166df0], eax
call edi
push eax
call esi
mov dword [0x10166df8], eax
test eax, eax
je 0x10106a6d
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x10166df4], eax
mov eax, dword [0x10166df4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10106ac6
cmp dword [0x10166df8], ecx
je 0x10106ac6
push eax
call esi
push dword [0x10166df8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10106ac6
test ebx, ebx
je 0x10106ac6
call edi
test eax, eax
je 0x10106abd
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10106abd
test byte [ebp - 8], 1
jne 0x10106ac6
or dword [ebp + 0x10], 0x200000
jmp 0x10106af9
mov eax, dword [0x10166dec]
cmp eax, dword [ebp - 0x18]
je 0x10106af9
push eax
call esi
test eax, eax
je 0x10106af9
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10106af9
mov eax, dword [0x10166df0]
cmp eax, dword [ebp - 0x18]
je 0x10106af9
push eax
call esi
test eax, eax
je 0x10106af9
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x10166de8]
call esi
test eax, eax
je 0x10106b15
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10106b17
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100f539a
leave
ret
Function at 0x402a10
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402a4d
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402a6d
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00405118
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402bd4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404eb0
test esi, esi
jne 0x402c0a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404fa0
jmp 0x402c28
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402ae8
mov edi, eax
test esi, esi
je 0x402c28
cmp dword [ebx], 0
je 0x402c28
dec esi
jmp 0x402c11
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403324
Capabilities:
Read file on windows

Disassembly:
push ebx
xor ecx, ecx
mov ebx, eax
mov cx, word [eax + 4]
sub ecx, 0xd7b1
je 0x40333a
sub ecx, 2
jne 0x40335c
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.kernel32.dll_ReadFile
pop edx
dec eax
jne 0x403363
cmp edx, dword [ebx + 8]
je 0x40336d
mov eax, 0x64
jmp 0x403368
mov eax, 0x67
jmp 0x403368
call sub.kernel32.dll_GetLastError
call fcn.004029b0
pop ebx
ret

Function at 0x40379c
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, eax
movzx eax, word [eax + 4]
sub eax, 0xd7b2
cmp eax, 1
ja 0x4037cf
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.kernel32.dll_WriteFile
pop edx
dec eax
jne 0x4037d6
cmp edx, dword [ebx + 8]
je 0x4037e0
mov eax, 0x65
jmp 0x4037db
mov eax, 5
jmp 0x4037db
call sub.kernel32.dll_GetLastError
call fcn.004029b0
mov eax, ebx
pop ebx
ret

Function at 0x403f08
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x5cc00c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403fa0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403f80
xor eax, eax
push ebp
push 0x403f79
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403fbc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403f80
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x5cc00c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x5cc00c], ax
mov esp, ebp
pop ebp
ret