joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421710
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
push edi
cmp dword [edx + 0x14], 0x10
mov edi, dword [edx + 0x10]
jb 0x421723
mov edx, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
test edi, edi
je 0x421741
mov edi, edi
movzx eax, byte [edx + ecx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edi
jb 0x421730
push 0x1f31d
and esi, 0x7fffffff
push esi
call fcn.0049216f
imul ecx, eax, 0xb14
add esp, 8
imul edx, edx, 0x41a7
sub edx, ecx
lea eax, [edx + 0x7fffffff]
js 0x42176d
mov eax, edx
pop edi
pop esi
pop ebp
ret 4

Function at 0x4237b0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4e54c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov dword [ebp - 0x10c], 0
cmp dword [0x4e68fc], 0xffffffff
push edi
jne 0x4237fb
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push 0xffffffffffffffff
mov esi, eax
push esi
push 0x4e68fc
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, 0xffffffff
je 0x4237fb
push esi
call dword [sym.imp.KERNEL32.dll_TlsFree]
push 0x100
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00491b10
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push dword [0x4e68fc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0x100
call fcn.0048fe65
add esp, 4
lea esi, [ebp - 0x108]
mov ebx, eax
mov ecx, 0x40
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
push ebx
push dword [0x4e68fc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004906bc
mov esp, ebp
pop ebp
ret

Function at 0x423870
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10c
mov eax, dword [0x4e54c0]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
mov dword [esp + 4], 0
mov eax, dword [0x4e68fc]
push esi
push edi
cmp eax, 0xffffffff
je 0x42392f
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
je 0x42392f
lea eax, [esp + 0x10]
mov ecx, 0x40
push eax
push dword [0x4e68fc]
mov esi, ebx
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
call fcn.00491132
add esp, 4
mov edi, 0x40
mov esi, dword [0x4ebaac]
xor dl, dl
test esi, esi
jle 0x423918
lea esp, [esp]
mov ecx, dword [esp + esi*4 + 0x10]
test ecx, ecx
je 0x423913
mov eax, dword [esi*4 + 0x4ebab0]
test eax, eax
je 0x423913
push ecx
mov dword [esp + esi*4 + 0x14], 0
call eax
add esp, 4
mov dl, 1
dec esi
test esi, esi
jg 0x4238f0
dec edi
test edi, edi
jle 0x423921
test dl, dl
jne 0x4238e0
push 0
push dword [0x4e68fc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esp + 0x114]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004906bc
mov esp, ebp
pop ebp
ret
Function at 0x429f80
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b854b
mov eax, dword fs:[0]
push eax
mov eax, 0x12bc
call fcn.004988e0
mov eax, dword [0x4e54c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x12c0], ebx
push 7
push str.device0
lea ecx, [ebp - 0x102c]
mov dword [ebp - 0x12c8], 0
mov dword [ebp - 0x1018], 0xf
mov dword [ebp - 0x101c], 0
mov byte [ebp - 0x102c], 0
call fcn.00402820
lea eax, [ebp - 0x12bc]
mov dword [ebp - 4], 0
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
push eax
lea eax, [ebp - 0x12b8]
mov dword [ebp - 0x12bc], 0
push eax
call esi
cmp eax, 0x6f
jne 0x42a0de
push dword [ebp - 0x12bc]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x42a0de
lea eax, [ebp - 0x12bc]
push eax
push edi
call esi
test eax, eax
jne 0x42a0ce
mov ebx, dword [edi + 0x190]
lea eax, [edi + 0x194]
push ebx
push eax
lea eax, [ebp - 0x1010]
push eax
call fcn.00491450
add esp, 0xc
xor esi, esi
test ebx, ebx
je 0x42a0c8
jmp 0x42a080
xor eax, eax
mov byte [ebp - 0x1014], 0
mov word [ebp - 0x1013], ax
movzx eax, byte [ebp + esi - 0x1010]
push eax
push str._02X
lea eax, [ebp - 0x1014]
push 3
push eax
call fcn.0042c280
add esp, 0x10
lea eax, [ebp - 0x1014]
lea ecx, [ebp - 0x102c]
push 2
push eax
call fcn.00406bc0
inc esi
cmp esi, ebx
jb 0x42a080
mov ebx, dword [ebp - 0x12c0]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 0x1018], 0x10
lea eax, [ebp - 0x102c]
lea edx, [ebp - 0x12c4]
mov ecx, ebx
cmovae eax, dword [ebp - 0x102c]
mov dword [ebp - 0x12c4], eax
mov eax, dword [ebp - 0x101c]
mov dword [ebp - 0x12c0], eax
call fcn.0043ae70
cmp dword [ebp - 0x1018], 0x10
jb 0x42a128
push dword [ebp - 0x102c]
call fcn.0048fa72
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004906bc
mov esp, ebp
pop ebp
ret
Function at 0x42a220
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b858b
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x4e54c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0
push 0x4d1fc1
lea ecx, [edi + 0x1ac]
call fcn.00402820
lea ecx, [ebp - 0x120]
call fcn.004294f0
push eax
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.0042a360
lea ecx, [ebp - 0x120]
mov dword [ebp - 4], 0xffffffff
call fcn.00429600
mov eax, dword [edi + 0x110]
lea esi, [edi + 0x110]
mov ecx, esi
push dword [eax + 4]
call fcn.0042b8e0
mov eax, dword [esi]
mov dword [eax + 4], eax
mov eax, dword [esi]
mov dword [eax], eax
mov eax, dword [esi]
mov dword [eax + 8], eax
lea eax, [edi + 0x118]
mov dword [esi + 4], 0
cmp dword [eax + 0x14], 0x10
mov dword [eax + 0x10], 0
jb 0x42a2cd
mov eax, dword [eax]
mov byte [eax], 0
lea eax, [edi + 0x148]
cmp dword [eax + 0x14], 0x10
mov dword [eax + 0x10], 0
jb 0x42a2e5
mov eax, dword [eax]
mov byte [eax], 0
lea eax, [edi + 0x160]
cmp dword [eax + 0x14], 0x10
mov dword [eax + 0x10], 0
jb 0x42a2fd
mov eax, dword [eax]
lea esi, [edi + 0x178]
mov byte [eax], 0
cmp dword [esi + 0x14], 8
jb 0x42a310
mov eax, dword [esi]
jmp 0x42a312
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42a33b
xor dl, dl
mov ecx, esi
call fcn.0040d0d0
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x42a336
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004906bc
mov esp, ebp
pop ebp
ret
Function at 0x42f060
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b8ba9
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x4e54c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x74], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov dword [ebp - 0x78], esi
mov word [esi], ax
mov dword [ebp - 4], eax
lea ecx, [eax + 0x6c]
mov edx, esi
mov dword [ebp - 0x74], 1
call fcn.0040bef0
test al, al
jne 0x42f0d5
push str.oops____cannot_get_app_data_dir
push 2
call fcn.00427e30
add esp, 8
jmp 0x42f200
call fcn.0042ef60
mov edx, eax
mov dword [ebp - 0x2c], 7
xor eax, eax
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
cmp word [edx], ax
jne 0x42f0f9
xor ecx, ecx
jmp 0x42f10f
mov ecx, edx
lea edi, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42f100
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.00403740
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
push 6
xor eax, eax
mov dword [ebp - 0x14], 7
push str.Xiaomi
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00403740
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x70]
mov ecx, esi
push eax
call fcn.0040a820
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
push ecx
lea ecx, [ebp - 0x58]
push ecx
mov ecx, eax
call fcn.0040a820
mov byte [ebp - 4], 4
cmp esi, eax
je 0x42f17d
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.004033d0
cmp dword [ebp - 0x44], 8
jb 0x42f18e
push dword [ebp - 0x58]
call fcn.0048fa72
add esp, 4
xor eax, eax
mov dword [ebp - 0x44], 7
cmp dword [ebp - 0x5c], 8
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
jb 0x42f1b3
push dword [ebp - 0x70]
call fcn.0048fa72
add esp, 4
xor eax, eax
mov dword [ebp - 0x5c], 7
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
jb 0x42f1d8
push dword [ebp - 0x28]
call fcn.0048fa72
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov byte [ebp - 4], al
cmp dword [ebp - 0x2c], 8
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jb 0x42f200
push dword [ebp - 0x40]
call fcn.0048fa72
add esp, 4
cmp dword [esi + 0x14], 8
jb 0x42f20a
mov eax, dword [esi]
jmp 0x42f20c
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42f221
xor edx, edx
mov ecx, esi
call fcn.0040d7c0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004906bc
mov esp, ebp
pop ebp
ret
Function at 0x42f240
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b8bf1
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4e54c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], 0
call fcn.0042f060
push esi
push edi
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.0040a820
mov byte [ebp - 4], 0
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x2c], 1
jb 0x42f2b3
push dword [ebp - 0x28]
call fcn.0048fa72
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jb 0x42f2d1
mov eax, dword [edi]
jmp 0x42f2d3
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42f2e6
shr eax, 4
and al, 1
jne 0x42f2ef
xor edx, edx
mov ecx, edi
call fcn.0040d7c0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004906bc
mov esp, ebp
pop ebp
ret
Function at 0x430960
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x4e54c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
test esi, esi
jne 0x430994
push str.lpPath___NULL
lea edx, [esi + 0x18]
mov ecx, str.MiFwFileUtil.cpp
call fcn.00430760
add esp, 4
xor eax, eax
mov dword [ebx], 0
push 0x206
push eax
mov word [ebp - 0x418], ax
mov edi, esi
lea eax, [ebp - 0x416]
mov dword [ebx + 4], esi
push eax
mov dword [ebx + 8], 0
call fcn.00491b10
add esp, 0xc
test esi, esi
je 0x430a05
mov ecx, esi
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4309d0
sub ecx, edx
sar ecx, 1
cmp ecx, 2
jb 0x430a05
cmp word [esi + 2], 0x3a
je 0x430ad5
push 0x4d34cc
push esi
call fcn.004963ba
add esp, 8
cmp eax, esi
je 0x430ad5
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00491b10
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [ebp - 0x210]
call fcn.00431010
test eax, eax
jne 0x430a59
push str.MiFileUtil::IsAbsolutePath_szCurrentDirectory_
lea edx, [eax + 0x23]
mov ecx, str.MiFwFileUtil.cpp
call fcn.00430760
add esp, 4
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x430a62
sub ecx, edx
sar ecx, 1
lea ecx, [ecx*2 + 2]
cmp ecx, 0x208
jae 0x430bcc
xor eax, eax
mov word [ebp + ecx - 0x210], ax
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x430a97
sub ecx, edx
mov eax, 0x5c
sar ecx, 1
push esi
mov word [ebp + ecx*2 - 0x210], ax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x418]
push 0x4d34c0
push eax
call fcn.00431150
add esp, 0x10
lea edi, [ebp - 0x418]
cmp dword [ebp + 0xc], 0
je 0x430baa
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00491b10
push edi
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.00498f37
push 0x4d34bc
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.00492e07
add esp, 0x24
lea ecx, [ebp - 0x210]
call fcn.00431d00
mov edx, eax
mov ecx, eax
mov dword [ebx], edx
lea esi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x430b40
sub ecx, esi
sar ecx, 1
xor eax, eax
mov word [edx + ecx*2 - 2], ax
mov edx, dword [ebx]
mov ecx, edx
lea esi, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x430b60
sub ecx, esi
sar ecx, 1
je 0x430bb7
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x430b76
sub ecx, esi
sar ecx, 1
cmp word [edx + ecx*2 - 2], 0x5c
jne 0x430bb7
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x430b92
sub ecx, esi
sar ecx, 1
xor eax, eax
mov word [edx + ecx*2 - 2], ax
jmp 0x430bb7
cmp edi, esi
je 0x430bb7
mov ecx, edi
call fcn.00431d00
mov dword [ebx], eax
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004906bc
mov esp, ebp
pop ebp
ret 0xc
call fcn.0049249b
int3
Function at 0x430c20
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push ecx
push 0
push ecx
lea ecx, [ebp - 0xc]
call fcn.00430960
mov esi, eax
mov ecx, dword [esi + 8]
test ecx, ecx
jne 0x430c67
mov ecx, dword [esi]
test ecx, ecx
jne 0x430c67
mov ecx, dword [esi + 4]
call fcn.00430f80
mov ecx, dword [esi + 4]
test eax, eax
jne 0x430c57
mov dword [esi + 8], ecx
jmp 0x430c67
call fcn.00431d00
mov ecx, eax
mov dword [esi], eax
call fcn.00430f50
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], 0
test eax, eax
je 0x430c8e
push eax
call fcn.0049102d
add esp, 4
cmp ebx, 0xffffffff
je 0x430ca3
test bl, 0x10
jne 0x430ca3
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x430cb0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
call fcn.00430c20
test eax, eax
jne 0x430ccc
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
push ecx
push 0
push esi
lea ecx, [ebp - 0xc]
call fcn.00430960
mov esi, eax
mov ecx, dword [esi + 8]
test ecx, ecx
jne 0x430d0b
mov ecx, dword [esi]
test ecx, ecx
jne 0x430d0b
mov ecx, dword [esi + 4]
call fcn.00430f80
mov ecx, dword [esi + 4]
test eax, eax
jne 0x430cfb
mov dword [esi + 8], ecx
jmp 0x430d0b
call fcn.00431d00
mov ecx, eax
mov dword [esi], eax
call fcn.00430f50
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0xc]
mov esi, eax
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
test ecx, ecx
je 0x430d32
push ecx
call fcn.0049102d
add esp, 4
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x430d40
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push ecx
push 0
push ecx
lea ecx, [ebp - 0xc]
call fcn.00430960
mov esi, eax
mov ecx, dword [esi + 8]
test ecx, ecx
jne 0x430d87
mov ecx, dword [esi]
test ecx, ecx
jne 0x430d87
mov ecx, dword [esi + 4]
call fcn.00430f80
mov ecx, dword [esi + 4]
test eax, eax
jne 0x430d77
mov dword [esi + 8], ecx
jmp 0x430d87
call fcn.00431d00
mov ecx, eax
mov dword [esi], eax
call fcn.00430f50
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], 0
test eax, eax
je 0x430dae
push eax
call fcn.0049102d
add esp, 4
cmp ebx, 0xffffffff
je 0x430dc3
test bl, 0x10
je 0x430dc3
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x430dd0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, ecx
mov dword [ebp - 4], ebx
test ebx, ebx
je 0x430e9a
mov edx, ebx
lea ecx, [edx + 2]
lea esp, [esp]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x430df0
sub edx, ecx
sar edx, 1
je 0x430e9a
push esi
push edi
push ecx
push 0
push ebx
lea ecx, [ebp - 0x14]
call fcn.00430960
lea ecx, [ebp - 0x14]
call fcn.00430be0
mov edi, eax
mov esi, edi
cmp word [edi], 0
je 0x430e64
mov ebx, 0x2f
lea ebx, [ebx]
movzx eax, word [esi]
cmp eax, 0x5c
je 0x430e3d
cmp eax, 0x2f
jne 0x430e58
xor eax, eax
mov ecx, edi
mov word [esi], ax
call fcn.00430d40
test eax, eax
jne 0x430e55
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov word [esi], bx
add esi, 2
cmp word [esi], 0
jne 0x430e30
mov ebx, dword [ebp - 4]
mov ecx, ebx
call fcn.00430d40
test eax, eax
je 0x430e76
mov esi, 1
jmp 0x430e81
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x430e91
push ecx
call fcn.0049102d
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x431360
Capabilities:
Create process memory minidump

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
push 0
push 0x80
push 2
push 0
push 2
push 0xc0000000
push edx
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x4313dd
cmp esi, 0xffffffff
je 0x4313dd
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x14], eax
xor ecx, ecx
lea eax, [ebp - 8]
mov dword [ebp - 0x10], edi
push eax
push 0
test edi, edi
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 0x431310
cmove eax, ecx
mov dword [ebp - 4], 0
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.dbghelp.dll_MiniDumpWriteDump]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x432520
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x432535
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
jmp 0x432540
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x432540
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x432570
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x432589
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x432595
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x432590
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x432bf0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b9216
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x4e54c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
push 0x60
push 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x432c9c
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x432c9c
call fcn.00432020
mov esi, eax
jmp 0x432d8c
push dword [ebp - 0x420]
push dword [ebp - 0x41c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x432cbf
call fcn.00432020
jmp 0x432d7f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x41c], ebx
test ebx, ebx
jne 0x432cdd
call fcn.00432020
jmp 0x432d7f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x420], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x432cfe
mov esi, 0x8007000e
jmp 0x432d81
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.00434c50
jmp 0x432d28
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
jne 0x432d3f
mov esi, 0x8007000e
jmp 0x432d81
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x432d5f
call fcn.00432020
jmp 0x432d7f
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.00433a00
mov esi, eax
test edi, edi
je 0x432d8c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x432db0
lea ecx, [ebp - 0x418]
call fcn.00434d30
jmp 0x432db0
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 - 0x14]
xor ecx, ebp
call fcn.004906bc
mov esp, ebp
pop ebp
ret 0x10