joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404de4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x404ded
mov eax, dword [ebp - 4]
add esp, 0xfffff5f8
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, 0x4ebf28
call fcn.0040a120
push 0x2349
push 0x68
push edi
call sub.KERNEL32.DLL_FindResourceA
mov esi, eax
test esi, esi
jne 0x404e49
mov eax, dword [ebp + 0x14]
push eax
call fcn.00404bf4
pop ecx
test eax, eax
jne 0x404ec4
xor eax, eax
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
jmp 0x4053b2
push esi
push edi
call sub.KERNEL32.DLL_LoadResource
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x404e7d
push 0x10
push 0x4ebd8b
push 0x4ebd72
push 0
call sub.USER32.DLL_MessageBoxA
xor eax, eax
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
jmp 0x4053b2
mov ecx, dword [ebp - 0x30]
push ecx
call sub.KERNEL32.DLL_LockResource
mov dword [0x44b16c], eax
cmp dword [0x44b16c], 0
jne 0x404eb8
push 0x10
push 0x4ebdaa
push str.Cant_load_dll_from_Res_
push 0
call sub.USER32.DLL_MessageBoxA
xor eax, eax
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
jmp 0x4053b2
push esi
push edi
call sub.KERNEL32.DLL_SizeofResource
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
push 0x2658
mov eax, dword [ebp + 0x14]
mov edx, dword [eax]
sub edx, 0x2658
add edx, dword [0x44b16c]
push edx
push ebx
call fcn.00409ad4
add esp, 0xc
call sub.KERNEL32.DLL_GetTickCount
mov ecx, 0x1ff
xor edx, edx
div ecx
mov dword [0x538850], edx
mov esi, 0x4eb997
lea edi, [ebp - 0x26c8]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
push 0x4cc
lea eax, [ebp - 0x26c8]
push eax
push 0x64
lea edx, [ebx + 0x128]
push edx
call fcn.00402310
add esp, 0x10
xor edi, edi
mov esi, 0x4eb9b7
mov ecx, 0x82
push edi
lea edi, [ebp - 0x29d4]
rep movsd dword es:[edi], dword [esi]
pop edi
lea eax, [ebp - 0x29d4]
push eax
call fcn.00404b84
pop ecx
push 0x2658
push ebx
lea edx, [ebp - 0x26a8]
push edx
call fcn.00409ad4
add esp, 0xc
Function at 0x40579c
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
movzx eax, word [eax + 0x14]
add eax, dword [ebp + 0xc]
add eax, 0x18
xor ecx, ecx
jmp 0x4057d0
mov edx, dword [eax + 8]
test edx, edx
jne 0x4057bf
mov edx, dword [eax + 0x10]
mov esi, dword [eax + 0xc]
cmp ebx, esi
jb 0x4057cc
add edx, esi
cmp ebx, edx
jb 0x4057dd
inc ecx
add eax, 0x28
mov edx, dword [ebp + 0xc]
movzx edx, word [edx + 6]
cmp ecx, edx
jb 0x4057b5
xor eax, eax
pop esi
pop ebx
pop ebp
ret
Function at 0x405b2c
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp word [edi], 0x5a4d
je 0x405b46
xor eax, eax
jmp 0x405cc6
mov ebx, dword [edi + 0x3c]
add ebx, edi
cmp dword [ebx], 0x4550
je 0x405b5a
xor eax, eax
jmp 0x405cc6
cmp word [ebx + 0x14], 0xe0
jne 0x405b6a
cmp word [ebx + 0x18], 0x10b
je 0x405b71
xor eax, eax
jmp 0x405cc6
mov dword [0x538878], edi
mov ebx, dword [edi + 0x3c]
mov esi, edi
add ebx, esi
mov eax, dword [ebx + 0x78]
mov dword [ebp - 0x18], eax
push ebx
mov edx, dword [ebp - 0x18]
push edx
call fcn.0040579c
add esp, 8
test eax, eax
jne 0x405b9c
xor eax, eax
jmp 0x405cc6
mov edx, dword [0x538878]
push edx
push ebx
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.004057e4
add esp, 0xc
mov ebx, dword [ebx + 0x78]
test ebx, ebx
jne 0x405bce
push 0x10
push 0
push str.Error_in_GetProcAddressDirectly__
push 0
call sub.USER32.DLL_MessageBoxA
xor eax, eax
jmp 0x405cc6
add ebx, esi
mov edx, dword [ebx + 0x24]
add edx, esi
mov dword [ebp - 4], edx
mov ecx, dword [ebx + 0x20]
add ecx, esi
mov dword [ebp - 0xc], ecx
mov eax, dword [ebx + 0x1c]
add eax, esi
mov dword [ebp - 8], eax
mov edx, dword [ebp + 0xc]
mov ecx, edx
shr ecx, 0x10
test cx, cx
je 0x405c98
xor esi, esi
mov eax, dword [ebp - 8]
mov edx, eax
mov dword [ebp - 0x28], edx
jmp 0x405c8a
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
test eax, eax
je 0x405c85
xor edx, edx
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp - 0x28]
mov eax, ecx
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0xc]
mov ecx, edx
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 4]
mov edx, eax
mov dword [ebp - 0x1c], edx
jmp 0x405c7c
mov ecx, dword [ebp - 0x1c]
movzx eax, word [ecx]
cmp esi, eax
jne 0x405c71
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx]
add ecx, edi
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + 0xc]
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x405c71
test cl, cl
je 0x405c66
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x405c71
add eax, 2
add edx, 2
test cl, cl
jne 0x405c4a
jne 0x405c71
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
add eax, edi
jmp 0x405cc6
inc dword [ebp - 0x14]
add dword [ebp - 0x20], 4
add dword [ebp - 0x1c], 2
mov edx, dword [ebx + 0x18]
dec edx
cmp edx, dword [ebp - 0x14]
jae 0x405c30
inc esi
add dword [ebp - 0x28], 4
mov ecx, dword [ebx + 0x14]
dec ecx
cmp esi, ecx
jbe 0x405c08
jmp 0x405cc4
xor esi, esi
mov eax, dword [ebp - 8]
jmp 0x405cbc
mov ecx, dword [ebx + 0x10]
add ecx, esi
cmp edx, ecx
jne 0x405cb8
cmp dword [eax], 0
je 0x405cb8
mov edx, dword [eax]
shl edx, 6
add edi, edx
mov eax, edi
jmp 0x405cc6
inc esi
add eax, 4
mov ecx, dword [ebx + 0x14]
dec ecx
cmp esi, ecx
jbe 0x405c9f
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405cd0
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffba4
push ebx
push esi
push edi
cmp dword [ebp + 0xc], 0
mov edi, dword [ebp + 0x10]
je 0x405cfa
lea eax, [ebp - 0x45c]
push eax
call fcn.00405f84
pop ecx
test eax, eax
jne 0x405db9
push 0x400
push 0
lea edx, [ebp - 0x45c]
push edx
call fcn.00409b44
add esp, 0xc
lea ecx, [ebp - 0x45c]
push ecx
push 0x1ff
call sub.KERNEL32.DLL_GetTempPathA
push str.YShowWU.exe
lea eax, [ebp - 0x45c]
push eax
call sub.KERNEL32.DLL_lstrcatA
xor edx, edx
mov dword [ebp - 8], edx
push 4
push 0x4ebf48
lea ecx, [ebp - 8]
push ecx
call fcn.00409ad4
add esp, 0xc
push 4
push 0x1000
mov eax, dword [ebp - 8]
push eax
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov ebx, eax
test ebx, ebx
jne 0x405d69
xor eax, eax
jmp 0x405e48
push 0x29318
lea edx, [ebp - 8]
push 0x4ebf4c
push edx
push ebx
call fcn.00416c08
add esp, 0x10
lea ecx, [ebp - 0x45c]
push 0
push 0
push 2
push 0
push 3
push 0xc0000000
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x405db9
push 0
lea eax, [ebp - 4]
push eax
mov edx, dword [ebp - 8]
push edx
push ebx
push esi
call sub.KERNEL32.DLL_WriteFile
push esi
call sub.KERNEL32.DLL_CloseHandle
mov ecx, dword [ebp + 8]
push ecx
lea eax, [ebp - 0x45c]
push eax
call sub.KERNEL32.DLL_lstrcatA
push 0x44
push 0
lea edx, [ebp - 0x4c]
push edx
call fcn.00409b44
add esp, 0xc
mov dword [ebp - 0x4c], 0x44
mov dword [ebp - 0x20], 1
mov word [ebp - 0x1c], 1
push 0x10
push 0
lea ecx, [ebp - 0x5c]
push ecx
call fcn.00409b44
add esp, 0xc
lea eax, [ebp - 0x5c]
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0x45c]
push eax
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push 0
call sub.KERNEL32.DLL_CreateProcessA
test eax, eax
jne 0x405e27
xor eax, eax
jmp 0x405e48
cmp dword [edi], 1
jne 0x405e38
mov edx, dword [ebp - 0x54]
mov eax, 1
mov dword [edi], edx
jmp 0x405e48
push 0xffffffffffffffff
mov edx, dword [ebp - 0x5c]
push edx
call sub.KERNEL32.DLL_WaitForSingleObject
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406248
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf0
mov ecx, 0x82
lea eax, [ebp - 0x208]
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov esi, str.SetupApi.dll
push esi
lea edi, [ebp - 0x208]
mov esi, 0x5154d8
rep movsd dword es:[edi], dword [esi]
pop esi
lea edi, [ebp - 0x410]
push esi
mov esi, 0x5156e1
mov ecx, 0x82
rep movsd dword es:[edi], dword [esi]
pop esi
push 0x104
push eax
call sub.KERNEL32.DLL_GetSystemDirectoryA
push esi
lea edx, [ebp - 0x208]
push edx
call sub.KERNEL32.DLL_lstrcatA
push 8
push 0
lea ecx, [ebp - 0x208]
push ecx
call sub.KERNEL32.DLL_LoadLibraryExA
mov edi, eax
mov dword [ebx + 8], edi
test edi, edi
je 0x406302
lea eax, [esi + 0xe]
push eax
push edi
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x5388c0], eax
lea edx, [esi + 0x23]
push edx
mov ecx, dword [ebx + 8]
push ecx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x5388c4], eax
lea eax, [esi + 0x3f]
push eax
mov edx, dword [ebx + 8]
push edx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x5388c8], eax
lea ecx, [esi + 0x60]
push ecx
mov eax, dword [ebx + 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x5388cc], eax
jmp 0x40631d
push 0x10
lea edx, [esi + 0x82]
push edx
lea ecx, [esi + 0x7d]
push ecx
push 0
call sub.USER32.DLL_MessageBoxA
xor eax, eax
jmp 0x406410
push 0x104
lea edx, [ebp - 0x410]
push edx
call sub.KERNEL32.DLL_GetSystemDirectoryA
lea ecx, [esi + 0x9d]
push ecx
lea eax, [ebp - 0x410]
push eax
call sub.KERNEL32.DLL_lstrcatA
push 8
push 0
lea edx, [ebp - 0x410]
push edx
call sub.KERNEL32.DLL_LoadLibraryExA
mov edi, eax
mov dword [ebx + 0xc], edi
test edi, edi
je 0x4063f0
lea eax, [esi + 0xa6]
push eax
push edi
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x5388d0], eax
lea edx, [esi + 0xb6]
push edx
mov ecx, dword [ebx + 0xc]
push ecx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x5388d4], eax
lea eax, [esi + 0xc6]
push eax
mov edx, dword [ebx + 0xc]
push edx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x5388d8], eax
lea ecx, [esi + 0xd6]
push ecx
mov eax, dword [ebx + 0xc]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x5388dc], eax
lea edx, [esi + 0xec]
push edx
mov ecx, dword [ebx + 0xc]
push ecx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x5388e0], eax
lea eax, [esi + 0xff]
push eax
mov edx, dword [ebx + 0xc]
push edx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x5388e4], eax
lea ecx, [esi + 0x116]
push ecx
mov eax, dword [ebx + 0xc]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x5388e8], eax
jmp 0x40640b
push 0x10
lea edx, [esi + 0x129]
push edx
lea ecx, [esi + 0x123]
push ecx
push 0
call sub.USER32.DLL_MessageBoxA
xor eax, eax
jmp 0x406410
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406d4c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
xor eax, eax
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0xc], 0x104
mov dword [ebp - 0x10], eax
xor ebx, ebx
lea eax, [ebp - 8]
lea edx, [ebp - 0xc]
push eax
push 0
push 0
push 0
push edx
lea ecx, [ebp - 0x114]
push ecx
push esi
mov eax, dword [ebp + 0xc]
push eax
call sub.ADVAPI32.DLL_RegEnumKeyExA
mov ebx, eax
test ebx, ebx
jne 0x406dea
mov dword [ebp - 0xc], 0xc8
push str.HIDVid_3689Pid_8762
call fcn.00409cc4
pop ecx
mov edi, eax
push edi
lea eax, [ebp - 0x110]
push eax
push 0x515c68
call fcn.00409f8c
add esp, 0xc
test eax, eax
jne 0x406dea
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp + 0x10]
jne 0x406de7
push 0x515c94
mov ecx, dword [ebp + 0x14]
push ecx
call sub.KERNEL32.DLL_lstrcpyA
lea eax, [ebp - 0x110]
push eax
mov edx, dword [ebp + 0x14]
push edx
call sub.KERNEL32.DLL_lstrcatA
mov eax, 1
jmp 0x406df5
inc dword [ebp - 0x10]
inc esi
test ebx, ebx
je 0x406d68
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x407d20
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
xor ecx, ecx
push ebx
push esi
push edi
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebx]
mov eax, dword [eax]
mov edx, dword [edx + 4]
mov dword [ebp - 4], esi
mov esi, dword [ebx + 4]
mov dword [ebp - 8], esi
mov esi, dword [ebx + 8]
mov dword [ebp - 0xc], esi
mov ebx, dword [ebx + 0xc]
mov dword [ebp - 0x10], ebx
mov ebx, 0x20
jmp 0x407d8f
add ecx, 0x9e3779b9
mov esi, edx
shl esi, 4
add esi, dword [ebp - 4]
lea edi, [ecx + edx]
xor esi, edi
mov edi, edx
shr edi, 5
add edi, dword [ebp - 8]
xor esi, edi
add eax, esi
mov esi, eax
shl esi, 4
add esi, dword [ebp - 0xc]
lea edi, [ecx + eax]
xor esi, edi
mov edi, eax
shr edi, 5
add edi, dword [ebp - 0x10]
xor esi, edi
add edx, esi
mov esi, ebx
add ebx, 0xffffffff
test esi, esi
jg 0x407d57
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
mov dword [eax + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4083ac
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe5c
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov esi, str.SetupApi.dll
push esi
mov esi, 0x515974
lea edi, [ebp - 0x64]
mov ecx, 0x19
rep movsd dword es:[edi], dword [esi]
pop esi
push esi
mov esi, 0x5159d9
lea edi, [ebp - 0x78]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
pop esi
push esi
mov esi, 0x5159ee
lea edi, [ebp - 0x1a4]
mov ecx, 0x4b
rep movsd dword es:[edi], dword [esi]
pop esi
push ebx
push 0x104
lea eax, [ebp - 0x64]
push eax
lea edx, [esi + 0x3b9]
push edx
lea ecx, [esi + 0x3ae]
push ecx
lea eax, [esi + 0x3a0]
push eax
call sub.KERNEL32.DLL_GetPrivateProfileStringA
push ebx
push 0x14
lea edx, [ebp - 0x78]
push edx
lea ecx, [esi + 0x3d6]
push ecx
lea eax, [esi + 0x3d1]
push eax
lea edx, [esi + 0x3c3]
push edx
call sub.KERNEL32.DLL_GetPrivateProfileStringA
push ebx
push 0x12c
lea ecx, [ebp - 0x1a4]
push ecx
lea eax, [esi + 0x3ee]
push eax
lea edx, [esi + 0x3e9]
push edx
lea ecx, [esi + 0x3db]
push ecx
call sub.KERNEL32.DLL_GetPrivateProfileStringA
lea eax, [ebp - 0x78]
push eax
call fcn.0040e224
pop ecx
push eax
lea edx, [ebp - 0x1a4]
lea ecx, [ebp - 0x64]
push edx
push ecx
call dword [0x5388b0]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408488
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
push 0
push 1
call sub.KERNEL32.DLL_OpenProcess
mov ebx, eax
push 0
push ebx
call sub.KERNEL32.DLL_TerminateProcess
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop ebx
pop ebp
ret

Function at 0x409518
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret

Function at 0x40b028
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x40b044
call fcn.0040c3f4
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x40b05f
test bl, 1
je 0x40b05f
mov dword [0x517d40], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x40b20c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
test byte [ebp + 0xd], 0xc0
jne 0x40b22b
mov eax, dword [0x516e68]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x40b238
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x40b265
je 0x40b277
sub ecx, 0x100
je 0x40b285
sub ecx, 0x100
je 0x40b28c
sub ecx, 0x100
je 0x40b27e
jmp 0x40b293
sub ecx, 0x600
je 0x40b28c
sub ecx, 0x100
je 0x40b277
jmp 0x40b293
mov edi, 1
jmp 0x40b298
mov edi, 2
jmp 0x40b298
mov edi, 4
jmp 0x40b298
mov edi, 5
jmp 0x40b298
mov edi, 3
test byte [ebp + 0xd], 1
je 0x40b2bf
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x5168e0]
test al, 0x80
je 0x40b2b8
mov ebx, 0x80
jmp 0x40b2d1
mov ebx, 1
jmp 0x40b2d1
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x40b2d1
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x40b2e3
je 0x40b2ec
dec eax
je 0x40b2f5
jmp 0x40b2fe
mov dword [ebp - 4], 0x80000000
jmp 0x40b30d
mov dword [ebp - 4], 0x40000000
jmp 0x40b30d
mov dword [ebp - 4], 0xc0000000
jmp 0x40b30d
push 1
call fcn.0040c390
pop ecx
mov ebx, eax
jmp 0x40b3fd
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x40b329
sub eax, 0x10
je 0x40b330
sub eax, 0x10
je 0x40b339
sub eax, 0x10
je 0x40b342
jmp 0x40b342
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x40b349
mov dword [ebp - 8], 1
jmp 0x40b349
mov dword [ebp - 8], 2
jmp 0x40b349
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x40b3b6
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x40b3ab
test byte [ebp + 0xd], 1
je 0x40b3a6
mov ebx, 0x50
jmp 0x40b3ab
mov ebx, 2
push ebx
call fcn.0040c390
pop ecx
mov ebx, eax
jmp 0x40b3fd
mov edi, esi
push edi
call fcn.0040b17c
pop ecx
test eax, eax
je 0x40b3ca
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x40b3d6
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.0040c0d4
add esp, 8
mov ebx, eax
inc eax
jne 0x40b3fd
push 4
call fcn.0040c390
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4102c4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x410326
call fcn.00410274
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.00409cc4
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.00409cc4
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x41038c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x517d48], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x410466
cmp dword [0x517d44], 0
jne 0x410466
cmp dword [0x517f38], 0
je 0x410420
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.00410174
add esp, 8
mov ebx, eax
test eax, eax
jne 0x410406
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00410174
add esp, 8
mov ebx, eax
test eax, eax
jne 0x410406
lea ebx, [ebp - 0x84]
jmp 0x410407
inc ebx
call fcn.00410348
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x4104a1
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x517d4c
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00409cc4
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x517d4f
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x4104a1
cmp dword [0x517d44], 0
je 0x410480
cmp dword [0x517d44], 0xffffffff
je 0x4104a1
push esi
call dword [0x517d44]
pop ecx
mov eax, dword [0x517d48]
test eax, eax
je 0x4104a1
cmp dword [0x517d48], 0xffffffff
je 0x4104a1
cmp byte [eax], 0
je 0x4104a1
push esi
push eax
call fcn.004102c4
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410f1c
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x5391bc], 0
jne 0x410f9d
cmp dword [0x5391dc], 0
jne 0x410f4c
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x5391dc], eax
test eax, eax
jne 0x410f4c
push str.GetEnvironmentStrings_failed
call fcn.004104b8
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x5391dc]
jmp 0x410f60
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.00409cc4
pop ecx
mov edi, eax
test eax, eax
jne 0x410f58
lea edi, [ebp + 1]
push edi
call fcn.00408ad0
pop ecx
mov ebx, eax
mov dword [0x5391c0], ebx
test ebx, ebx
jne 0x410f8a
xor eax, eax
jmp 0x411060
push edi
mov edx, dword [0x5391dc]
push edx
push ebx
call fcn.00409ad4
add esp, 0xc
jmp 0x410fbd
xor esi, esi
mov ebx, dword [0x5391bc]
jmp 0x410fb7
push eax
call fcn.00409cc4
pop ecx
test eax, eax
jne 0x410fb3
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x410fa7
lea ebx, [esi + 4]
push 4
mov dword [0x5391c4], ebx
inc ebx
push ebx
call fcn.0040858c
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x410fe0
xor eax, eax
jmp 0x411060
cmp dword [0x5391bc], 0
jne 0x411011
xor esi, esi
mov ebx, dword [0x5391c0]
mov eax, dword [esp]
mov ebp, eax
jmp 0x411002
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.00409cc4
pop ecx
mov edi, eax
test eax, eax
jne 0x410ff8
jmp 0x411042
xor esi, esi
mov ebx, dword [0x5391bc]
mov eax, dword [esp]
mov edi, eax
jmp 0x41103c
push eax
call fcn.00409cc4
pop ecx
test eax, eax
je 0x411031
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x411035
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x411020
mov eax, dword [0x5391bc]
test eax, eax
je 0x411052
push eax
call fcn.00408ae0
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x5391bc], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x413d00
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, 0x5189a8
test edx, edx
jne 0x413d1f
xor eax, eax
jmp 0x413e3d
mov dword [ebp - 4], 1
cmp byte [ebp - 4], 0
je 0x413d3c
push esi
push edx
push eax
call fcn.00413e44
add esp, 0xc
jmp 0x413e3d
push esi
push edx
push eax
call fcn.00414104
add esp, 0xc
jmp 0x413e3d
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x417414
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
push edi
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
test eax, eax
je 0x417451
push ebx
call sub.KERNEL32.DLL_GetFileType
test eax, eax
je 0x417451
lea edx, [ebp + 0xc]
push edx
mov ecx, dword [ebp + 8]
push ecx
push 0x516918
call fcn.0040cbfc
add esp, 0xc
jmp 0x4175a9
mov eax, dword [ebp + 8]
jmp 0x41752b
lea edx, [ebp + 0xc]
push edx
push eax
push 0xff
lea eax, [ebp - 0x104]
push eax
call fcn.0040ca3c
mov byte [ebp - 5], 0
add esp, 0x10
call sub.KERNEL32.DLL_GetVersion
cmp eax, 0x80000000
jae 0x417594
call fcn.0041735c
test eax, eax
je 0x417594
push str.OPENSSL
push 0
call sub.ADVAPI32.DLL_RegisterEventSourceA
mov ebx, eax
lea eax, [ebp - 0x104]
mov dword [ebp - 4], eax
lea edx, [ebp - 4]
push 0
push edx
push 0
push 1
push 0
push 0
push 0
push 1
push ebx
call sub.ADVAPI32.DLL_ReportEventA
push ebx
call sub.ADVAPI32.DLL_DeregisterEventSource
jmp 0x4175a9
push 0x10
lea ecx, [ebp - 0x104]
push str.OpenSSL:_FATAL
push ecx
push 0
call sub.USER32.DLL_MessageBoxA
mov esp, ebp
mov edi, dword [ebp - 0x110]
mov esi, dword [ebp - 0x10c]
mov ebx, dword [ebp - 0x108]
pop ebp
ret

Function at 0x419568
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
xor ecx, ecx
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x14], edx
mov dword [eax + 0x18], ecx
xor edx, edx
mov dword [eax + 0x5c], edx
mov eax, 1
pop ebp
ret