joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42e9f8
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
lea edi, [ecx + 0x38]
xor esi, esi
cmp dword [edi + 4], esi
je 0x42ea1b
push esi
mov ecx, edi
call fcn.0042e4ea
jmp 0x42ea0c
lea eax, [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push esi
push esi
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0x78]
mov dword [ebp - 8], esi
push eax
push esi
push MenuHelp
mov dword [ebp - 4], 0x62
call edi
mov ebx, 0x103
cmp eax, ebx
je 0x42eaa6
cmp eax, esi
jne 0x42ea81
cmp byte [ebp - 0x78], 0x2e
jne 0x42ea81
lea eax, [ebp - 0xdc]
push 0x62
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.0042e99f
add esp, 0xc
test al, al
je 0x42ea81
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 0x77]
push eax
lea eax, [ebp - 0xdc]
push eax
call fcn.0042ecb6
lea eax, [ebp - 0x14]
inc dword [ebp - 8]
push eax
push esi
push esi
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0x78]
mov dword [ebp - 4], 0x62
push eax
push dword [ebp - 8]
push MenuHelp
call edi
jmp 0x42ea47
mov edi, dword [ebp - 0xc]
mov ecx, edi
call fcn.0042eac2
mov eax, dword [edi + 0x3c]
mov ecx, edi
dec eax
push eax
push esi
call fcn.0042eb35
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42ed58
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push edi
push 0x440640
mov ecx, 0x447628
call fcn.004202a9
test al, al
je 0x42ed95
lea eax, [ebp - 4]
mov edi, str._shell
push eax
push 0x20019
push 0
mov esi, MenuHelp
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x42ed99
xor al, al
jmp 0x42edcb
lea eax, [ebp - 0x68]
push 0x62
push eax
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push dword [ebp - 4]
xor ebx, ebx
cmp eax, 0x103
setne bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
jne 0x42edc9
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov al, 1
pop edi
pop esi
pop ebx
leave
ret

Function at 0x435a40
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x447804]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x435a5f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x447800], 1
mov byte [0x4477fc], bl
jne 0x435ab9
mov ecx, dword [0x448c4c]
test ecx, ecx
je 0x435aa7
mov esi, dword [0x448c48]
sub esi, 4
cmp esi, ecx
jb 0x435aa7
mov eax, dword [esi]
test eax, eax
je 0x435aa0
call eax
mov ecx, dword [0x448c4c]
sub esi, 4
cmp esi, ecx
jae 0x435a92
push 0x440074
push 0x44006c
call fcn.00435af0
add esp, 8
push 0x44007c
push 0x440078
call fcn.00435af0
add esp, 8
test ebx, ebx
jne 0x435ae0
push ebp
mov dword [0x447804], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret
Function at 0x435bb0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ee20
push 0x438958
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x4477d4], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x4477d0], ecx
shl ecx, 8
add ecx, edx
mov dword [0x4477cc], ecx
shr eax, 0x10
mov dword [0x4477c8], eax
call fcn.00438820
test eax, eax
jne 0x435c1a
push 0x1c
call fcn.00435d50
add esp, 4
mov dword [ebp - 4], 0
call fcn.00438620
call fcn.00438610
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x448c44], eax
call fcn.004381e0
mov dword [0x447808], eax
test eax, eax
je 0x435c4d
mov eax, dword [0x448c44]
test eax, eax
jne 0x435c57
push 0xffffffffffffffff
call fcn.00435a00
add esp, 4
call fcn.00437f30
call fcn.00437e40
call fcn.004359d0
mov esi, dword [0x448c44]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x435d36
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x435c9e
test al, al
je 0x435c9e
and eax, 0xff
push eax
call fcn.00437de0
add esp, 4
test eax, eax
je 0x435c78
inc esi
mov dword [ebp - 0x64], esi
jmp 0x435c78
cmp byte [esi], 0x22
jne 0x435ca7
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x435cb7
cmp al, 0x20
ja 0x435cb7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x435ca7
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x435cd8
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x435cdd
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.00435a00
jmp 0x435d1b
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x435ca7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x435d36
Function at 0x437a90
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x447868]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push edi
test eax, eax
jne 0x437ad8
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x437ab8
mov eax, 1
jmp 0x437ad3
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x437ba9
mov eax, 2
mov dword [0x447868], eax
cmp eax, 1
jne 0x437af8
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x437bbb
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x437b13
mov ecx, dword [0x447840]
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push 0
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov esi, eax
test esi, esi
jne 0x437b32
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.00435d80
mov edi, eax
add esp, 4
test edi, edi
jne 0x437b46
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
push edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x437ba0
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x437b84
mov edx, dword [esp + 0x24]
push eax
push eax
push 0xffffffffffffffff
push edi
push 1
push edx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
je 0x437ba0
push edi
call fcn.00435e30
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x20]
push eax
push 0xffffffffffffffff
push edi
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
jne 0x437bb0
push edi
call fcn.00435e30
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call fcn.00435e30
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4381e0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x447980]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x438222
call edi
mov esi, eax
test esi, esi
je 0x43820c
mov eax, 1
jmp 0x43821d
call ebp
mov ebx, eax
test ebx, ebx
je 0x43832f
mov eax, 2
mov dword [0x447980], eax
cmp eax, 1
jne 0x4382c2
test esi, esi
jne 0x43823b
call edi
mov esi, eax
test esi, esi
je 0x43832f
cmp word [esi], 0
mov eax, esi
je 0x438255
add eax, 2
cmp word [eax], 0
jne 0x438243
add eax, 2
cmp word [eax], 0
jne 0x438243
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x4382b4
push edi
call fcn.00435d80
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4382b4
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x4382a6
push ebx
call fcn.00435e30
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x43832f
test ebx, ebx
jne 0x4382d3
call ebp
mov ebx, eax
test ebx, ebx
je 0x43832f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x4382eb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4382db
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4382db
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00435d80
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x43830d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x438a70
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x444bb0
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x438a94
add eax, 8
inc ebp
cmp eax, 0x444c40
jb 0x438a85
cmp ecx, dword [ebp*8 + 0x444bb0]
jne 0x438c3b
mov eax, dword [0x447810]
cmp eax, 1
je 0x438bfd
test eax, eax
jne 0x438ac0
cmp dword [0x4447c4], 1
je 0x438bfd
cmp ecx, 0xfc
je 0x438c3b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x438afb
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x438b44
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x4405f4
add ebx, ecx
push ebx
call fcn.00435730
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x43f1a0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x444bb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0043b2a0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x448b40]
test eax, eax
je 0x438c0e
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x438c18
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x444bb4]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x439c80
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x448c40]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x439e2d
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x448b40]
lea edi, [ecx*4 + 0x448b40]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x439e2d
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x439cee
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x439cff
push 2
push ebp
push eax
call fcn.00439bc0
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x439e5e
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x439da9
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x439d5a
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x439d47
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x439d2a
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x439e4f
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x439da5
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x439d26
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x439e1e
mov eax, dword [esp + 0x18]
test eax, eax
je 0x439df2
cmp eax, 5
jne 0x439ddb
mov dword [0x4477c0], eax
mov dword [0x4477bc], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.0043b3d0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x439e12
cmp byte [ebp], 0x1a
jne 0x439e12
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x4477bc], 0x1c
jmp 0x439e37
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x4477bc], 9
pop edi
pop esi
pop ebp
mov dword [0x4477c0], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x439da5
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x439e8f
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x439da9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x439da9
Function at 0x4014af
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x410f40
call fcn.00401ac0
push 1
call fcn.0040155d
pop ecx
test al, al
je 0x401499
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.0040152b
mov byte [ebp - 0x24], al
mov eax, dword [0x412790]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x401499
test eax, eax
jne 0x4013bd
mov dword [0x412790], ecx
push 0x40c138
push 0x40c120
call fcn.00403bcd
pop ecx
pop ecx
test eax, eax
je 0x4013a0
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x401489
push 0x40c11c
push 0x40c114
call fcn.00403b71
pop ecx
pop ecx
mov dword [0x412790], 2
jmp 0x4013c2
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.004016c6
pop ecx
call fcn.00401866
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x4013f3
push esi
call fcn.00401632
pop ecx
test al, al
je 0x4013f3
mov esi, dword [esi]
push edi
push 2
push edi
mov ecx, esi
call dword [0x40c110]
call esi
call fcn.0040186c
mov esi, eax
cmp dword [esi], edi
je 0x401411
push esi
call fcn.00401632
pop ecx
test al, al
je 0x401411
push dword [esi]
call fcn.00403e70
pop ecx
call fcn.0040198c
movzx esi, ax
call fcn.00403b2b
push esi
push eax
push edi
push 0x400000
call main
mov esi, eax
call fcn.004019c2
test al, al
je 0x4014a0
test bl, bl
jne 0x40143f
call fcn.00403e4b
push edi
push 1
call fcn.004016e3
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x401489
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
push 7
call fcn.00401872
push esi
call fcn.00403ea8
push dword [ebp - 0x20]
call fcn.00403e5a
int3
call fcn.004a5000
jmp 0x401333
Function at 0x10004540
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x10004598
cmp byte [esi + ebx - 1], 0xa
je 0x1000456c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x10016084], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x10004bc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp], eax
call sym.___wine_dbg_get_channel_flags
movzx eax, al
bt eax, esi
jae 0x10004d98
mov edi, dword [0x10016084]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], edi
je 0x10004ca7
test byte [0x1000604c], 8
jne 0x10004d40
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x1000605c], 8
jne 0x10004d00
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x10004c49
cmp esi, 3
jbe 0x10004cb8
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ecx, ebx
mov edi, eax
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x10004c5a
mov esi, edx
mov dword [esp + 0xc], edi
shr esi, 0x10
test edx, 0x8080
mov dword [esp + 4], 1
cmove edx, esi
lea esi, [ecx + 2]
mov dword [esp], ebx
cmove ecx, esi
mov eax, edx
add al, dl
sbb ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x10011c30]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x10004c49
mov dword [esp], 0x1000605c
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x10004c20
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call sym._sprintf
add edi, eax
jmp 0x10004c20
mov dword [esp], 0x1000604c
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x10004c0b
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea edi, [ebx + eax]
jmp 0x10004c13
mov eax, 0xffffffff
jmp 0x10004ca7
Function at 0x10004e50
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x214
mov eax, dword [0x100160a0]
test eax, eax
je 0x10004f08
mov dword [esp], ebx
call eax
mov dword [ebx + 8], eax
sub esp, 4
test eax, eax
jns 0x10004e90
mov eax, dword [ebx]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [ebp - 0x214]
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.MODULE
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], str.SystemRoot
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.SystemRoot
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
jmp 0x10004e7c
mov dword [esp], str.atl100.dll
call dword [sym.imp.kernel32.dll_LoadLibraryW]
sub esp, 4
test eax, eax
je 0x10004f3d
mov dword [esp + 4], str.AtlCreateRegistrar
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x100160a0], eax
sub esp, 8
test eax, eax
jne 0x10004e6d
mov dword [ebx + 8], 0x80004002
xor eax, eax
jmp 0x10004e7e
Function at 0x10004f50
Capabilities:
Access peb ldr_data
Extract resource via kernel32 functions
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x28
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_FindResourceW]
sub esp, 0xc
mov dword [ebp - 0x10], eax
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov edx, dword [ebp - 0x10]
sub esp, 8
mov ebx, eax
mov dword [esp + 4], edx
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov dword [ebp - 0x10], eax
sub esp, 8
test ebx, ebx
je 0x100050e0
mov eax, dword [esi]
test eax, eax
je 0x100050c8
mov edx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], ebx
mov dword [esp + 0x14], 0
mov dword [ebp - 0x1c], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call edx
lea ecx, [eax + 1]
sub esp, 0x18
lea eax, [ecx + ecx]
mov dword [ebp - 0x18], ecx
mov ecx, eax
mov dword [esp + 4], 0
mov dword [esp + 8], ecx
mov dword [ebp - 0x14], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
sub esp, 0xc
test eax, eax
mov edi, eax
je 0x100050ec
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [esi + 4]
xor edx, edx
sub esp, 0x18
mov word [edi + eax - 2], dx
mov eax, dword [esi]
test ecx, ecx
mov edx, dword [eax]
mov dword [esp + 4], edi
mov dword [esp], eax
jne 0x100050b8
call dword [edx + 0x28]
mov dword [esi + 8], eax
sub esp, 8
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esi + 8]
sub esp, 0xc
lea esp, [ebp - 0xc]
not eax
pop ebx
pop esi
shr eax, 0x1f
pop edi
pop ebp
ret 0x10
call dword [edx + 0x24]
mov dword [esi + 8], eax
sub esp, 8
jmp 0x1000507c
mov edx, esi
mov eax, edi
call sym._create_registrar
test eax, eax
jne 0x10004fb6
lea esi, [esi]
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov dword [esi + 8], 0x8007000e
xor eax, eax
jmp 0x100050e2