joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4023c6
Capabilities:
Generate random numbers via winapi

Disassembly:
mov eax, 0x41019b
call fcn.0040f350
sub esp, 0x28
and dword [ebp - 0x10], 0
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0x14]
lea esi, [ebp - 0x34]
call fcn.0040281d
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [ebp + 0x14], edi
jbe 0x40243b
lea eax, [ebp + 0x10]
push eax
mov eax, dword [ebp + 8]
push 4
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x402467
cmp dword [ebx + 0x14], 8
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x10], eax
jb 0x402417
mov esi, dword [ebx]
jmp 0x402419
mov esi, ebx
cmp dword [ebp - 0x20], 8
mov ecx, dword [ebp - 0x34]
jae 0x402425
lea ecx, [ebp - 0x34]
mov eax, dword [ebp + 0x10]
xor edx, edx
div dword [ebp - 0x10]
mov ax, word [esi + edx*2]
mov word [ecx + edi*2], ax
inc edi
cmp edi, dword [ebp + 0x14]
jb 0x4023f2
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x34]
push eax
call fcn.00402968
push 1
xor edi, edi
lea esi, [ebp - 0x34]
call fcn.00402d33
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
push 0x414f50
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], vtable.xwnmqigmmwptq.0
call fcn.0040ab7e
int3

Function at 0x402f9e
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov eax, 0x41012f
call fcn.0040f350
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
xor eax, eax
push edi
mov dword [ebx], eax
mov dword [ebp - 4], eax
mov dword [ebx + 4], eax
mov byte [ebp - 4], 1
cmp dword [ebx], eax
jne 0x402fff
push 0xf0000000
push 0x18
push eax
push eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x402fe2
call fcn.00405a2f
jmp 0x402fe5
lea eax, [ebp - 0x10]
mov edi, eax
mov esi, ebx
call fcn.00402f71
cmp dword [ebp - 0x10], 0
je 0x402fff
push 0
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push dword [ebp + 0x10]
lea esi, [ebx + 4]
push dword [ebp + 0xc]
push ebx
call fcn.00401361
lea ecx, [ebx + 8]
mov eax, 0x30303030
mov edi, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [0x418d20]
push 0x10
pop edx
mov dword [ebp + 0x10], eax
cmp eax, edx
mov dword [ebp + 8], edx
lea eax, [ebp + 8]
ja 0x403034
lea eax, [ebp + 0x10]
cmp dword [0x418d24], edx
mov edx, dword [0x418d10]
jae 0x403047
mov edx, 0x418d10
push dword [eax]
push edx
push ecx
call fcn.0040e7d0
mov ecx, dword [ebp - 0xc]
add esp, 0xc
pop edi
pop esi
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x404ce7
Capabilities:
Set registry value

Disassembly:
mov eax, 0x4101f9
call fcn.0040f350
sub esp, 0x24
and dword [ebp - 0x20], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov eax, edi
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x404d10
sub eax, ecx
mov esi, eax
push edi
lea eax, [ebp - 0x30]
call fcn.00405579
test al, al
lea eax, [ebp - 0x30]
je 0x404d37
push esi
sub edi, eax
push edi
push eax
call fcn.00405625
jmp 0x404d6d
push 0
push esi
call fcn.004057d7
test al, al
je 0x404d6d
cmp dword [ebp - 0x1c], 0x10
mov eax, dword [ebp - 0x30]
jae 0x404d4f
lea eax, [ebp - 0x30]
push esi
push edi
push eax
call fcn.0040e7d0
mov eax, dword [ebp - 0x30]
add esp, 0xc
cmp dword [ebp - 0x1c], 0x10
mov dword [ebp - 0x20], esi
jae 0x404d69
lea eax, [ebp - 0x30]
mov byte [eax + esi], 0
and dword [ebp - 4], 0
cmp dword [ebx + 0x14], 0x10
mov eax, dword [ebx + 0x10]
jb 0x404d7e
mov edx, dword [ebx]
jmp 0x404d80
mov edx, ebx
cmp dword [ebp - 0x1c], 0x10
mov ecx, dword [ebp - 0x30]
jae 0x404d8c
lea ecx, [ebp - 0x30]
inc eax
push eax
mov eax, dword [ebp + 8]
push edx
push 1
push 0
push ecx
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x404dbb
mov dword [ebp - 0x10], eax
push 0x414fbc
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], vtable.livsx.0
call fcn.0040ab7e
push 1
xor edi, edi
lea esi, [ebp - 0x30]
call fcn.004059f4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x404dd8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc04
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc04]
push eax
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], 0xc00
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x404e59
cmp dword [ebp + 0xc], 1
je 0x404e22
cmp dword [ebp + 0xc], 2
je 0x404e22
cmp dword [ebp + 0xc], 7
jne 0x404e31
mov eax, dword [ebp - 4]
cmp byte [ebp + eax - 0xc05], bl
jne 0x404e31
dec dword [ebp - 4]
mov eax, dword [ebp - 4]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
push dword [ebp + 0xc]
lea eax, [ebp + eax - 0xc04]
push eax
push esi
lea ecx, [ebp - 0xc04]
call fcn.004078d5
jmp 0x404e72
push 0xffffffffffffffff
push ebx
push dword [ebp + 0x10]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov eax, esi
mov byte [esi], bl
call fcn.00405625
mov eax, esi
pop ebx
leave
ret 0xc
Function at 0x404ed2
Capabilities:
Set registry value

Disassembly:
mov eax, 0x4102ce
call fcn.0040f350
sub esp, 0x24
push esi
push edi
push 0x413ca0
lea eax, [ebp - 0x30]
mov esi, ecx
call fcn.00402e75
and dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x404eff
mov esi, dword [esi]
cmp dword [ebp - 0x1c], 8
mov ecx, dword [ebp - 0x30]
jae 0x404f0b
lea ecx, [ebp - 0x30]
lea eax, [eax + eax + 2]
push eax
mov eax, dword [ebp + 8]
push esi
push 1
push 0
push ecx
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x404f3d
mov dword [ebp - 0x10], eax
push 0x414fbc
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], vtable.livsx.0
call fcn.0040ab7e
push 1
xor edi, edi
lea esi, [ebp - 0x30]
call fcn.00402d33
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x405ecd
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
push 0x20
lea ecx, [ebp - 0x24]
push ecx
movzx eax, ax
push 0x59
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
cmp eax, ebx
jg 0x405f4e
push edi
mov edi, 0x413cc0
push edi
mov eax, esi
call fcn.00405579
test al, al
je 0x405f2d
cmp dword [esi + 0x14], 0x10
jb 0x405f1d
mov eax, dword [esi]
jmp 0x405f1f
mov eax, esi
push ebx
sub edi, eax
push edi
push esi
mov eax, esi
call fcn.00405625
jmp 0x405f4b
push ebx
push ebx
mov eax, esi
call fcn.004057d7
test al, al
je 0x405f4b
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], ebx
jb 0x405f47
mov eax, dword [esi]
jmp 0x405f49
mov eax, esi
mov byte [eax], bl
pop edi
jmp 0x405f5f
push dword [ebp - 4]
lea eax, [ebp + eax - 0x25]
push eax
push esi
lea ecx, [ebp - 0x24]
call fcn.004078d5
mov eax, esi
pop ebx
leave
ret

Function at 0x40611c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
lea eax, [ebp - 0x50]
push ebx
push eax
mov dword [ebp - 0x54], 0x44
call fcn.0040b160
xor eax, eax
xor edi, edi
inc edi
add esp, 0xc
cmp dword [ebp + 0x1c], 8
mov word [ebp - 0x24], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], edi
jae 0x406155
lea eax, [ebp + 8]
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x54]
push ecx
push ebx
push ebx
push 0x50
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x406182
push edi
xor edi, edi
lea esi, [ebp + 8]
call fcn.00402d33
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
mov bl, 1
jmp 0x406170
Function at 0x406196
Capabilities:
Delete file
Move file
Set file attributes
Terminate process

Disassembly:
mov eax, 0x4105a5
call fcn.0040f350
sub esp, 0x58
push ebx
push esi
push edi
lea esi, [ebp - 0x2c]
call fcn.00405963
and dword [ebp - 4], 0
lea esi, [ebp - 0x64]
call fcn.00405252
push 8
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x2c]
pop esi
cmp dword [ebp - 0x18], esi
jae 0x4061cc
lea eax, [ebp - 0x2c]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x64]
lea ecx, [ebp - 0x2c]
call fcn.00405cb2
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
test al, al
jne 0x406244
mov eax, dword [ebp - 0x64]
cmp dword [ebp - 0x50], esi
jae 0x4061f8
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.004064c8
pop ecx
pop ecx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x48]
cmp dword [ebp - 0x34], esi
jae 0x406213
lea ecx, [ebp - 0x48]
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x40621e
lea eax, [ebp - 0x2c]
push 9
push ecx
push eax
call ebx
test eax, eax
je 0x406234
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x2c]
call fcn.0040290a
push 1
xor edi, edi
lea esi, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.00402d33
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x406250
lea eax, [ebp - 0x2c]
push 4
push 0
push eax
call ebx
lea eax, [ebp - 0x48]
push eax
lea edi, [ebp - 0x2c]
call fcn.00406466
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x10], esp
push 0x22
push ecx
mov byte [ebp - 4], 3
call fcn.004023a5
pop ecx
pop ecx
call fcn.0040611c
add esp, 0x1c
push 1
xor edi, edi
lea esi, [ebp - 0x48]
call fcn.00402d33
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x406530
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor ecx, ecx
push ecx
push ecx
mov dword [esi], ecx
mov eax, dword [eax]
push 0x8003
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x40656c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push 0x414f50
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], vtable.xwnmqigmmwptq.0
call fcn.0040ab7e
mov eax, esi
leave
ret
Function at 0x40667e
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push edi
push 0x104
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointA]
test eax, eax
jne 0x4066c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push 0x414fbc
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], vtable.livsx.0
call fcn.0040ab7e
lea eax, [ebp - 0x10c]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4066da
sub eax, ecx
mov edi, eax
lea eax, [ebp - 0x10c]
push eax
mov eax, esi
call fcn.00405579
test al, al
je 0x406717
cmp dword [esi + 0x14], 0x10
jb 0x406701
mov eax, dword [esi]
jmp 0x406703
mov eax, esi
push edi
lea ecx, [ebp - 0x10c]
sub ecx, eax
push ecx
push esi
mov eax, esi
call fcn.00405625
jmp 0x406753
push ebx
push edi
mov eax, esi
call fcn.004057d7
test al, al
je 0x406753
cmp dword [esi + 0x14], 0x10
jb 0x40672e
mov eax, dword [esi]
jmp 0x406730
mov eax, esi
push edi
lea ecx, [ebp - 0x10c]
push ecx
push eax
call fcn.0040e7d0
add esp, 0xc
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], edi
jb 0x40674e
mov eax, dword [esi]
jmp 0x406750
mov eax, esi
mov byte [eax + edi], bl
pop edi
mov eax, esi
pop ebx
leave
ret
Function at 0x407abe
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
or dword [esi + 0xc], 0xffffffff
lea eax, [esi + 0x3c]
mov dword [esi + 4], eax
lea eax, [esi + 0x5c]
mov dword [esi + 0x10], eax
xor eax, eax
mov word [esi + 0x18], ax
lea eax, [esi + 0x15c]
mov dword [esi + 0x1c], eax
mov eax, 0x80
mov dword [esi + 0x20], eax
mov dword [esi + 0x28], eax
lea eax, [esi + 0x25c]
push esi
mov dword [esi + 0x2c], eax
xor eax, eax
push eax
push eax
push dword [ebp + 8]
lea ecx, [esi + 0x1dc]
mov dword [esi], 0x3c
mov dword [esi + 8], 0x20
mov dword [esi + 0x14], 0x100
mov dword [esi + 0x24], ecx
mov dword [esi + 0x30], 0x800
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
jne 0x407b50
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push 0x414ff4
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], vtable.cuovxnupr.0
call fcn.0040ab7e
mov eax, esi
leave
ret 4
Function at 0x408015
Capabilities:
Connect network resource
Enumerate network shares

Disassembly:
mov eax, 0x41033a
call fcn.0040f350
sub esp, 0x844
push ebx
push esi
push edi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
xor edi, edi
push edi
xor esi, esi
inc esi
push esi
push dword [ebp + 0xc]
call dword [sym.imp.MPR.dll_WNetOpenEnumW]
test eax, eax
jne 0x408194
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x850]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 0x800
call dword [sym.imp.MPR.dll_WNetEnumResourceW]
test eax, eax
jne 0x40818b
mov ebx, dword [ebp + 8]
test byte [ebp - 0x844], 1
je 0x408095
push edi
push edi
push edi
lea eax, [ebp - 0x850]
push eax
call dword [sym.imp.MPR.dll_WNetAddConnection2W]
test eax, eax
jne 0x408161
test byte [ebp - 0x844], 2
je 0x4080b6
lea eax, [ebp - 0x850]
push eax
push dword [ebp + 0xc]
push ebx
call fcn.00408015
add esp, 0xc
jmp 0x408161
cmp dword [ebp - 0x84c], esi
jne 0x408161
cmp dword [ebp - 0x83c], edi
je 0x408161
mov edi, dword [ebp - 0x840]
test edi, edi
jne 0x4080dd
mov edi, 0x4147a8
push dword [ebp - 0x83c]
lea eax, [ebp - 0x50]
call fcn.00402e75
and dword [ebp - 4], 0
push edi
lea eax, [ebp - 0x34]
call fcn.00402e75
mov dword [ebp - 4], esi
mov ecx, dword [ebx + 4]
lea eax, [ebp - 0x50]
cmp eax, ecx
jae 0x40812a
mov edx, dword [ebx]
cmp edx, eax
ja 0x40812a
sub eax, edx
push 0x38
cdq
pop edi
idiv edi
mov edi, eax
cmp ecx, dword [ebx + 8]
jne 0x408121
mov ecx, ebx
call fcn.004087f6
mov ecx, edi
imul ecx, ecx, 0x38
add ecx, dword [ebx]
jmp 0x408139
cmp ecx, dword [ebx + 8]
jne 0x408136
mov ecx, ebx
call fcn.004087f6
lea ecx, [ebp - 0x50]
mov edx, dword [ebx + 4]
call fcn.00408c2c
add dword [ebx + 4], 0x38
or dword [ebp - 4], 0xffffffff
push esi
xor edi, edi
lea esi, [ebp - 0x34]
call fcn.00402d33
push 1
lea esi, [ebp - 0x50]
call fcn.00402d33
xor esi, esi
inc esi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x850]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 0x800
call dword [sym.imp.MPR.dll_WNetEnumResourceW]
test eax, eax
je 0x408074
push dword [ebp - 0x10]
call dword [sym.imp.MPR.dll_WNetCloseEnum]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x40d7a7
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x418af0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040c3ed
and dword [ebp - 0x14], 0
cmp dword [0x419718], 0
mov dword [ebp - 0x18], eax
jne 0x40d85a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40d902
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40d902
mov esi, dword [section..data]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x419718], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x41971c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x419720], eax
call edi
push eax
call esi
mov dword [0x419728], eax
test eax, eax
je 0x40d85a
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x419724], eax
mov eax, dword [0x419724]
mov ecx, dword [ebp - 0x18]
mov esi, dword [0x418004]
cmp eax, ecx
je 0x40d8b3
cmp dword [0x419728], ecx
je 0x40d8b3
push eax
call esi
push dword [0x419728]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40d8b3
test ebx, ebx
je 0x40d8b3
call edi
test eax, eax
je 0x40d8aa
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40d8aa
test byte [ebp - 8], 1
jne 0x40d8b3
or dword [ebp + 0x10], 0x200000
jmp 0x40d8e6
mov eax, dword [0x41971c]
cmp eax, dword [ebp - 0x18]
je 0x40d8e6
push eax
call esi
test eax, eax
je 0x40d8e6
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40d8e6
mov eax, dword [0x419720]
cmp eax, dword [ebp - 0x18]
je 0x40d8e6
push eax
call esi
test eax, eax
je 0x40d8e6
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x419718]
call esi
test eax, eax
je 0x40d902
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40d904
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040db12
leave
ret

Function at 0x40db12
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x418af0]
jne 0x40db1c
repz ret
jmp fcn.0040ed47
Function at 0x100018c8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x1000199d
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x1000199d
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi + 0x7c], 0
je 0x1000199d
mov eax, dword [eax + edi + 0x78]
add eax, edi
mov ecx, ebx
mov esi, dword [eax + 0x1c]
sub ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
add esi, edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], edx
cmp ecx, edx
ja 0x10001923
mov eax, dword [esi + ecx*4]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
mov edx, dword [eax + 0x20]
mov ecx, dword [eax + 0x24]
mov ebp, dword [eax + 0x18]
add edx, edi
add ecx, edi
xor esi, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], ecx
test ebp, ebp
je 0x1000199d
mov eax, dword [edx + esi*4]
add eax, edi
mov ecx, ebx
lea ecx, [ecx]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x10001968
test dl, dl
je 0x10001964
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x10001968
add ecx, 2
add eax, 2
test dl, dl
jne 0x10001948
xor eax, eax
jmp 0x1000196d
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1000197f
mov eax, dword [esp + 0x1c]
movzx eax, word [eax + esi*2]
cmp eax, dword [esp + 0x20]
jbe 0x1000198a
inc esi
cmp esi, ebp
jae 0x1000199d
mov edx, dword [esp + 0x10]
jmp 0x1000193e
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + eax*4]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 8

Function at 0x10001c01
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x10001c0c
xor eax, eax
ret
push esi
mov esi, dword [esp + 0xc]
cmp esi, 0x40
jb 0x10001c20
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x10001c24
xor eax, eax
pop esi
ret
push edi
mov edi, dword [ecx + 0x3c]
lea eax, [edi + 0xf8]
cmp esi, eax
jb 0x10001c5d
cmp dword [edi + ecx], 0x4550
jne 0x10001c5d
mov eax, 0x14c
cmp word [edi + ecx + 4], ax
jne 0x10001c5d
test byte [edi + ecx + 0x16], 2
je 0x10001c5d
movzx eax, word [edi + ecx + 0x14]
mov edx, 0xe0
cmp ax, dx
jae 0x10001c62
pop edi
xor eax, eax
pop esi
ret
push ebx
add eax, 0xffffff20
movzx ebx, ax
add ebx, edi
movzx edi, word [edi + ecx + 6]
add ebx, ecx
xor edx, edx
test edi, edi
jle 0x10001c9e
xor eax, eax
jmp 0x10001c81
lea eax, [eax + eax*4]
mov ecx, dword [ebx + eax*8 + 0x10c]
add ecx, dword [ebx + eax*8 + 0x108]
cmp ecx, esi
ja 0x10001ca7
inc edx
movzx eax, dx
cmp eax, edi
jl 0x10001c81
pop ebx
pop edi
mov eax, 1
pop esi
ret
pop ebx
pop edi
xor eax, eax
pop esi
ret
Function at 0x10001cad
Capabilities:
Access peb ldr_data

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x10]
mov edi, dword [ebp + 0x30]
mov esi, dword [esp + 0x18]
movzx ebx, word [esi]
mov eax, ebx
lea ecx, [eax - 0x41]
cmp ecx, 0x19
ja 0x10001ce5
add eax, 0x20
movzx edx, word [edi]
lea ecx, [edx - 0x41]
cmp ecx, 0x19
ja 0x10001cf3
add edx, 0x20
cmp eax, edx
jne 0x10001d04
test bx, bx
je 0x10001d39
add esi, 2
add edi, 2
jmp 0x10001cd5
movzx ecx, word [esi]
lea eax, [ecx - 0x41]
cmp eax, 0x19
ja 0x10001d12
add ecx, 0x20
movzx edx, word [edi]
lea eax, [edx - 0x41]
cmp eax, 0x19
ja 0x10001d20
add edx, 0x20
sub ecx, edx
je 0x10001d39
mov ebp, dword [ebp]
mov dword [esp + 0x10], ebp
cmp dword [ebp + 0x18], 0
jne 0x10001cce
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x100027b2
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
sub esp, 0x10
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [edx]
test eax, eax
je 0x10002873
test ecx, ecx
je 0x10002873
mov ebx, dword [eax + 0x3c]
mov edx, dword [ebx + eax + 0x78]
mov ebx, dword [ebx + eax + 0x7c]
test edx, edx
je 0x10002873
test ebx, ebx
je 0x10002873
mov ebx, eax
add ebx, edx
je 0x10002873
mov esi, dword [edx + eax + 0x18]
test esi, esi
je 0x10002873
cmp dword [edx + eax + 0x14], 0
je 0x10002873
mov edi, dword [edx + eax + 0x20]
mov ebx, dword [edx + eax + 0x24]
add edi, eax
mov edx, dword [edx + eax + 0x1c]
add ebx, eax
add edx, eax
test esi, esi
jbe 0x10002873
mov dword [esp], edx
xor ebp, ebp
mov dword [esp + 0xc], edi
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 8]
movzx ecx, word [ebx + ebp*2]
mov esi, dword [eax + ebp*4]
add esi, dword [esp + 0x24]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x10002863
test dl, dl
je 0x1000285f
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x10002863
add edi, 2
add esi, 2
test dl, dl
jne 0x10002843
xor eax, eax
jmp 0x10002868
sbb eax, eax
or eax, 1
test eax, eax
je 0x1000287f
inc ebp
cmp ebp, dword [esp + 4]
jb 0x10002830
xor eax, eax
add esp, 0x10
pop ebx
pop edi
pop esi
pop ebp
ret 8
mov edx, dword [esp]
mov edx, dword [edx + ecx*4]
mov eax, dword [esp + 0x24]
add eax, edx
add esp, 0x10
pop ebx
pop edi
pop esi
pop ebp
ret 8