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

Disassembly:
mov eax, 0x1211a8b6
call fcn.120820e8
sub esp, 0x218
mov eax, dword [section..cdata]
push ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push esi
xor esi, esi
mov ebx, ecx
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x214], esi
push 0x2001f
push eax
push dword [ebx]
lea ecx, [ebp - 0x214]
mov dword [ebp - 4], esi
call fcn.12099f0a
cmp eax, esi
jne 0x1206a811
push edi
mov edi, dword [sym.imp.advapi32.dll_RegEnumKeyExW]
jmp 0x1206a7c8
lea eax, [ebp - 0x210]
push eax
call fcn.1206a768
cmp eax, esi
jne 0x1206a810
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 0x100
call edi
test eax, eax
lea ecx, [ebp - 0x214]
je 0x1206a7b8
call fcn.12068a93
push dword [ebp - 0x21c]
push dword [ebx]
call dword [sym.imp.advapi32.dll_RegDeleteKeyW]
pop edi
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.12068a93
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.12082031
leave
ret 4
Function at 0x12074002
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x1211aa10
call fcn.120820e8
sub esp, 0x10
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x10], ebx
push 2
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x14], esi
jne 0x1207405f
mov esi, dword [sym.imp.kernel32.dll_GetLastError]
call esi
test eax, eax
jg 0x1207404a
call esi
mov esi, eax
jmp 0x12074178
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x12074178
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.kernel32.dll_FindResourceW]
mov edi, eax
cmp edi, ebx
je 0x12074080
push edi
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
mov esi, eax
cmp esi, ebx
jne 0x120740a8
mov esi, dword [sym.imp.kernel32.dll_GetLastError]
call esi
test eax, eax
jg 0x12074093
call esi
jmp 0x1207416d
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1207416f
push edi
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_SizeofResource]
mov ebx, eax
cmp byte [ebx + esi], 0
mov edi, esi
je 0x12074117
lea edi, [ebx + 1]
cmp edi, 0x400
ja 0x120740e4
push edi
call fcn.12068975
test al, al
pop ecx
je 0x120740e4
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.12082050
mov dword [ebp + 8], esp
jmp 0x120740f0
push edi
lea ecx, [ebp - 0x10]
call fcn.12099f0a
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
test eax, eax
jne 0x120740fe
mov esi, 0x8007000e
jmp 0x1207416f
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 edi, dword [ebp + 8]
mov byte [eax + ebx], 0
test edi, edi
jne 0x1207411f
xor eax, eax
jmp 0x12074161
push edi
call dword [sym.imp.kernel32.dll_lstrlenA]
mov esi, eax
inc esi
lea ebx, [esi + esi]
cmp ebx, 0x400
ja 0x12074150
push ebx
call fcn.12068975
test al, al
pop ecx
je 0x12074150
mov eax, ebx
add eax, 3
and eax, 0xfffffffc
call fcn.12082050
mov eax, esp
jmp 0x12074159
push ebx
lea ecx, [ebp - 0x10]
call fcn.12099f0a
push esi
push edi
push eax
call fcn.12099f0a
push dword [ebp + 0x14]
lea ecx, [ebp - 0x1c]
push eax
call fcn.12099f0a
mov esi, eax
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea ecx, [ebp - 0x10]
call fcn.1206a409
mov eax, esi
lea esp, [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x120787b5
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x1211ad57
call fcn.120820e8
push ecx
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 8]
push edi
mov ecx, ebx
mov dword [ebp - 0x10], esi
call fcn.1208095f
xor edi, edi
mov dword [ebx], edi
lea ebx, [esi + 0x28]
mov dword [esi], 0x12055844
mov dword [esi + 4], 0x12055830
mov dword [ebp - 4], edi
mov dword [ebx], edi
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 1
call fcn.12118e98
push edi
mov ecx, ebx
mov byte [ebp - 4], 2
mov dword [esi + 0x14], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x1c], 0x1e
mov dword [esi + 0x24], edi
call fcn.12099f0a
mov dword [esi + 0x10], edi
call fcn.1208b113
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
push dword [0x1212f378]
lea ecx, [esi + 0x34]
call fcn.12099f0a
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x12082031
Capabilities:
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [section..cdata]
push edi
mov dword [ebp + 0x2a4], eax
xor eax, eax
and dword [ebp - 0x28], eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x80], 0xc0000409
lea eax, [ebp + 0x2ac]
mov eax, dword [eax]
mov dword [ebp - 0x74], eax
lea eax, [ebp + 0x2ac]
mov dword [ebp - 0x28], 0x10001
mov eax, dword [eax]
mov dword [ebp + 0x90], eax
lea eax, [ebp + 0x2ac]
mov dword [ebp + 0x9c], eax
push ss
pop dword [ebp + 0xa0]
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push 0
mov dword [ebp - 0x2c], eax
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
push 0x502
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.12082031
pop edi
add ebp, 0x2a8
leave
ret
cmp ecx, dword [section..cdata]
jne 0x1208203a
ret
jmp 0x12081eff
Function at 0x12085a5f
Capabilities:
Get socket status
Read file on windows

Disassembly:
mov eax, 0x1211b857
call fcn.120820e8
sub esp, 0x210
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
neg eax
lea ecx, [esi + 0x28]
sbb eax, eax
and eax, ecx
push edi
push eax
lea ecx, [ebp - 0x10]
call fcn.12099f0a
mov eax, dword [esi]
xor edi, edi
test eax, 0x10000000
mov dword [ebp - 4], edi
je 0x12085aba
call fcn.1208ab2b
push edi
push 6
mov ecx, eax
call fcn.12099f0a
mov ecx, dword [ebp - 0x10]
cmp ecx, edi
mov esi, eax
je 0x12085ab3
call fcn.12099f0a
mov eax, esi
jmp 0x12085ba5
test al, 1
je 0x12085b17
lea eax, [esi + 8]
push eax
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x12085b03
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
cmp esi, 0x3e5
je 0x12085b03
call fcn.1208ab2b
push 0xffffffffffffffff
push 0x12055828
push esi
push 4
push 0xfffffffffffffffa
mov ecx, eax
call fcn.12099f0a
jmp 0x12085aa5
mov ecx, dword [ebp - 0x10]
cmp ecx, edi
je 0x12085b0f
call fcn.12099f0a
xor eax, eax
inc eax
jmp 0x12085ba5
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
cmp eax, edi
push ebx
mov dword [ebp + 8], eax
mov dword [ebp - 0x118], edi
jbe 0x12085b95
cmp dword [esi + 0x3c], edi
jne 0x12085b70
mov ebx, dword [esi + 0x1c]
cmp ebx, edi
je 0x12085b70
test byte [esi + 3], 0x20
jne 0x12085b70
lea eax, [ebp - 0x21c]
push eax
mov ecx, esi
mov dword [ebp - 0x21c], edi
call fcn.12099f0a
push ebx
lea eax, [ebp - 0x118]
push eax
push eax
lea eax, [ebp - 0x21c]
push eax
push 1
call dword [sym.imp.WSOCK32.dll_select]
test eax, eax
je 0x12085bb5
push edi
push dword [ebp + 8]
mov ecx, esi
push dword [ebp - 0x14]
push dword [esi + 4]
call fcn.12099f0a
cmp eax, 0xffffffff
je 0x12085bda
cmp eax, edi
je 0x12085bda
sub dword [ebp + 8], eax
add dword [ebp - 0x14], eax
cmp dword [ebp + 8], edi
ja 0x12085b2e
mov ecx, dword [ebp - 0x10]
cmp ecx, edi
je 0x12085ba1
call fcn.12099f0a
xor eax, eax
inc eax
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 8
or byte [esi + 3], 0x10
call fcn.1208ab2b
push edi
push 6
mov ecx, eax
call fcn.12099f0a
mov ecx, dword [ebp - 0x10]
cmp ecx, edi
mov esi, eax
je 0x12085bd6
call fcn.12099f0a
mov eax, esi
jmp 0x12085ba4
call fcn.1208ab2b
push 0x1456
push 0xfffffffffffffffa
jmp 0x12085bc1

Function at 0x1208ab2b
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x1212a914]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov eax, dword [eax + 0xc]
ret

Function at 0x1208ab40
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x1212a914]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ecx, dword [eax + 0xc]
jmp fcn.12082585

Function at 0x1208b25b
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x1212a914]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 4]
ret
Function at 0x1208b273
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x1212a914]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 8]
ret

Function at 0x1208b28b
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x1212a914]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
ret

Function at 0x1208b2a3
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x1212a914]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov eax, dword [eax + 0xc]
add eax, 0x10
ret

Function at 0x1208b3e7
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, 0x1211b985
call fcn.120820e8
push ecx
push esi
call dword [sym.imp.kernel32.dll_TlsAlloc]
or esi, 0xffffffff
cmp eax, esi
mov dword [0x1212a914], eax
je 0x1208b478
call fcn.1210445f
cmp eax, 1
je 0x1208b42d
push 0x12056ec8
push 0xc001007b
push 6
call fcn.12099f0a
push 0x29
push esi
call fcn.12099f0a
add esp, 0x14
jmp 0x1208b47a
call fcn.12068a2f
test eax, eax
jge 0x1208b442
push 0x29
push esi
call fcn.12099f0a
pop ecx
pop ecx
jmp 0x1208b47a
call fcn.1208b113
push 0x25c
mov esi, eax
call fcn.12099f0a
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
and dword [ebp - 4], 0
test ecx, ecx
je 0x1208b468
call fcn.1208adac
jmp 0x1208b46a
xor eax, eax
test eax, eax
mov dword [0x1212f3dc], eax
jne 0x1208b478
push 0xfffffffffffffffb
pop eax
jmp 0x1208b47a
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x120c9cad
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x54], edi
jne 0x120c9cc4
push edi
push edi
push edi
push 1
call fcn.12099f0a
mov eax, dword [esi + 0x54]
cmp eax, edi
jne 0x120c9cd2
pop edi
pop esi
jmp fcn.1208b25b
mov eax, dword [eax + 4]
cmp eax, edi
je 0x120c9cde
mov eax, dword [eax + 0x38]
jmp 0x120c9ce0
xor eax, eax
cmp eax, edi
push ebx
jne 0x120c9d0a
mov edi, dword [esi + 0x38]
xor ebx, ebx
inc ebx
cmp edi, ebx
jl 0x120c9d0a
push ebx
lea ecx, [esi + 0x28]
call fcn.12099f0a
mov ecx, dword [esi + 0x54]
push eax
call fcn.12099f0a
test eax, eax
je 0x120c9d1e
inc ebx
cmp ebx, edi
jle 0x120c9cef
mov ecx, dword [esi + 0x54]
push 0
add ecx, 8
call fcn.12099f0a
xor eax, eax
inc eax
pop ebx
pop edi
pop esi
ret
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
push 0
call dword [eax + 4]
or eax, 0xffffffff
jmp 0x120c9d1a
Function at 0x120dc6c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x1211d6ce
call fcn.120820e8
sub esp, 0x6c
mov eax, dword [ecx + 4]
cmp ecx, dword [eax + 0xbc]
push esi
mov dword [ebp - 0x14], ecx
je 0x120dc6e4
xor esi, esi
inc esi
jmp 0x120dc875
push ebx
push edi
push dword [eax + 0x94]
lea ecx, [ebp - 0x28]
call fcn.12099f0a
lea ecx, [ebp - 0x28]
call fcn.1208cec2
xor ebx, ebx
jmp 0x120dc868
push ebx
push dword [eax + 0x4c]
call fcn.12099f0a
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
je 0x120dc860
cmp word [edi], bx
je 0x120dc860
push 1
push ebx
lea ecx, [ebp - 0x78]
call fcn.1210ba18
push 0x1205a5ac
push 0x1205a5a4
lea ecx, [ebp - 0x78]
mov dword [ebp - 4], ebx
call fcn.12099f0a
mov esi, eax
cmp esi, 1
lea ecx, [ebp - 0x78]
jne 0x120dc899
push edi
call fcn.12099f0a
xor edi, edi
mov esi, eax
inc edi
cmp esi, edi
lea ecx, [ebp - 0x78]
jne 0x120dc899
lea eax, [ebp - 0x10]
push eax
push 0x1205a59c
call fcn.12099f0a
mov esi, eax
cmp esi, edi
jne 0x120dc896
cmp dword [ebp - 0x10], ebx
lea ecx, [ebp - 0x78]
je 0x120dc857
lea eax, [ebp - 0x10]
push eax
push 0x1205a58c
call fcn.12099f0a
mov esi, eax
cmp esi, edi
jne 0x120dc896
cmp dword [ebp - 0x10], ebx
je 0x120dc854
mov dword [ebp - 0x18], edi
push ebx
lea ecx, [ebp - 0x3c]
call fcn.12099f0a
push ebx
push ebx
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 1
call fcn.12099f0a
mov esi, eax
cmp esi, edi
jne 0x120dc884
mov eax, dword [ebp - 0x38]
cmp eax, ebx
mov esi, eax
je 0x120dc825
cmp word [eax], bx
je 0x120dc825
push eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x1b0]
jne 0x120dc80e
cmp eax, ebx
je 0x120dc7fd
mov eax, dword [eax]
jmp 0x120dc7ff
xor eax, eax
push 0x100
push esi
mov ecx, eax
call fcn.12099f0a
jmp 0x120dc825
cmp eax, ebx
je 0x120dc816
mov eax, dword [eax]
jmp 0x120dc818
xor eax, eax
push 0x100
push esi
mov ecx, eax
call fcn.12099f0a
lea eax, [ebp - 0x18]
push eax
push 0x2c
lea ecx, [ebp - 0x78]
call fcn.12099f0a
lea ecx, [ebp - 0x3c]
mov esi, eax
mov dword [ebp - 0x3c], 0x120571c8
mov byte [ebp - 4], bl
call fcn.1208d861
cmp esi, edi
jne 0x120dc896
cmp dword [ebp - 0x18], ebx
jne 0x120dc7ad
lea ecx, [ebp - 0x78]
or dword [ebp - 4], 0xffffffff
call fcn.1210ba78
lea ecx, [ebp - 0x28]
call fcn.1208cc8b
cmp eax, ebx
jne 0x120dc703
xor esi, esi
inc esi
pop edi
pop ebx
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], bl
mov dword [ebp - 0x3c], 0x120571c8
call fcn.1208d861
lea ecx, [ebp - 0x78]
or dword [ebp - 4], 0xffffffff
call fcn.1210ba78
jmp 0x120dc873
Function at 0x1000ade1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x1000adf0
pop dword [ebp - 0x2c]
mov eax, 0xedbf36e
sub eax, 0xfedb457e
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x26383a8e
sub dword [ebp - 0x3c], 0xd7e5f543
mov dword [ebp - 0x38], 0x7f1ec7ef
sub dword [ebp - 0x38], 0x4ceb7baa
mov dword [ebp - 0x34], 0xfb219eba
add dword [ebp - 0x34], 0x512aa574
mov dword [ebp - 0x30], 0x246e5c85
add dword [ebp - 0x30], 0xdb91a37b
lea eax, [ebp - 0x3c]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0x8c139566
add dword [ebp - 0x3c], 0xe85ed3f0
mov dword [ebp - 0x38], 0x9f46dcdd
add dword [ebp - 0x38], 0xa2258498
mov dword [ebp - 0x34], 0x43235b0c
sub dword [ebp - 0x34], 0xdfb3eea0
mov dword [ebp - 0x30], 0xbfb51fe
sub dword [ebp - 0x30], 0xbfb51fe
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x37e37
push 0
call eax
mov ecx, 0x4827
xor edi, edi
add edi, eax
mov edx, 0xc2e33a86
sub edx, 0xb2e23286
add edx, dword [ebp - 0x2c]
mov esi, 0x19f9f95a
mov dword [ebp - 0x18], 0xa4f0ca09
mov ebx, dword [edx]
sub dword [ebp - 0x28], 0xd92c8f03
xor ebx, esi
add dword [ebp - 8], ebx
mov dword [edi], ebx
mov dword [ebp - 0x14], 0x1b34458f
add edi, 4
add edx, 0x9479c5df
add edx, 0x6b863a25
loop 0x1000aefe
add eax, 0x61ac9ada
sub eax, 0x61ab876b
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x13e33f81
sub ecx, 0x3e33f81
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret

Function at 0x1000bc58
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10003d90]
jne 0x1000c001
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x1000e130], eax
mov dword [0x1000e12c], ecx
mov dword [0x1000e128], edx
mov dword [0x1000e124], ebx
mov dword [0x1000e120], esi
mov dword [0x1000e11c], edi
mov word [0x1000e148], ss
mov word [0x1000e13c], cs
mov word [0x1000e118], ds
mov word [0x1000e114], es
mov word [0x1000e110], fs
mov word [0x1000e10c], gs
pushfd
pop dword [0x1000e140]
mov eax, dword [ebp]
mov dword [0x1000e134], eax
mov eax, dword [ebp + 4]
mov dword [0x1000e138], eax
lea eax, [ebp + 8]
mov dword [0x1000e144], eax
mov eax, dword [ebp - 0x320]
mov dword [0x1000e080], 0x10001
mov eax, dword [0x1000e138]
mov dword [0x1000e034], eax
mov dword [0x1000e028], 0xc0000409
mov dword [0x1000e02c], 1
mov eax, dword [0x10003d90]
mov dword [ebp - 0x328], eax
mov eax, dword [0x1000e014]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x1000e078], eax
push 1
call sub.msvcr100.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x10003d98
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x1000e078], 0
jne 0x1000c0ed
push 1
call sub.msvcr100.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret
Function at 0x404e70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, edx
test esi, esi
jne 0x404e84
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp + 8]
test edx, edx
jne 0x404e99
mov edx, esi
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x404e90
sub edx, ecx
mov eax, 0xffffffff
cmp edx, 8
jb 0x404f7f
push edi
mov edi, edx
shr edi, 3
nop dword [eax]
movzx ecx, byte [esi]
sub edx, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + str.UUUU]
movzx ecx, byte [esi + 1]
xor eax, 0x55555555
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + str.UUUU]
movzx ecx, byte [esi + 2]
xor eax, 0x55555555
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + str.UUUU]
movzx ecx, byte [esi + 3]
xor eax, 0x55555555
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + str.UUUU]
movzx ecx, byte [esi + 4]
xor eax, 0x55555555
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + str.UUUU]
movzx ecx, byte [esi + 5]
xor eax, 0x55555555
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + str.UUUU]
movzx ecx, byte [esi + 6]
xor eax, 0x55555555
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + str.UUUU]
movzx ecx, byte [esi + 7]
xor eax, 0x55555555
xor ecx, eax
add esi, 8
movzx ecx, cl
shr eax, 8
xor eax, dword [ecx*4 + str.UUUU]
xor eax, 0x55555555
sub edi, 1
jne 0x404eb0
pop edi
test edx, edx
je 0x404fa2
movzx ecx, byte [esi]
lea esi, [esi + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + str.UUUU]
xor eax, 0x55555555
sub edx, 1
jne 0x404f83
not eax
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4055f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push ecx
mov dword [ebp - 4], edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
xor esi, esi
mov ecx, dword [ebx + 0x3c]
mov edi, dword [ecx + ebx + 0x78]
mov ecx, dword [edi + ebx + 0x24]
add edi, ebx
add ecx, ebx
mov dword [ebp - 0xc], ecx
mov eax, dword [edi + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0x20]
add eax, ebx
mov dword [ebp - 8], eax
cmp dword [edi + 0x18], esi
jbe 0x405672
nop
mov ecx, dword [eax + esi*4]
add ecx, ebx
call fcn.00405570
mov ecx, dword [ebp - 4]
nop dword [eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x405660
test dl, dl
je 0x40565c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x405660
add ecx, 2
add eax, 2
test dl, dl
jne 0x405640
xor eax, eax
jmp 0x405665
sbb eax, eax
or eax, 1
test eax, eax
je 0x40567b
mov eax, dword [ebp - 8]
inc esi
cmp esi, dword [edi + 0x18]
jb 0x405630
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
pop edi
movzx eax, word [eax + esi*2]
pop esi
mov eax, dword [ecx + eax*4]
add eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40a809
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40a848
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40a848
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40a848
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40a848
cmp dword [ecx + 0x74], 0xe
jbe 0x40a848
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x41651c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4237b8
push 0x4237b0
push str.FlsAlloc
push 0x1f
call fcn.004163db
mov esi, eax
add esp, 0x10
test esi, esi
je 0x416550
push dword [ebp + 8]
mov ecx, esi
call dword [0x42114c]
call esi
jmp 0x416556
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41659a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4237c8
push 0x4237c0
push str.FlsGetValue
push 0x21
call fcn.004163db
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4165d1
push dword [ebp + 8]
mov ecx, esi
call dword [0x42114c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4165d9
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4237d0
push 0x4237c8
push str.FlsSetValue
push 0x22
call fcn.004163db
mov esi, eax
add esp, 0x10
test esi, esi
je 0x416613
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42114c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x41accc
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41ad69
push ebx
push esi
call fcn.0041ac95
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00418d0d
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41ad16
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41ad68
push edi
push eax
call fcn.00417654
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41ad36
call fcn.0041626e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41ad67
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00418d0d
add esp, 0x20
test eax, eax
jne 0x41ad55
push edi
call fcn.0041626e
jmp 0x41ad5d
push ebx
call fcn.0041626e
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x41ad6c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x41ad7d
pop esi
ret
push ebx
push edi
push esi
call fcn.0041ac95
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00417654
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41ada5
push ebx
push esi
push edi
call fcn.004082e0
add esp, 0xc
push 0
call fcn.0041626e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x41b175
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041adba