joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408420
Capabilities:
Prepare http request
Receive http response

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x42a008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, ecx
mov dword [ebp - 0x1c], eax
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x18], ebx
cmp dword [esi + 8], 0
je 0x4085c7
mov eax, dword [esi + 0xc]
test eax, eax
je 0x408463
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [esi + 0xc], 0
push dword [esi + 0x1c]
mov ecx, str.POST
test ebx, ebx
push 0
push 0
push 0
push dword [esi + 0x14]
mov eax, 0x4262b4
cmovne eax, ecx
push eax
push dword [esi + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [esi + 0xc], eax
test eax, eax
je 0x4085c7
push 4
lea ecx, [ebp - 8]
mov dword [ebp - 8], 1
push ecx
push 0x3f
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x4085c7
test edi, edi
je 0x4084c2
cmp dword [edi + 0x10], 0
mov dword [ebp - 0x10], 1
jne 0x4084c9
mov dword [ebp - 0x10], 0
test edi, edi
je 0x4084d2
mov eax, dword [edi + 0x14]
jmp 0x4084d4
xor eax, eax
mov dword [ebp - 0x14], eax
mov ebx, eax
lea esp, [esp]
push 4
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
push 0x4d
push dword [esi + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x40855c
cmp dword [ebp - 0x10], 0
je 0x408531
cmp ebx, dword [edi + 0x10]
jae 0x40850f
mov eax, dword [edi + 0xc]
mov eax, dword [eax + ebx*4]
jmp 0x408511
xor eax, eax
test eax, eax
jne 0x40851c
mov ecx, 0x80070057
jmp 0x408584
push dword [edi + 8]
mov ecx, dword [esi + 4]
push eax
push dword [esi + 0xc]
call fcn.00407fc0
mov ecx, eax
test ecx, ecx
js 0x408584
push 0
push dword [ebp + 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push 0
push 0
push dword [esi + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x40855c
push 0
push dword [esi + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x408577
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
test ecx, ecx
jle 0x408573
movzx ecx, cx
or ecx, 0x80070000
test ecx, ecx
jns 0x40859d
jmp 0x408584
mov ecx, esi
call fcn.004076b0
mov ecx, eax
test ecx, ecx
jns 0x4085b2
cmp dword [ebp - 0x10], 0
je 0x40859d
lea eax, [ebx + 1]
xor edx, edx
div dword [edi + 0x10]
mov ebx, edx
cmp ebx, dword [ebp - 0x14]
jne 0x4084e0
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f9cf
mov esp, ebp
pop ebp
ret 0x10
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f9cf
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
mov eax, 0x80004005
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f9cf
mov esp, ebp
pop ebp
ret 0x10
Function at 0x408e40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x42a008]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x408ecb
mov eax, dword [ebp - 8]
cmp eax, 1
je 0x408e8d
cmp eax, 2
jne 0x408ea9
mov ecx, dword [ebp - 0xc]
test esi, esi
je 0x408ec5
test ecx, ecx
je 0x408ec0
test cl, 1
jne 0x408ea9
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x408ec5
pop edi
mov eax, 0xd
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f9cf
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040f9cf
mov esp, ebp
pop ebp
ret 0xc

Function at 0x408ee0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x408ef5
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
jmp 0x408f00
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408f00
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 0x409100
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x42a008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, edx
test esi, esi
je 0x4091c1
push edi
push 0x20019
push str.SoftwareMicrosoftDeviceHealth
xorps xmm0, xmm0
mov dword [ebp - 8], 0
movq qword [ebp - 0x10], xmm0
push ecx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call fcn.00408db0
mov edi, dword [ebp - 0x10]
test eax, eax
jne 0x4091a1
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 4
push eax
push ebx
lea eax, [ebp - 0x14]
push eax
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x409187
cmp dword [ebp - 0x14], 4
jne 0x40919a
lea esi, [eax + 3]
jmp 0x4091a3
cmp eax, 0xd
je 0x40919a
cmp eax, 0xea
je 0x40919a
mov esi, 1
jmp 0x4091a3
mov esi, 2
jmp 0x4091a3
xor esi, esi
test edi, edi
je 0x4091ae
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f9cf
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f9cf
mov esp, ebp
pop ebp
ret
Function at 0x409290
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x42a008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, edx
test esi, esi
je 0x409351
push edi
push 0x20019
push str.SoftwareMicrosoftDeviceHealth
xorps xmm0, xmm0
mov dword [ebp - 8], 0
movq qword [ebp - 0x10], xmm0
push ecx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call fcn.00408db0
mov edi, dword [ebp - 0x10]
test eax, eax
jne 0x409331
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 8
push eax
push ebx
lea eax, [ebp - 0x14]
push eax
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x409317
cmp dword [ebp - 0x14], 0xb
jne 0x40932a
lea esi, [eax + 3]
jmp 0x409333
cmp eax, 0xd
je 0x40932a
cmp eax, 0xea
je 0x40932a
mov esi, 1
jmp 0x409333
mov esi, 2
jmp 0x409333
xor esi, esi
test edi, edi
je 0x40933e
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f9cf
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f9cf
mov esp, ebp
pop ebp
ret

Function at 0x40a2f0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x42a008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x20c]
mov ebx, edx
push eax
push 0
push 0
push 0x26
push 0
mov edi, ecx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
jne 0x40a399
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a330
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.004048f0
test edi, edi
jne 0x40a356
xor ecx, ecx
jmp 0x40a36f
mov ecx, edi
lea edx, [ecx + 2]
jmp 0x40a360
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a360
sub ecx, edx
sar ecx, 1
push ecx
push edi
mov ecx, ebx
call fcn.004048f0
push 0x15
push 0x426580
mov ecx, ebx
call fcn.004048f0
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f9cf
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
test esi, esi
mov eax, 0x8000ffff
cmovns esi, eax
xor ecx, ebp
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.0040f9cf
mov esp, ebp
pop ebp
ret
Function at 0x40b150
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x427860
push 0x414700
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x42a008]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, ecx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x28], 0x80004005
lea eax, [ebp - 0x24]
push eax
push dword [edi + 0x418]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x40b290
cmp dword [ebp - 0x20], 0
jg 0x40b1bb
mov esi, dword [ebp - 0x24]
cmp esi, 0x600058
jbe 0x40b1c5
mov esi, 0x80070570
jmp 0x40b295
lea eax, [edi + 0x208]
push eax
push esi
push 0
push 4
push 0
push dword [edi + 0x418]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [edi + 0x41c], eax
test eax, eax
je 0x40b290
push esi
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [edi + 0x420], eax
test eax, eax
je 0x40b290
mov dword [ebp - 4], 0
cmp dword [eax], 0x2000000
jne 0x40b233
lea edx, [edi + 0x424]
mov ecx, eax
call fcn.0040b540
mov esi, eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 4], 0xfffffffe
jmp 0x40b27f
mov esi, 0xc00ee064
mov dword [ebp - 0x28], esi
mov dword [ebp - 4], 0xfffffffe
jmp 0x40b27f
cmp esi, 0x80070570
jne 0x40b295
mov ecx, edi
call fcn.0040b420
jmp 0x40b295
mov esi, 0x80004005
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0040f9cf
mov esp, ebp
pop ebp
ret

Function at 0x40dc60
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x42a008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push 0
push 2
mov byte [ebp - 0x231], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [ebp - 0x238], ebx
cmp ebx, 0xffffffff
je 0x40dd4e
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.00411350
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40dd47
push edi
lea ecx, [ecx]
lea edi, [ebp - 0x20c]
mov eax, edi
push 0x5c
push eax
call fcn.004112aa
add esp, 8
test eax, eax
je 0x40dcea
lea edi, [eax + 2]
push 0x4262cc
push edi
call fcn.0041113c
add esp, 8
test eax, eax
jne 0x40dd34
mov edi, dword [esi + 4]
mov ebx, dword [ebp - 0x228]
mov byte [ebp - 0x231], 1
cmp edi, dword [esi + 8]
jb 0x40dd20
lea eax, [edi + 1]
mov ecx, esi
push eax
call fcn.00408680
test al, al
je 0x40dd64
mov eax, dword [esi]
lea eax, [eax + edi*4]
test eax, eax
je 0x40dd2b
mov dword [eax], ebx
inc dword [esi + 4]
mov ebx, dword [ebp - 0x238]
lea eax, [ebp - 0x230]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x40dcd0
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x231]
xor ecx, ebp
pop esi
pop ebx
call fcn.0040f9cf
mov esp, ebp
pop ebp
ret
push 0x8007000e
call fcn.00401070
int3
Function at 0x41ae78
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42a008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00416497
mov dword [ebp - 0x14], eax
cmp dword [0x42c378], esi
jne 0x41af6b
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x41aef8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x41b04b
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x41b04b
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41b04b
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x42c378], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x42c37c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x42c380], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42c388], eax
test eax, eax
je 0x41af68
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42c384], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x41af90
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41af83
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x41afa5
push 4
pop eax
jmp 0x41b04d
cmp dword [ebp - 0x14], esi
je 0x41afa5
push dword [0x42c378]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x41af8a
mov eax, dword [0x42c384]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x41b003
cmp dword [0x42c388], edi
je 0x41b003
push eax
call ebx
push dword [0x42c388]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41b003
test eax, eax
je 0x41b003
call ecx
test eax, eax
je 0x41aff8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x41aff8
test byte [ebp - 8], 1
jne 0x41b003
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x41b033
mov eax, dword [0x42c37c]
cmp eax, edi
je 0x41b030
push eax
call ebx
test eax, eax
je 0x41b030
call eax
mov esi, eax
test esi, esi
je 0x41b030
mov eax, dword [0x42c380]
cmp eax, edi
je 0x41b030
push eax
call ebx
test eax, eax
je 0x41b030
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x42c378]
call ebx
test eax, eax
je 0x41b04b
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x41b04d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f9cf
mov esp, ebp
pop ebp
ret
Function at 0x10007c1f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x10007c2e
pop dword [ebp - 0x44]
mov eax, 0x89765c
sub eax, 0xf088fa2e
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x1695388
add dword [ebp - 0x54], 0x4ce8f1c3
mov dword [ebp - 0x50], 0xbe10d825
add dword [ebp - 0x50], 0x74227420
mov dword [ebp - 0x4c], 0x9472d6ec
add dword [ebp - 0x4c], 0xb7d96d42
mov dword [ebp - 0x48], 0x8ba865a1
add dword [ebp - 0x48], 0x74579a5f
lea eax, [ebp - 0x54]
push eax
mov eax, 0xa5539afc
add eax, 0x6aace558
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0xf1ba5559
sub dword [ebp - 0x54], 0x7d47ec03
mov dword [ebp - 0x50], 0x2d79f26b
sub dword [ebp - 0x50], 0xec0d90f6
mov dword [ebp - 0x4c], 0x35213ad6
add dword [ebp - 0x4c], 0x2e4e3196
mov dword [ebp - 0x48], 0x5da56d98
add dword [ebp - 0x48], 0xa25a9268
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x36066
push 0
call eax
mov ecx, 0x18f52d8a
sub ecx, 0x18f4e81c
mov esi, eax
mov edi, 0x1000fa00
add edi, dword [ebp - 0x44]
mov edx, 0xcea918d7
mov ebx, dword [edi]
xor dword [ebp - 0x2c], 0xd19c3987
add ebx, edx
xor dword [ebp - 0x34], 0x6b55d937
mov dword [esi], ebx
add dword [ebp - 4], 0x22142f86
add esi, 0x73784059
add esi, 0x8c87bfab
add edi, 0xb2107f82
sub edi, 0xb2107f7e
loop 0x10007d3f
add eax, 0x1088b
xor ebx, ebx
add ebx, eax
add eax, 0x98dc4a9a
add eax, 0x6723b56b
mov ecx, 0x10000000
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x1005a3dd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x1005a3ec
pop dword [ebp - 0x2c]
mov eax, 0x22b763e0
add eax, 0xed4e400c
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x9bc3caae
add dword [ebp - 0x3c], 0xb28e7a9d
mov dword [ebp - 0x38], 0x6beb518c
add dword [ebp - 0x38], 0xc647fab9
mov dword [ebp - 0x34], 0x26505ee2
sub dword [ebp - 0x34], 0xda041ab4
mov dword [ebp - 0x30], 0x294453f6
sub dword [ebp - 0x30], 0x294453f6
lea eax, [ebp - 0x3c]
push eax
mov eax, 0x1aab5e10
sub eax, 0xaa2eddc
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0x406763be
add dword [ebp - 0x3c], 0x340b0598
mov dword [ebp - 0x38], 0x6ee803a7
sub dword [ebp - 0x38], 0x2d7ba232
mov dword [ebp - 0x34], 0x209e888b
sub dword [ebp - 0x34], 0xbd2f1c1f
mov dword [ebp - 0x30], 0xe477d908
sub dword [ebp - 0x30], 0xe477d908
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 0x40196
push 0
call eax
mov ecx, 0x9d9d49db
sub ecx, 0x9d9cf6fc
mov edx, eax
mov ebx, 0x100b9000
add ebx, dword [ebp - 0x2c]
mov esi, 0x34b10c85
add esi, 0x6cd7441e
add dword [ebp - 0x10], 0x17b8c873
mov edi, dword [ebx]
xor edi, esi
mov dword [ebp - 0x18], 0x440a27cd
mov dword [edx], edi
xor dword [ebp - 0xc], eax
add edx, 0x8e00f8ec
sub edx, 0x8e00f8e8
add ebx, 0xb2efaef9
sub ebx, 0xb2efaef5
loop 0x1005a503
add eax, 0xc9eb7021
add eax, 0x3615ce2e
xor ebx, ebx
add ebx, eax
add eax, 0xdf3f25f9
sub eax, 0xdf3f25f4
mov ecx, 0x46ac25bc
sub ecx, 0x36ac25bc
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x401729
Capabilities:
Parse pe header

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

Function at 0x406259
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x413040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4062a4
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00406476
test al, al
jne 0x40629e
sub edx, 2
cmp edx, edi
jne 0x406284
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4062c6
lea eax, [edi + 2]
cmp edx, eax
je 0x4062c6
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004061a5
add esp, 0x10
jmp 0x4063c0
push esi
lea ecx, [ebp - 0x255]
call fcn.00406476
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x406309
push dword [ebp - 0x25c]
jmp 0x4062b6
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x406346
cmp word [ebp - 0x226], 0
je 0x406367
cmp word [ebp - 0x226], ax
jne 0x406346
cmp word [ebp - 0x224], 0
je 0x406367
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004061a5
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4063b3
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x406320
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x40639b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4063c0
push 0x405fd5
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00409020
add esp, 0x10
jmp 0x406390
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401bae
leave
ret

Function at 0x407ef3
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40efac
push 0x40efa4
push str.FlsAlloc
push 0x1f
call fcn.00407e2e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407f27
push dword [ebp + 8]
mov ecx, esi
call dword [0x40d104]
call esi
jmp 0x407f2d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x407f71
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40efbc
push 0x40efb4
push str.FlsGetValue
push 0x21
call fcn.00407e2e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407fa8
push dword [ebp + 8]
mov ecx, esi
call dword [0x40d104]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x407fb0
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40efc4
push 0x40efbc
push str.FlsSetValue
push 0x22
call fcn.00407e2e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407fea
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x40d104]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40cd40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40cd6d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40cd6d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret