joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425f70
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor ecx, ecx
mov eax, 0x432890
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [eax], edx
je 0x425f97
add eax, 8
inc ecx
cmp eax, 0x432918
jb 0x425f88
cmp dword [ecx*8 + 0x432890], edx
lea ebx, [ecx*8]
jne 0x426152
cmp dword [0x431f7c], 1
je 0x426117
cmp dword [0x431f7c], 0
jne 0x425fce
cmp dword [0x431f80], 1
je 0x426117
cmp edx, 0xfc
je 0x426152
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x42600b
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x42604f
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x42d47c
push ebp
call fcn.00420c90
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x42d45c
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x432894]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.00429550
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x43d0f0]
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x42612e
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x432894]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub 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 ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x426700
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x418
push ebx
push esi
push edi
xor ebx, ebx
mov dword [esp + 0x1c], ebx
push ebp
mov ebp, dword [esp + 0x434]
cmp ebp, ebx
jne 0x426728
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov edx, dword [esp + 0x42c]
mov eax, edx
and eax, 0xffffffe7
sar eax, 3
add eax, 0x43d0f0
mov dword [esp + 0x18], eax
mov eax, edx
and eax, 0x1f
mov esi, dword [esp + 0x18]
shl eax, 2
lea ecx, [eax + eax*8]
mov eax, dword [esi]
mov dword [esp + 0x1c], ecx
test byte [eax + ecx + 4], 0x20
je 0x426769
push 2
push 0
push edx
call fcn.004282d0
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add ecx, dword [eax]
test byte [ecx + 4], 0x80
je 0x426805
mov dword [esp + 0x10], 0
mov edi, dword [esp + 0x430]
mov eax, edi
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x42683e
lea esi, [esp + 0x24]
mov eax, edi
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x4267cc
mov al, byte [edi]
inc edi
cmp al, 0xa
jne 0x4267ba
mov byte [esi], 0xd
inc ebx
inc esi
mov byte [esi], al
inc esi
mov eax, esi
lea ecx, [esp + 0x24]
sub eax, ecx
cmp eax, 0x400
jl 0x4267a1
lea eax, [esp + 0x24]
push 0
sub esi, eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x1c]
push eax
push esi
push ecx
mov eax, dword [edx]
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax + ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x426834
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], eax
cmp esi, eax
jle 0x42678c
jmp 0x42683e
lea eax, [esp + 0x14]
push 0
mov edx, dword [esp + 0x434]
push eax
push ebp
mov ecx, dword [ecx]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x426834
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x42683e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x20], 0
jne 0x4268ea
cmp dword [esp + 0x10], 0
je 0x42689a
cmp dword [esp + 0x10], 5
jne 0x42687d
call fcn.00420970
mov dword [eax], 9
call fcn.00420980
mov ecx, dword [esp + 0x10]
pop ebp
pop edi
mov dword [eax], ecx
mov eax, 0xffffffff
pop esi
pop ebx
add esp, 0x418
ret
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004208f0
add esp, 4
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax]
test byte [edx + ecx + 4], 0x40
je 0x4268c4
mov eax, dword [esp + 0x430]
cmp byte [eax], 0x1a
jne 0x4268c4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
call fcn.00420970
mov dword [eax], 0x1c
call fcn.00420980
pop ebp
mov dword [eax], 0
mov eax, 0xffffffff
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x20]
pop ebp
sub eax, ebx
pop edi
pop esi
pop ebx
add esp, 0x418
ret
Function at 0x429690
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1008
call fcn.0042ab10
push ebx
push esi
push edi
xor ebx, ebx
mov esi, dword [esp + 0x1018]
push ebp
push 1
push ebx
push esi
call fcn.004282d0
mov dword [esp + 0x1c], eax
add esp, 0xc
cmp eax, 0xffffffff
je 0x4297b2
push 2
push ebx
push esi
call fcn.004282d0
add esp, 0xc
cmp eax, 0xffffffff
je 0x4297b2
mov ecx, dword [esp + 0x1020]
mov ebp, ecx
sub ebp, eax
test ebp, ebp
jle 0x429753
lea edi, [esp + 0x18]
xor eax, eax
mov ecx, 0x400
push 0x8000
rep stosd dword es:[edi], eax
push esi
call fcn.0042aaa0
mov dword [esp + 0x1c], eax
add esp, 8
mov eax, 0x1000
cmp ebp, eax
jge 0x42970e
mov eax, ebp
push eax
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.00426700
add esp, 0xc
mov edi, eax
cmp edi, 0xffffffff
je 0x42972c
sub ebp, edi
test ebp, ebp
jg 0x429703
jmp 0x429743
call fcn.00420980
cmp dword [eax], 5
jne 0x429741
call fcn.00420970
mov dword [eax], 0xd
mov ebx, edi
mov eax, dword [esp + 0x14]
push eax
push esi
call fcn.0042aaa0
add esp, 8
jmp 0x429795
jge 0x429795
push 0
push ecx
push esi
call fcn.004282d0
add esp, 0xc
push esi
call fcn.004264e0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp eax, 1
sbb ebx, ebx
cmp ebx, 0xffffffff
jne 0x429795
call fcn.00420970
mov dword [eax], 0xd
call fcn.00420980
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
mov eax, dword [esp + 0x10]
push 0
push eax
push esi
call fcn.004282d0
add esp, 0xc
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1008
ret
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1008
ret
Function at 0x429990
Capabilities:
Get geographical location

Disassembly:
push ebx
mov eax, dword [0x433534]
push esi
test eax, eax
push edi
push ebp
jne 0x4299d8
push 0
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0
push 1
push 0
call esi
test eax, eax
je 0x4299b8
mov eax, 1
jmp 0x4299de
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x4299d1
mov eax, 2
jmp 0x4299de
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov dword [0x433534], eax
cmp eax, 1
jne 0x429a03
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov ebx, dword [esp + 0x18]
push ecx
push edx
push ebx
call esi
pop ebp
pop edi
pop esi
pop ebx
ret
mov dword [0x433534], eax
cmp eax, 2
jne 0x429a91
mov edi, dword [esp + 0x24]
test edi, edi
jne 0x429a1f
mov edi, dword [0x432408]
mov eax, dword [esp + 0x18]
push 0
mov ebx, dword [esp + 0x18]
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov ebp, eax
test ebp, ebp
jne 0x429a40
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
push ebp
call fcn.00420240
add esp, 4
mov esi, eax
test esi, esi
jne 0x429a56
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
mov eax, dword [esp + 0x18]
push ebp
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x429a86
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x429a96
push 0
push 0
push 0xffffffffffffffff
push esi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
test edi, edi
jne 0x429aae
push esi
call fcn.004219b0
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
push eax
mov eax, dword [esp + 0x20]
push eax
push 0xffffffffffffffff
push esi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
test edi, edi
je 0x429a86
push esi
call fcn.004219b0
add esp, 4
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x429ac0
Capabilities:
Get geographical location

Disassembly:
push ebx
mov eax, dword [0x433538]
push esi
test eax, eax
push edi
push ebp
jne 0x429b08
push 0
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0
push 1
push 0
call esi
test eax, eax
je 0x429ae8
mov eax, 2
jmp 0x429b0e
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x429b01
mov eax, 1
jmp 0x429b0e
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [0x433538], eax
cmp eax, 2
jne 0x429b33
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov ebx, dword [esp + 0x18]
push ecx
push edx
push ebx
call esi
pop ebp
pop edi
pop esi
pop ebx
ret
mov dword [0x433538], eax
cmp eax, 1
jne 0x429bcf
mov edi, dword [esp + 0x24]
test edi, edi
jne 0x429b4f
mov edi, dword [0x432408]
mov eax, dword [esp + 0x18]
push 0
mov ebx, dword [esp + 0x18]
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebp, eax
test ebp, ebp
jne 0x429b70
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
lea eax, [ebp*2]
push eax
call fcn.00420240
add esp, 4
mov esi, eax
test esi, esi
jne 0x429b8d
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
mov eax, dword [esp + 0x18]
push ebp
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x429bc4
mov eax, dword [esp + 0x20]
push 0
push 0
test eax, eax
jne 0x429bd4
push 0
push 0
push 0xffffffffffffffff
push esi
push 0x220
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jne 0x429bef
push esi
call fcn.004219b0
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
push eax
mov eax, dword [esp + 0x28]
push eax
push 0xffffffffffffffff
push esi
push 0x220
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x429bc4
push esi
call fcn.004219b0
add esp, 4
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x42b190
Capabilities:
Set environment variable

Disassembly:
sub esp, 4
cmp dword [esp + 8], 0
push ebx
push esi
push edi
push ebp
je 0x42b3cd
mov edx, dword [esp + 0x18]
push 0x3d
push edx
call fcn.0042b520
add esp, 8
mov ebp, eax
test ebp, ebp
je 0x42b3cd
cmp dword [esp + 0x18], ebp
je 0x42b3cd
cmp byte [ebp + 1], 1
sbb eax, eax
mov ecx, dword [0x4324cc]
neg eax
mov dword [esp + 0x10], eax
cmp dword [0x4324d0], ecx
jne 0x42b1ed
push ecx
call fcn.0042b440
add esp, 4
mov dword [0x4324cc], eax
cmp dword [0x4324cc], 0
jne 0x42b29d
cmp dword [esp + 0x1c], 0
je 0x42b224
cmp dword [0x4324d4], 0
je 0x42b224
call fcn.0042aa10
test eax, eax
je 0x42b29d
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [esp + 0x10], 0
je 0x42b235
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x4324cc], 0
jne 0x42b269
push 4
call fcn.00420240
add esp, 4
mov dword [0x4324cc], eax
test eax, eax
jne 0x42b25e
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, dword [0x4324cc]
mov dword [eax], 0
cmp dword [0x4324d4], 0
jne 0x42b29d
push 4
call fcn.00420240
add esp, 4
mov dword [0x4324d4], eax
test eax, eax
jne 0x42b292
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, dword [0x4324d4]
mov dword [eax], 0
mov esi, dword [0x4324cc]
sub ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x18]
push ebp
push edx
call fcn.0042b3e0
add esp, 8
mov edi, eax
test edi, edi
jl 0x42b305
cmp dword [esi], 0
je 0x42b305
cmp dword [esp + 0x10], 0
je 0x42b2fc
lea ebx, [esi + edi*4]
mov eax, dword [ebx]
push eax
call fcn.004219b0
add esp, 4
cmp dword [ebx], 0
je 0x42b2e9
mov eax, dword [ebx + 4]
add ebx, 4
inc edi
mov dword [ebx - 4], eax
cmp dword [ebx], 0
jne 0x42b2da
shl edi, 2
push edi
push esi
call fcn.0042b4b0
add esp, 8
test eax, eax
je 0x42b34d
jmp 0x42b348
mov edx, dword [esp + 0x18]
mov dword [esi + edi*4], edx
jmp 0x42b34d
cmp dword [esp + 0x10], 0
jne 0x42b3c3
test edi, edi
jge 0x42b316
neg edi
lea eax, [edi*4 + 8]
push eax
push esi
call fcn.0042b4b0
add esp, 8
test eax, eax
jne 0x42b338
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
lea ecx, [eax + edi*4]
mov edx, dword [esp + 0x18]
mov dword [ecx], edx
mov dword [ecx + 4], 0
mov dword [0x4324cc], eax
cmp dword [esp + 0x1c], 0
je 0x42b3b9
mov edi, dword [esp + 0x18]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.00420240
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x42b3b9
mov edi, dword [esp + 0x18]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [esp + 0x10], 1
sbb ecx, ecx
lea eax, [ebx + ebp]
mov byte [eax], 0
lea eax, [eax + 1]
and ecx, eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call fcn.004219b0
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x42b790
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42b7b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004208f0
add esp, 4
mov eax, 0xffffffff
ret
test al, 1
je 0x42b7dc
test byte [esp + 8], 2
je 0x42b7dc
call fcn.00420970
mov dword [eax], 0xd
call fcn.00420980
mov dword [eax], 5
mov eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x42b7e0
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
mov eax, 0
jne 0x42b7fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x42b80d
push eax
call fcn.004208f0
add esp, 4
mov eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x42bd30
Capabilities:
Delete directory

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
mov eax, 0
jne 0x42bd4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x42bd5d
push eax
call fcn.004208f0
add esp, 4
mov eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x461f20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x455015
lea edi, [esi - 0x54015]
push edi
or ebp, 0xffffffff
jmp 0x461f42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x461f49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x461f38
mov eax, 1
add ebx, ebx
jne 0x461f5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x461f50
jne 0x461f6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f50
xor ecx, ecx
sub eax, 3
jb 0x461f80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x461ff2
mov ebp, eax
add ebx, ebx
jne 0x461f8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x461f98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x461fbc
inc ecx
add ebx, ebx
jne 0x461fa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x461f9d
jne 0x461fb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x461fdc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x461fcd
jmp 0x461f3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x461fdc
add edi, ecx
jmp 0x461f3e
pop esi
mov edi, esi
mov ecx, 0x32d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x461ffa
cmp byte [edi], 0
jne 0x461ffa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x461fff
lea edi, [esi + 0x5f000]
mov eax, dword [edi]
or eax, eax
je 0x46206e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x621f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x62254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46202c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x62258]
or eax, eax
je 0x462068
mov dword [ebx], eax
add ebx, 4
jmp 0x462049
call dword [esi + 0x6225c]
popal
jmp 0x4095a4

Function at 0x4010e0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
cmp eax, 0xffffffff
jbe 0x4010fd
push 0x410288
call 0x4042ee
add esp, 4
push 1
call 0x404262
test eax, eax
je 0x40110d
push eax
call 0x403aa8
add esp, 4
ret 8
xor eax, eax
ret 8
Function at 0x4019f0
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [section..rdata]
test eax, eax
jne 0x401a51
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x401a33
cmp eax, 2
jne 0x401a43
test esi, esi
mov eax, dword [esp + 0x14]
je 0x401a4d
mov cl, byte [eax + esi - 1]
test cl, cl
je 0x401a4d
pop edi
mov eax, 0xd
pop esi
ret 0xc
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
ret 0xc

Function at 0x401a60
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push edx
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [ecx]
push 0
push edx
push eax
call dword [0x407008]
ret 0x10

Function at 0x401b70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x405e09
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
push edi
xor edi, edi
mov ecx, esi
mov dword [esp + 8], edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetManager]
push eax
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x24]
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
push eax
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
push eax
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::Concatenate]
mov esi, dword [esp + 0x30]
add esp, 0x14
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 8]
call dword [0x40706c]
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x401c10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x405e09
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
push edi
xor edi, edi
mov ecx, esi
mov dword [esp + 8], edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetManager]
push eax
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x24]
push edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::StringLength]
add esp, 4
push eax
push edi
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
push eax
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::Concatenate]
mov esi, dword [esp + 0x30]
add esp, 0x14
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 8]
call dword [0x40706c]
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x401e10
Capabilities:
Set registry value

Disassembly:
push ecx
mov ecx, dword [ecx]
push esi
push edi
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x14]
xor esi, esi
lea edx, [esp + 0xc]
push edx
push esi
push 0x2001f
push esi
push esi
push esi
push eax
push ecx
mov dword [esp + 0x2c], esi
call dword [0x407014]
test eax, eax
jne 0x401e42
mov esi, dword [esp + 8]
test eax, eax
mov edi, eax
jne 0x401e68
mov edi, dword [esp + 0x14]
push edi
call dword [0x407054]
mov ecx, dword [esp + 0x18]
inc eax
push eax
push edi
push 1
push 0
push ecx
push esi
call dword [0x407008]
mov edi, eax
test esi, esi
je 0x401e73
push esi
call dword [0x407018]
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
Function at 0x401e80
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x11c
mov eax, dword [0x40a0b8]
xor eax, esp
push ebp
push esi
push edi
mov edi, dword [esp + 0x12c]
mov ebp, ecx
lea ecx, [esp + 0x14]
push ecx
push 0x2001f
push 0
mov dword [esp + 0x130], eax
mov eax, dword [ebp]
push edi
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
call dword [0x407010]
mov ecx, dword [esp + 0xc]
mov esi, eax
test esi, esi
jne 0x401eee
test ecx, ecx
je 0x401ee0
push ecx
call dword [0x407018]
test eax, eax
mov ecx, dword [esp + 0x14]
mov esi, eax
mov dword [esp + 0xc], ecx
je 0x401efc
test ecx, ecx
je 0x401fa1
push ecx
jmp 0x401f9b
mov esi, dword [0x407004]
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x38]
push edx
push 0
push ecx
mov dword [esp + 0x30], pe_nt_image_headers32
call esi
test eax, eax
jne 0x401f6e
jmp 0x401f30
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x10]
call fcn.00401e80
mov edi, eax
test edi, edi
jne 0x401fbd
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push eax
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x38]
push eax
push edi
push ecx
mov dword [esp + 0x30], pe_nt_image_headers32
call esi
test eax, eax
je 0x401f30
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x401f85
push eax
call dword [0x407018]
mov dword [esp + 0xc], 0
mov edx, dword [ebp]
push edi
push edx
call dword [0x40700c]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x401fa1
push eax
call dword [0x407018]
mov eax, esi
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00405751
add esp, 0x11c
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x401fcc
push eax
call dword [0x407018]
mov eax, edi
jmp 0x401fa3