joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411220
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x543373
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5a574c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
call fcn.0043106f
xor eax, eax
mov dword [edi], vtable.CMemoryDC.0
mov dword [ebp - 4], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x10], vtable.CBitmap.0
mov ebx, dword [ebp + 8]
lea esi, [edi + 0x20]
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
xor ecx, ecx
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x18], eax
cmp dword [ebx + 0xc], eax
mov byte [ebp - 4], 1
sete cl
mov dword [edi + 0x30], ecx
mov ecx, dword [ebp + 0xc]
cmp ecx, eax
jne 0x4112a2
mov edx, dword [ebx]
mov eax, dword [edx + 0x50]
push esi
mov ecx, ebx
call eax
xor eax, eax
jmp 0x4112b8
mov edx, dword [ecx]
mov dword [esi], edx
mov edx, dword [ecx + 4]
mov dword [esi + 4], edx
mov edx, dword [ecx + 8]
mov dword [esi + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [esi + 0xc], ecx
cmp dword [edi + 0x30], eax
je 0x41134a
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, edi
call fcn.00431663
mov edx, dword [ebx + 8]
push 2
push esi
push edx
call dword [sym.imp.GDI32.dll_LPtoDP]
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 4]
mov ecx, dword [esi + 8]
sub ecx, dword [esi]
push eax
mov eax, dword [ebx + 4]
push ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [edi + 0x10]
call fcn.00431937
lea eax, [edi + 0x10]
test eax, eax
je 0x41130a
mov eax, dword [eax + 4]
mov ecx, dword [edi + 4]
push eax
push ecx
call fcn.004319c8
mov dword [edi + 0x18], eax
mov edx, dword [ebx + 8]
push edx
call dword [sym.imp.GDI32.dll_GetMapMode]
push eax
mov ecx, edi
call fcn.00430e26
mov eax, dword [ebx + 8]
push 2
push esi
push eax
call dword [sym.imp.GDI32.dll_DPtoLP]
mov ecx, dword [edi + 0x24]
mov edx, dword [esi]
push ecx
push edx
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.004311f1
jmp 0x41135c
mov ecx, dword [ebx + 0xc]
mov dword [edi + 0xc], ecx
mov edx, dword [ebx + 4]
mov dword [edi + 4], edx
mov eax, dword [ebx + 8]
mov dword [edi + 8], eax
push 1
mov ecx, edi
call fcn.00430d2b
cmp dword [ebp + 0x10], 0
je 0x41139f
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
mov edx, dword [edi + 0x1c]
sub eax, dword [esi + 4]
sub ecx, dword [esi]
mov ebx, dword [edi + 0x24]
mov esi, dword [esi]
test edx, edx
je 0x411385
mov edx, dword [edx + 4]
push 0xcc0020
push 0
push 0
push edx
push eax
push ecx
mov ecx, dword [edi + 4]
push ebx
push esi
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x4113b2
mov edx, dword [ebx + 8]
push edx
call dword [sym.imp.GDI32.dll_GetBkColor]
push eax
push esi
mov ecx, edi
call fcn.0044175b
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x412c20
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
push 0
push 0x552feb
push 0x552feb
push 0
push eax
mov esi, ecx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi + 0x30d54], eax
test eax, eax
jne 0x412c5b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x30d60], eax
xor eax, eax
pop esi
pop ebp
ret 0x14
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
push 0
push 0x4400000
push 3
push ecx
mov ecx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 8]
push ecx
push edx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [esi + 0x30d58], eax
test eax, eax
jne 0x412ca5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x30d60], eax
mov eax, dword [esi + 0x30d54]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
pop ebp
ret 0x14
push 0
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
je 0x412cde
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 0x30d58]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
mov dword [esi + 0x30d60], eax
call edi
mov edx, dword [esi + 0x30d54]
push edx
call edi
pop edi
xor eax, eax
pop esi
pop ebp
ret 0x14
mov eax, 1
pop esi
pop ebp
ret 0x14

Function at 0x412dd0
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x30d5c], 0
jne 0x412df2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x30d60], eax
xor eax, eax
pop esi
pop ebp
ret 8
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push 0
push ebx
call fcn.00526030
mov eax, dword [esi + 0x30d5c]
add esp, 0xc
push 0x5a6f40
push edi
push ebx
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
pop edi
pop ebx
test eax, eax
je 0x412ddf
mov eax, dword [0x5a6f40]
pop esi
pop ebp
ret 8

Function at 0x413040
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, edi
mov dword [ebp - 4], 0x400
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413055
sub eax, edx
mov esi, eax
je 0x41307c
push 1
lea eax, [esi + edi]
push 0x5530dc
push eax
call fcn.00528ec0
add esp, 0xc
test eax, eax
je 0x41307c
dec esi
jne 0x413062
lea ecx, [ebp + 8]
push ecx
push 1
push 0
add esi, edi
push esi
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop edi
pop esi
test eax, eax
jne 0x4130df
lea edx, [ebp - 4]
push edx
push 0x5a6f48
push eax
push eax
mov eax, dword [ebp + 8]
push str.Content_Type
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4130ca
push 0x18
push str.application_octet_stream
push 0x5a6f48
call fcn.00527db5
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x5a6f48
mov esp, ebp
pop ebp
ret 4
push 0x18
push str.application_octet_stream
push 0x5a6f48
call fcn.00527db5
add esp, 0xc
mov eax, 0x5a6f48
mov esp, ebp
pop ebp
ret 4
Function at 0x413a50
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ecx + 4]
xor ebx, ebx
mov dword [ebp - 4], ecx
cmp edi, dword [ecx + 8]
jae 0x413ac2
push esi
mov eax, dword [edi + 0x10100]
dec eax
je 0x413aad
dec eax
jne 0x413ab3
push eax
push 0x80
push 3
push eax
push 1
push SysReAllocStringLen
lea eax, [edi + 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x413ab3
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
lea ebx, [ebx + eax + 0x1800]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x413ab3
add ebx, 0x2000
mov ecx, dword [ebp - 4]
add edi, 0x10104
cmp edi, dword [ecx + 8]
jb 0x413a64
pop esi
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x413cc0
Capabilities:
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x5a574c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0x3ff
lea eax, [ebp - 0x403]
push 0
push eax
mov esi, ecx
mov dword [ebp - 0x408], 0x556280
mov byte [ebp - 0x404], 0
call fcn.00526030
add esp, 0xc
push 0x400
lea ecx, [ebp - 0x404]
push ecx
mov ecx, esi
call fcn.00413950
mov eax, dword [esi + 0x30d58]
push 0
push 0x4400040
lea edx, [ebp - 0x408]
push edx
push 0x552feb
push str.HTTP_1.0
push edi
push str.POST
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [esi + 0x30d5c], eax
test eax, eax
jne 0x413d69
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x30d60], eax
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00525222
mov esp, ebp
pop ebp
ret 4
push SysReAllocStringLen
push 0xd
push str.Accept:___r_n
push eax
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
test eax, eax
je 0x413d49
lea eax, [ebp - 0x404]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413d90
sub eax, edx
mov edx, dword [esi + 0x30d5c]
push eax
lea ecx, [ebp - 0x404]
push ecx
push 0x31
push 0x5562dc
push edx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x413d49
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.00525222
mov esp, ebp
pop ebp
ret 4
Function at 0x414100
Capabilities:
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [0x5a574c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push str.__MULTI_PARTS_FORM_DATA_BOUNDARY
lea eax, [ebp - 0x408]
push eax
mov esi, ecx
mov dword [ebp - 0x410], 0x556280
mov dword [ebp - 0x408], 0
call fcn.00413dd0
mov edx, dword [esi + 0x30d58]
push 0
push 0x4400040
lea ecx, [ebp - 0x410]
push ecx
push 0x552feb
push str.HTTP_1.0
push edi
push str.POST
push edx
mov ebx, eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [esi + 0x30d5c], eax
test eax, eax
jne 0x414198
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov dword [esi + 0x30d60], eax
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00525222
mov esp, ebp
pop ebp
ret 4
mov edi, dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
push SysReAllocStringLen
push 0xd
push str.Accept:___r_n
push eax
call edi
test eax, eax
je 0x414177
mov eax, dword [esi + 0x30d5c]
push 0x10000000
push 0x4e
push str.Content_Type:_multipart_form_data__boundary__MULTI_PARTS_FORM_DATA_BOUNDARY_r_n
push eax
call edi
test eax, eax
je 0x414177
push 0x400
lea ecx, [ebp - 0x404]
push 0
push ecx
call fcn.00526030
push ebx
lea edx, [ebp - 0x404]
push str.Content_Length:__d_r_n
push edx
call fcn.00525791
lea eax, [ebp - 0x404]
add esp, 0x18
lea edx, [eax + 1]
jmp 0x414200
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x414200
mov ecx, dword [esi + 0x30d5c]
push 0x10000000
sub eax, edx
push eax
lea eax, [ebp - 0x404]
push eax
push ecx
call edi
test eax, eax
je 0x414177
xor eax, eax
xor edi, edi
push edi
push 8
push edi
mov dword [ebp - 0x434], eax
lea edx, [ebp - 0x438]
mov dword [ebp - 0x430], eax
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x414], eax
mov eax, dword [esi + 0x30d5c]
push edx
push eax
mov dword [ebp - 0x438], 0x28
mov dword [ebp - 0x434], edi
call dword [sym.imp.WININET.dll_HttpSendRequestExA]
test eax, eax
je 0x414177
mov edx, dword [ebp - 0x408]
mov eax, dword [esi + 0x30d5c]
lea ecx, [ebp - 0x40c]
push ecx
push ebx
push edx
push eax
mov dword [ebp - 0x40c], edi
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x414177
mov ecx, dword [esi + 0x30d5c]
push edi
push 8
push edi
push ecx
call dword [sym.imp.WININET.dll_HttpEndRequestA]
test eax, eax
je 0x414177
lea edx, [ebp - 0x408]
push edx
mov ecx, esi
call fcn.00412f60
mov ecx, dword [ebp - 4]
lea eax, [edi + 1]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00525222
mov esp, ebp
pop ebp
ret 4
Function at 0x414ac0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 4]
lea ecx, [ebp - 4]
push ecx
push 1
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [esi], eax
test eax, eax
jne 0x414b3d
mov edx, dword [ebp + 8]
push eax
push eax
lea ecx, [ebp - 8]
push ecx
push eax
mov eax, dword [ebp - 4]
push edx
push eax
mov dword [ebp - 8], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 4]
push ecx
mov dword [esi], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esi], 0
jne 0x414b3d
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x414b34
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414b5c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x414b70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x5a574c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], 0xfe
push esi
push edi
mov esi, ecx
mov edi, 1
jle 0x414bea
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414bb7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414bd6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00525222
mov esp, ebp
pop ebp
ret 8
lea edx, [ebp - 0x104]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x414bf2
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 4]
lea ecx, [ebp - 0x108]
push ecx
push 0x20006
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x414b98
lea eax, [ebp - 0x104]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x414c30
sub eax, edx
mov edx, dword [ebp + 8]
inc eax
push eax
mov eax, dword [ebp - 0x108]
lea ecx, [ebp - 0x104]
push ecx
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x414c5d
xor edi, edi
cmp dword [esi + 8], 0
jne 0x414c70
mov ecx, dword [ebp - 0x108]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov edx, dword [ebp - 0x108]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414c9c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414cbb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00525222
mov esp, ebp
pop ebp
ret 8
Function at 0x414e10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x543700
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x5a574c]
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 edi, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x11c], 0
mov eax, 1
mov dword [ebp - 4], eax
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp + 0xc]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x114], esp
mov ebx, esp
push eax
mov dword [ebp - 0x120], 0xff
call fcn.004021a0
add eax, 0x10
add esp, 4
mov ecx, esi
mov dword [ebx], eax
call fcn.00414ac0
mov dword [ebp - 0x118], eax
cmp eax, 1
je 0x414ecf
cmp eax, 2
je 0x414ecf
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
push eax
call fcn.004021a0
add eax, 0x10
mov dword [edi], eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x414fbc
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 4]
lea ecx, [ebp - 0x114]
push ecx
push 0x20019
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [esi], eax
test eax, eax
je 0x414f21
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
push eax
call fcn.004021a0
add eax, 0x10
mov dword [edi], eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x414fbc
lea ecx, [ebp - 0x120]
push ecx
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x110]
push edx
mov edx, dword [ebp - 0x114]
lea eax, [ebp - 0x118]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [esi], eax
test eax, eax
je 0x414f53
xor esi, esi
jmp 0x414f59
mov esi, dword [ebp - 0x11c]
mov eax, dword [ebp - 0x114]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x414f97
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
push eax
call fcn.004021a0
add eax, 0x10
mov dword [edi], eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x414fbc
lea ecx, [ebp - 0x110]
push ecx
mov ecx, edi
call fcn.004018d0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x414fc8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [ebp - 4], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414fea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
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.00525222
mov esp, ebp
pop ebp
ret 0xc
Function at 0x419910
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ebp + 0xc]
push ebx
mov dword [edx], ecx
mov eax, dword [eax + 4]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov dword [edx + 4], eax
mov ecx, 0xe3779b90
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], 4
mov edi, dword [edx]
mov ebx, edi
mov eax, edi
shr ebx, 5
shl eax, 4
xor ebx, eax
add ebx, edi
mov eax, ecx
shr eax, 0xb
and eax, 3
mov eax, dword [esi + eax*4]
add eax, ecx
xor ebx, eax
mov eax, dword [ebp + 8]
sub eax, ebx
add ecx, 0x61c88647
mov ebx, eax
shr ebx, 5
mov edi, eax
shl edi, 4
xor ebx, edi
add ebx, eax
mov dword [edx + 4], eax
mov edi, ecx
and edi, 3
mov edi, dword [esi + edi*4]
add edi, ecx
xor ebx, edi
mov edi, dword [edx]
sub edi, ebx
mov dword [ebp + 8], edi
mov ebx, edi
mov dword [edx], edi
shl edi, 4
shr ebx, 5
xor ebx, edi
add ebx, dword [ebp + 8]
mov edi, ecx
shr edi, 0xb
and edi, 3
mov edi, dword [esi + edi*4]
add edi, ecx
xor ebx, edi
sub eax, ebx
add ecx, 0x61c88647
mov ebx, eax
shr ebx, 5
mov edi, eax
shl edi, 4
xor ebx, edi
add ebx, eax
mov edi, ecx
and edi, 3
mov dword [edx + 4], eax
mov edi, dword [esi + edi*4]
add edi, ecx
xor ebx, edi
mov edi, dword [edx]
sub edi, ebx
mov ebx, edi
mov dword [ebp + 8], edi
mov dword [edx], edi
shl edi, 4
shr ebx, 5
xor ebx, edi
add ebx, dword [ebp + 8]
mov edi, ecx
shr edi, 0xb
and edi, 3
mov edi, dword [esi + edi*4]
add edi, ecx
xor ebx, edi
sub eax, ebx
mov ebx, eax
mov edi, eax
shr ebx, 5
shl edi, 4
xor ebx, edi
add ecx, 0x61c88647
mov dword [edx + 4], eax
add ebx, eax
mov edi, ecx
and edi, 3
mov edi, dword [esi + edi*4]
add edi, ecx
xor ebx, edi
mov edi, dword [edx]
sub edi, ebx
mov dword [ebp + 8], edi
mov dword [edx], edi
mov ebx, edi
shl edi, 4
shr ebx, 5
xor ebx, edi
add ebx, dword [ebp + 8]
mov edi, ecx
shr edi, 0xb
and edi, 3
mov edi, dword [esi + edi*4]
add edi, ecx
xor ebx, edi
sub eax, ebx
mov edi, eax
mov ebx, eax
shr edi, 5
shl ebx, 4
xor edi, ebx
add edi, eax
mov dword [edx + 4], eax
add ecx, 0x61c88647
mov dword [ebp + 8], eax
mov eax, ecx
and eax, 3
mov eax, dword [esi + eax*4]
add eax, ecx
xor edi, eax
sub dword [edx], edi
dec dword [ebp + 0xc]
jne 0x419938
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x41eb10
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x41eb1e
xor eax, eax
pop ebp
ret
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push esi
not eax
cmp edx, 8
jb 0x41ebfd
mov esi, edx
shr esi, 3
push edi
jmp 0x41eb40
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x558448]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x558448]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x558448]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x558448]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x558448]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x558448]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x558448]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x558448]
add ecx, 8
sub edx, 8
dec esi
jne 0x41eb40
pop edi
test edx, edx
je 0x41ec1a
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x558448]
inc ecx
dec edx
jne 0x41ec01
not eax
pop esi
pop ebp
ret

Function at 0x41f160
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, ebx
imul esi, dword [ebp + 0x10]
cmp byte [edi], 0
je 0x41f1a0
mov ecx, dword [ebp + 8]
mov edx, dword [edi + 4]
push 0
lea eax, [ebp + 0xc]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41f194
mov byte [edi + 8], 1
mov eax, dword [ebp + 0xc]
pop edi
xor edx, edx
pop esi
div ebx
pop ebx
pop ebp
ret
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 0x14]
lea edx, [ecx + esi]
cmp edx, eax
jbe 0x41f1b1
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x10]
add eax, ecx
mov ecx, dword [ebp + 8]
push esi
push eax
push ecx
call fcn.00526760
add dword [edi + 0x18], esi
add esp, 0xc
pop edi
mov eax, esi
xor edx, edx
pop esi
div ebx
pop ebx
pop ebp
ret
Function at 0x41ffa0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5a574c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
test ecx, ecx
je 0x420069
mov al, byte [ecx]
test al, al
je 0x420069
push esi
push edi
mov edi, ecx
mov edx, ecx
cmp al, 0x2f
je 0x41ffda
cmp al, 0x5c
jne 0x41ffdc
mov edi, edx
mov al, byte [edx + 1]
inc edx
test al, al
jne 0x41ffd2
mov eax, edi
cmp edi, ecx
je 0x420017
mov esi, edi
sub esi, ecx
push esi
push ecx
lea eax, [ebp - 0x108]
push eax
call fcn.00527db5
lea ecx, [ebp - 0x108]
push ecx
push ebx
mov byte [ebp + esi - 0x108], 0
call fcn.0041ffa0
add esp, 0x14
lea eax, [edi + 1]
lea esi, [ebp - 0x20c]
mov ecx, ebx
sub esi, ebx
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x420021
mov edx, eax
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x420030
lea edi, [ebp - 0x20c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x420040
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
lea edx, [ebp - 0x20c]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00525222
mov esp, ebp
pop ebp
ret