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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x1014b48]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x1014b60]
je 0x100d649
inc eax
cmp eax, 0x12
jb 0x100d63a
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x1014b60]
mov dword [ebp - 0x110], esi
jne 0x100d7f4
mov eax, dword [0x1017158]
cmp eax, 1
je 0x100d7c2
test eax, eax
jne 0x100d67f
cmp dword [0x1014b50], 1
je 0x100d7c2
cmp ecx, 0xfc
je 0x100d7f4
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
mov byte [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100d6ba
push 5
pop ecx
mov esi, 0x1001f4c
lea edi, [ebp - 0x10c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebx, [ebp - 0x10c]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100d6c5
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x100d6fd
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100d6dd
sub eax, edx
push 3
lea ebx, [ebp + eax - 0x147]
push 0x1001f48
push ebx
call fcn.010107e0
add esp, 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100d702
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x110]
mov eax, dword [eax + 0x1014b64]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100d71c
sub eax, esi
lea eax, [eax + ecx + 0x1c]
add eax, 3
and eax, 0xfffffffc
call fcn.0100e350
mov edx, esp
push 6
pop ecx
mov esi, 0x1001f2c
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov eax, ebx
movsw word es:[edi], word [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100d748
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100d754
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100d76d
mov eax, dword [ebp - 0x110]
mov esi, 0x1001f28
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0x1014b64]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100d78b
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100d797
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x1001f00
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.010106d6
add esp, 0xc
jmp 0x100d7f4
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x100d7f4
mov esi, dword [esi + 0x1014b64]
mov ecx, esi
lea edx, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x100d7d9
push 0
sub ecx, edx
lea edx, [ebp - 0x114]
push edx
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x120]
mov ecx, dword [ebp - 4]
call fcn.0100c759
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100dd26
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10172b0]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push edi
xor ebx, ebx
xor edi, edi
cmp eax, ebx
jne 0x100dd72
call esi
mov edi, eax
cmp edi, ebx
je 0x100dd58
mov dword [0x10172b0], 1
jmp 0x100dd77
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x100dd6d
push 2
pop eax
mov dword [0x10172b0], eax
jmp 0x100dd72
mov eax, dword [0x10172b0]
cmp eax, 1
jne 0x100ddef
cmp edi, ebx
jne 0x100dd83
call esi
mov edi, eax
cmp edi, ebx
je 0x100ddf8
cmp word [edi], bx
mov eax, edi
je 0x100dd98
inc eax
inc eax
cmp word [eax], bx
jne 0x100dd8a
inc eax
inc eax
cmp word [eax], bx
jne 0x100dd8a
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, edi
push ebx
sar eax, 1
inc eax
push eax
push edi
push ebx
push ebx
mov dword [ebp - 0xc], eax
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x100dde6
push eax
call fcn.0100d27b
cmp eax, ebx
pop ecx
mov dword [ebp - 4], eax
je 0x100dde6
push ebx
push ebx
push dword [ebp - 8]
push eax
push dword [ebp - 0xc]
push edi
push ebx
push ebx
call esi
test eax, eax
jne 0x100dde3
push dword [ebp - 4]
call fcn.0100d152
pop ecx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x100de47
cmp eax, 2
je 0x100ddfc
cmp eax, ebx
je 0x100ddfc
xor eax, eax
jmp 0x100de49
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x100ddf8
cmp byte [esi], bl
je 0x100de19
inc eax
cmp byte [eax], bl
jne 0x100de0f
inc eax
cmp byte [eax], bl
jne 0x100de0f
sub eax, esi
inc eax
mov edi, eax
push edi
call fcn.0100d27b
cmp eax, ebx
pop ecx
je 0x100de40
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 4]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
mov edi, edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [0x1014c9c]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x100e0f8
push 0x88
push 1
call fcn.010109e1
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x100e0f0
push esi
push dword [0x1014c9c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x100e0f0
push esi
call fcn.0100e079
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x100e0f8
push 0x10
call fcn.0100c871
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, esi
pop esi
ret
Function at 0x100e109
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
call fcn.0100fcb7
test eax, eax
je 0x100e122
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x1014c9c], eax
jne 0x100e12a
call fcn.0100e056
xor eax, eax
ret
push esi
push 0x88
push 1
call fcn.010109e1
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x100e16a
push esi
push dword [0x1014c9c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x100e16a
push esi
call fcn.0100e079
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
xor eax, eax
inc eax
pop esi
ret
call fcn.0100e056
xor eax, eax
pop esi
ret

Function at 0x10106d6
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x1017420], ebx
push esi
push edi
jne 0x1010758
push 0x1002628
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1010793
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100261c
push edi
call esi
test eax, eax
mov dword [0x1017420], eax
je 0x1010793
push 0x100260c
push edi
call esi
push 0x10025f8
push edi
mov dword [0x1017424], eax
call esi
cmp dword [0x1017160], 2
mov dword [0x1017428], eax
jne 0x1010758
push 0x10025dc
push edi
call esi
test eax, eax
mov dword [0x1017430], eax
je 0x1010758
push 0x10025c4
push edi
call esi
mov dword [0x101742c], eax
mov eax, dword [0x101742c]
test eax, eax
je 0x101079d
call eax
test eax, eax
je 0x1010784
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x1017430]
test eax, eax
je 0x1010784
test byte [ebp - 8], 1
jne 0x101079d
cmp dword [0x101716c], 4
jb 0x1010797
or byte [ebp + 0x12], 0x20
jmp 0x10107bc
xor eax, eax
jmp 0x10107cc
or byte [ebp + 0x12], 4
jmp 0x10107bc
mov eax, dword [0x1017424]
test eax, eax
je 0x10107bc
call eax
mov ebx, eax
test ebx, ebx
je 0x10107bc
mov eax, dword [0x1017428]
test eax, eax
je 0x10107bc
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x1017420]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1010be2
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x1010c13
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x1010c1a
cmp ebx, dword [ebp + 8]
jae 0x1010c1a
xor eax, eax
jmp 0x1010e0a
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x1010c2b
xor eax, eax
inc eax
jmp 0x1010e09
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x1010c41
cmp ecx, edx
jae 0x1010d86
cmp dword [eax + 4], 0
je 0x1010c4a
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x1010c32
cmp dword [ebp + 8], 0
je 0x1010c6c
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x1010d86
cmp eax, esi
jae 0x1010d86
mov eax, dword [0x1017438]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x1010c91
cmp dword [esi*4 + 0x1017440], edi
je 0x1010d8a
inc esi
cmp esi, eax
jl 0x1010c7f
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1010e06
cmp dword [ebp - 8], 0x1000000
jne 0x1010e06
test byte [ebp - 0xc], 0xcc
je 0x1010d0f
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x1010e06
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1010e06
cmp word [eax + 0x18], 0x10b
jne 0x1010e06
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x1010e06
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x1010d0f
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x1010d0f
test byte [ecx + 0x27], 0x80
jne 0x1010d86
push 1
push 0x1017480
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x1010c23
mov ecx, dword [0x1017438]
test ecx, ecx
mov edx, ecx
jle 0x1010d43
lea eax, [ecx*4 + 0x101743c]
cmp dword [eax], edi
je 0x1010d43
dec edx
sub eax, 4
test edx, edx
jg 0x1010d37
test edx, edx
jne 0x1010d74
push 0xf
pop ebx
cmp ecx, ebx
jg 0x1010d50
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x1010d68
lea eax, [edx*4 + 0x1017440]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x1010d56
cmp ecx, 0x10
jge 0x1010d74
inc ecx
mov dword [0x1017438], ecx
push 0
push 0x1017480
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x1010c23
xor eax, eax
jmp 0x1010e09
test esi, esi
jle 0x1010c23
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x1017480
call ebx
test eax, eax
jne 0x1010c23
cmp dword [esi*4 + 0x1017440], edi
je 0x1010de0
mov eax, dword [0x1017438]
lea esi, [eax - 1]
test esi, esi
jl 0x1010dce
cmp dword [esi*4 + 0x1017440], edi
je 0x1010dca
dec esi
jns 0x1010dbe
test esi, esi
jge 0x1010dde
cmp eax, 0x10
jge 0x1010dd9
inc eax
mov dword [0x1017438], eax
lea esi, [eax - 1]
jmp 0x1010de0
je 0x1010df8
xor ecx, ecx
test esi, esi
jl 0x1010df8
lea eax, [ecx*4 + 0x1017440]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x1010de6
push 0
push 0x1017480
call ebx
jmp 0x1010c23
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1010f3f
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x1014b48]
xor ecx, ecx
cmp dword [ebp + 0x10], ecx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0x420], edi
mov dword [ebp - 0x418], ecx
mov dword [ebp - 0x41c], ecx
jne 0x1010f76
xor eax, eax
jmp 0x1011129
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x1018ae0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x1010fab
push 2
push ecx
push ecx
push dword [ebp + 8]
call fcn.01012198
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x1011079
cmp dword [ebp + 0x10], ecx
mov dword [ebp - 0x414], edi
mov dword [ebp - 0x40c], ecx
jbe 0x10110f7
jmp 0x1010fd2
xor ecx, ecx
mov dword [ebp - 0x410], ecx
mov ecx, dword [ebp - 0x414]
sub ecx, dword [ebp - 0x420]
lea eax, [ebp - 0x408]
cmp ecx, dword [ebp + 0x10]
jae 0x1011028
mov edx, dword [ebp - 0x414]
inc dword [ebp - 0x414]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x1011013
inc dword [ebp - 0x41c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x410]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x410]
cmp dword [ebp - 0x410], 0x400
jl 0x1010fea
mov edi, eax
lea eax, [ebp - 0x408]
sub edi, eax
push 0
lea eax, [ebp - 0x424]
push eax
push edi
lea eax, [ebp - 0x408]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10110a6
mov eax, dword [ebp - 0x424]
add dword [ebp - 0x418], eax
cmp eax, edi
jl 0x10110b2
mov eax, dword [ebp - 0x414]
sub eax, dword [ebp - 0x420]
cmp eax, dword [ebp + 0x10]
jb 0x1010fd0
jmp 0x10110b2
push ecx
lea ecx, [ebp - 0x424]
push ecx
push dword [ebp + 0x10]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10110a6
mov eax, dword [ebp - 0x424]
and dword [ebp - 0x40c], 0
mov dword [ebp - 0x418], eax
jmp 0x10110b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp - 0x418]
test eax, eax
jne 0x1011121
cmp dword [ebp - 0x40c], eax
je 0x10110f1
push 5
pop esi
cmp dword [ebp - 0x40c], esi
jne 0x10110e3
call fcn.0100ef2f
mov dword [eax], 9
call fcn.0100ef3d
mov dword [eax], esi
jmp 0x101111c
push dword [ebp - 0x40c]
call fcn.0100ef4b
pop ecx
jmp 0x101111c
mov edi, dword [ebp - 0x420]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x1011109
cmp byte [edi], 0x1a
jne 0x1011109
xor eax, eax
jmp 0x1011127
call fcn.0100ef2f
mov dword [eax], 0x1c
call fcn.0100ef3d
and dword [eax], 0
or eax, 0xffffffff
jmp 0x1011127
sub eax, dword [ebp - 0x41c]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
call fcn.0100c759
leave
ret
Function at 0x1011c58
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 4
pop eax
call fcn.0100e350
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1011cbe
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x1017160]
mov esi, dword [ebp - 0x40]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
lea edx, [esi - 1]
and ecx, 0x103
not edx
and edx, ebx
inc ecx
sub edx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0xfffffff1
add eax, 0x11
imul eax, esi
add eax, edi
cmp edx, eax
jae 0x1011cc2
xor eax, eax
jmp 0x1011ccf
lea eax, [ebp - 4]
push eax
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x50]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1012a89
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [0x1014b48]
and dword [ebp - 0xa8], 0
cmp dword [0x10156c8], 0xfffffffe
mov dword [ebp - 4], eax
mov dword [ebp - 0xb0], 0xc
jne 0x1012bac
and dword [0x10156c8], 0
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1012bac
cmp dword [ebp - 0x94], 1
jne 0x1012bac
cmp dword [ebp - 0xa0], 4
jne 0x1012bac
cmp dword [ebp - 0x9c], 0xa
jae 0x1012bac
push 0x4a
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x1012bac
lea eax, [ebp - 0xac]
push eax
push 0x20019
push 0
push 0x100288c
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1012bac
push edi
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xb4]
push eax
push 0
push 0x1001443
push dword [ebp - 0xac]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0xac]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x1012bac
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.01012965
test eax, eax
je 0x1012bac
and dword [ebp - 0xa8], 0x3ff
cmp dword [ebp - 0xa8], 1
je 0x1012ba2
cmp dword [ebp - 0xa8], 0xd
jne 0x1012bac
mov dword [0x10156c8], 1
mov ecx, dword [ebp - 4]
mov eax, dword [0x10156c8]
call fcn.0100c759
leave
ret
Function at 0x4011b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push 0x20006
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4011fe
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push ecx
push 3
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4011fe
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4011fe
pop ebp
ret
and eax, 0xffff
or eax, 0x80040000
pop ebp
ret
Function at 0x401db0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
test esi, esi
mov dword [ebp - 4], 0
je 0x401e1a
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x401e1a
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
lea eax, [ebp - 4]
mov byte [esi], 0
push eax
push 0x20019
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401e1a
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 4]
lea eax, [ebp + 0xc]
push edi
push eax
push esi
push 0
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x401e1a
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x402350
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
push esi
lea eax, [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x18]
xor esi, esi
push eax
push 0x20019
push esi
push ecx
push edx
mov dword [ebp - 4], esi
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4023f5
mov ebx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
lea eax, [ebp - 8]
lea ecx, [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x18]
push ebx
push ecx
push esi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4023de
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x4023d7
cmp eax, 2
jne 0x4023de
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.004121f0
mov esi, esp
test esi, esi
je 0x4023de
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x4023de
cmp eax, edi
jae 0x4023de
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 4], 1
mov ecx, dword [ebp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea esp, [ebp - 0x14]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403fc0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push esi
mov esi, ecx
push eax
push 0
push esi
push 0x4046e0
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0x1088], eax
test eax, eax
jne 0x404002
push 0x4e33
push esi
call fcn.00401540
add esp, 8
mov dword [esi + 0xa0c], 0
mov eax, dword [esi + 0xa0c]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x404600
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x1c9c]
test edi, edi
je 0x404619
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x108c]
test eax, eax
jne 0x404656
mov eax, dword [esi + 0x1084]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x404656
lea ecx, [ebp - 4]
push ecx
push 0
push esi
push 0x404670
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0x108c], eax
test edi, edi
je 0x404661
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4047b0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, ecx
push edi
mov ecx, 0x114
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
push 0x103
push edx
shl ecx, 4
push esi
mov dword [esi + 0x434], ecx
mov word [esi + 0x206], 0
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0xc
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x404820
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
push edi
push 0x8000080
push 3
push edi
mov esi, ecx
push 1
push SQLAllocStmt
push esi
call dword [sym.imp.SQLUNIRL.dll__CreateFile_28]
cmp eax, 0xffffffff
mov dword [esi + 0x208], eax
jne 0x40485f
mov ecx, esi
call fcn.00404990
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [ebp - 8]
push 1
push edi
push edi
push edx
mov ebx, eax
call fcn.00412240
xor ecx, ecx
add eax, ebx
adc edx, ecx
mov dword [esi + 0x420], eax
mov eax, edx
mov dword [esi + 0x438], edi
mov dword [esi + 0x440], edi
cmp eax, edi
mov dword [esi + 0x424], edx
mov dword [esi + 0x43c], edi
mov dword [esi + 0x444], edi
mov dword [esi + 0x448], edi
mov ebx, 2
ja 0x4048bc
cmp dword [esi + 0x420], edi
jbe 0x4048f3
mov edx, dword [esi + 0x208]
push edi
push edi
push edi
push ebx
push edi
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [esi + 0x418], eax
je 0x4048f3
mov ecx, esi
call fcn.00404be0
test eax, eax
jne 0x4048f3
mov ecx, esi
call fcn.00404990
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x208]
lea eax, [ebp - 0xc]
push edi
push eax
lea ecx, [ebp - 2]
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40491e
mov ecx, esi
call fcn.00404990
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0xc], ebx
jne 0x404968
mov ax, word [ebp - 2]
cmp al, 0xff
jne 0x404968
cmp ah, 0xfe
jne 0x404968
mov ecx, dword [esi + 0x440]
mov dword [esi + 0x414], 1
add ecx, ebx
mov dword [esi + 0x440], ecx
mov eax, dword [esi + 0x444]
adc eax, edi
pop edi
mov dword [esi + 0x444], eax
mov eax, 1
mov dword [esi + 0x410], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x208]
push edi
push edi
push edi
push eax
mov dword [esi + 0x414], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, 1
pop edi
mov dword [esi + 0x410], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret