joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000f0e0
Capabilities:
Create directory
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x101561c0]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
mov ebx, dword [esp + 0x214]
push ebp
push esi
push edi
mov edi, ecx
test ebx, ebx
je 0x1000f14b
lea esi, [edi + 0x10]
mov edx, 0x104
mov eax, esi
sub ebx, esi
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x1000f13a
movzx ecx, word [ebx + eax]
test cx, cx
je 0x1000f13a
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x1000f111
sub eax, 2
mov word [eax], dx
jmp 0x1000f255
test edx, edx
jne 0x1000f141
sub eax, 2
xor edx, edx
mov word [eax], dx
jmp 0x1000f255
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x1a]
push ecx
mov ebx, 1
mov word [esp + 0x1c], ax
call fcn.10010900
add esp, 0xc
push 0x104
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.SHFolder.dll
push 0x104
lea eax, [esp + 0x18]
push eax
call fcn.10002360
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x1000f223
push str.SHGetFolderPathW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000f1c6
lea edx, [edi + 0x10]
push edx
push 0
push 0
push 0x8023
push 0
call eax
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
jne 0x1000f223
push str.AhnLab
push 0x104
lea esi, [edi + 0x10]
push esi
call fcn.10002360
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1000f201
call ebp
cmp eax, 0xb7
jne 0x1000f223
push str.AIS
push 0x104
push esi
call fcn.10002360
push 0
push esi
call ebx
test eax, eax
jne 0x1000f245
call ebp
cmp eax, 0xb7
je 0x1000f245
push 0x104
lea esi, [edi + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x1000f245
cmp word [edi + eax*2 + 0xe], 0x5c
jne 0x1000f245
xor ecx, ecx
mov word [edi + eax*2 + 0xe], cx
push str._ai.log
push 0x104
push esi
call fcn.10002360
push 0x2e
push esi
call fcn.1001097a
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x1000f2b3
add edi, 0x218
mov edx, 0x104
mov eax, edi
sub esi, edi
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x1000f2a0
movzx ecx, word [esi + eax]
test cx, cx
je 0x1000f2a0
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x1000f275
sub eax, 2
mov word [eax], dx
push 0x1010a2d4
jmp 0x1000f31e
test edx, edx
jne 0x1000f2a7
sub eax, 2
xor edx, edx
mov word [eax], dx
push 0x1010a2d4
jmp 0x1000f31e
mov ebx, ebp
sub ebx, edi
sub ebx, 0x10
sar ebx, 1
add edi, 0x218
cmp ebx, 0x7ffffffe
jbe 0x1000f2d1
xor eax, eax
mov word [edi], ax
jmp 0x1000f30d
mov edx, 0x104
mov eax, edi
sub esi, edi
lea ebx, [ebx]
lea ecx, [ebx + edx - 0x104]
test ecx, ecx
je 0x1000f301
movzx ecx, word [esi + eax]
test cx, cx
je 0x1000f301
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x1000f2e0
jmp 0x1000f305
test edx, edx
jne 0x1000f308
sub eax, 2
xor edx, edx
mov word [eax], dx
push 0x1010a2d4
push 0x104
push edi
call fcn.10002360
push ebp
push 0x104
push edi
call fcn.10002360
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100108f1
add esp, 0x20c
ret 4
Function at 0x1000f350
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10107370
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x101561c0]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
mov eax, dword [0x101561c0]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, ecx
cmp word [esi + 0x10], 0
lea edi, [esi + 0x10]
mov dword [esp + 0x28], eax
jne 0x1000f3a4
push 0
call fcn.1000f0e0
mov ebx, dword [esi + 4]
mov dword [esp + 0x2c], vtable.CLogMutex.0
mov dword [esp + 0x30], ebx
test ebx, ebx
je 0x1000f3c3
push 0x1388
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [esp + 0x88], 0
mov dword [esp + 0x10], vtable.CAhnI2s_File.0
mov dword [esp + 0x14], 0xffffffff
push 1
push edi
lea ecx, [esp + 0x18]
mov byte [esp + 0x90], 1
call fcn.1000fd40
lea ecx, [esp + 0x10]
test eax, eax
je 0x1000f580
call fcn.1000fdd0
test eax, eax
jl 0x1000f57c
cmp eax, dword [esi + 0x430]
jl 0x1000f468
lea ecx, [esp + 0x10]
call fcn.1000fdb0
lea eax, [esi + 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esi + 0x218]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push 1
push edi
lea ecx, [esp + 0x18]
call fcn.1000fd40
lea ecx, [esp + 0x10]
test eax, eax
je 0x1000f580
call fcn.1000fdd0
test eax, eax
jl 0x1000f57c
cmp eax, dword [esi + 0x430]
jge 0x1000f57c
push 2
push 0
lea ecx, [esp + 0x18]
call fcn.1000feb0
test eax, eax
jl 0x1000f57c
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [esp + 0x26]
movzx eax, word [esp + 0x24]
movzx ecx, word [esp + 0x22]
push edx
movzx edx, word [esp + 0x24]
push eax
movzx eax, word [esp + 0x26]
push ecx
movzx ecx, word [esp + 0x26]
push edx
push eax
movzx eax, word [esp + 0x2c]
push ecx
cdq
mov ecx, 0xa
idiv ecx
push edx
push str._d_x_02d._02d_02d_02d_03d.
lea edx, [esp + 0x54]
push 0x40
push edx
call fcn.100093f0
lea eax, [esp + 0x5c]
push 0x40
push eax
call fcn.1000f8a0
add esp, 0x30
push eax
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x18]
call fcn.1000fe80
mov edx, dword [0x10158450]
push edx
push 0x10158440
lea ecx, [esp + 0x18]
call fcn.1000fe80
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._x:
lea eax, [esp + 0x3c]
push 0x40
push eax
call fcn.100093f0
lea ecx, [esp + 0x44]
push 0x40
push ecx
call fcn.1000f8a0
add esp, 0x18
push eax
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x18]
call fcn.1000fe80
mov edi, dword [esp + 0x28]
push closesocket
push edi
call fcn.1000f8a0
add esp, 8
push eax
push edi
lea ecx, [esp + 0x18]
call fcn.1000fe80
push 2
push 0x1010a2f8
lea ecx, [esp + 0x18]
call fcn.1000fe80
lea ecx, [esp + 0x10]
call fcn.1000fed0
test byte [esi + 0x42c], 1
je 0x1000f57c
lea ecx, [esp + 0x10]
call fcn.1000fef0
lea ecx, [esp + 0x10]
mov byte [esp + 0x88], 0
call fcn.1000ff00
test ebx, ebx
je 0x1000f598
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.100108f1
mov esp, ebp
pop ebp
ret 8
Function at 0x1000fe40
Capabilities:
Read file on windows

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.100112e5
mov edi, dword [esp + 0x10]
mov dword [eax], 0
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 4]
push edi
push eax
push ecx
call fcn.100128a5
add esp, 0xc
xor edx, edx
cmp edi, eax
sete dl
pop edi
pop esi
mov eax, edx
ret 8

Function at 0x1000fed0
Capabilities:
Clear file content

Disassembly:
mov eax, dword [ecx + 4]
push eax
call fcn.100132b8
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
ret

Function at 0x100101f0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x101561c0]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [esp + 0xe]
push ecx
mov word [esp + 0x10], ax
call fcn.10010900
add esp, 0xc
push 0x104
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x10010252
cmp eax, 0x104
jae 0x10010252
push 0x1010a3e0
push 0x104
lea eax, [esp + 0xc]
push eax
call fcn.10002360
jmp 0x10010259
xor ecx, ecx
mov word [esp + 4], cx
mov edx, dword [esp + 0x214]
push edx
push 0x104
lea eax, [esp + 0xc]
push eax
call fcn.10002360
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.10010110
mov ecx, dword [esp + 0x20c]
pop esi
xor ecx, esp
call fcn.100108f1
add esp, 0x20c
ret 4

Function at 0x100108f1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x101561c0]
jne 0x100108fb
repz ret
jmp fcn.10014b2c
Function at 0x1001e868
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.100144a3
and dword [ebp - 4], 0
cmp dword [0x1015925c], 0
mov ebx, eax
jne 0x1001e919
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1001e9ca
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1001e9ca
push eax
call fcn.10014431
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1015925c], eax
call esi
push eax
call fcn.10014431
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10159260], eax
call esi
push eax
call fcn.10014431
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10159264], eax
call esi
push eax
call fcn.10014431
pop ecx
mov dword [0x1015926c], eax
test eax, eax
je 0x1001e919
push 0x1010bc88
push edi
call esi
push eax
call fcn.10014431
pop ecx
mov dword [0x10159268], eax
mov eax, dword [0x10159268]
cmp eax, ebx
je 0x1001e971
cmp dword [0x1015926c], ebx
je 0x1001e971
push eax
call fcn.100144ac
push dword [0x1015926c]
mov esi, eax
call fcn.100144ac
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1001e971
test edi, edi
je 0x1001e971
call esi
test eax, eax
je 0x1001e968
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1001e968
test byte [ebp - 0xc], 1
jne 0x1001e971
or dword [ebp + 0x10], 0x200000
jmp 0x1001e9aa
mov eax, dword [0x10159260]
cmp eax, ebx
je 0x1001e9aa
push eax
call fcn.100144ac
pop ecx
test eax, eax
je 0x1001e9aa
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1001e9aa
mov eax, dword [0x10159264]
cmp eax, ebx
je 0x1001e9aa
push eax
call fcn.100144ac
pop ecx
test eax, eax
je 0x1001e9aa
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1015925c]
call fcn.100144ac
pop ecx
test eax, eax
je 0x1001e9ca
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1001e9cc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10021338
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x101561c0]
xor eax, ebp
mov dword [ebp + 0x94], eax
push 0x110
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.10010900
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor eax, eax
inc eax
cmp dword [ebp - 0x7c], 6
ja 0x10021389
jne 0x10021387
cmp dword [ebp - 0x78], eax
jae 0x10021389
xor eax, eax
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.100108f1
add ebp, 0x98
leave
ret
Function at 0x10021466
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x101561c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
mov esi, 0x206
push esi
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.10010900
xor eax, eax
push esi
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.10010900
add esp, 0x18
test edi, edi
je 0x10021506
push edi
call fcn.1001ee0a
pop ecx
test eax, eax
jbe 0x10021506
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x10021506
push edi
lea eax, [ebp - 0x20c]
push eax
push str._s_s
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.1002140f
add esp, 0x14
test eax, eax
jl 0x10021506
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x10021508
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100108f1
leave
ret

Function at 0x10021515
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
and dword [ebp - 0x18], 0
test ebx, ebx
jne 0x10021528
push 0x57
pop eax
leave
ret
push edi
mov edi, str.wintrust.dll
call fcn.10021466
mov edi, eax
test edi, edi
jne 0x1002154f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10021606
push 0x7e
pop eax
jmp 0x10021606
push esi
call fcn.10021338
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WinVerifyTrust
push edi
mov dword [ebp - 0x14], eax
call esi
push str.WTHelperProvDataFromStateData
push edi
mov dword [ebp - 4], eax
call esi
push str.WTHelperGetProvSignerFromChain
push edi
mov dword [ebp - 8], eax
call esi
push str.WTHelperGetProvCertFromChain
push edi
mov dword [ebp - 0xc], eax
call esi
mov dword [ebp - 0x10], eax
xor eax, eax
cmp dword [ebp - 4], eax
je 0x100215b3
cmp dword [ebp - 8], eax
je 0x100215b3
cmp dword [ebp - 0xc], eax
je 0x100215b3
cmp dword [ebp - 0x10], eax
je 0x100215b3
cmp dword [ebp - 0x14], eax
jne 0x100215cd
push str.WintrustLoadFunctionPointers
push edi
call esi
mov esi, eax
test esi, esi
jne 0x100215d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x100215c2
push 0x7f
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
jmp 0x10021605
mov esi, dword [ebp - 0x18]
jmp 0x100215d4
xor eax, eax
push 0x18
push eax
push ebx
call fcn.10010900
mov eax, dword [ebp - 4]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x10]
add esp, 0xc
cmp dword [ebp - 0x14], 0
mov dword [ebx], edi
mov dword [ebx + 0x10], eax
jne 0x10021603
mov dword [ebx + 0x14], esi
xor eax, eax
pop esi
pop edi
leave
ret
Function at 0x100218f1
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0xf8
mov eax, dword [0x101561c0]
xor eax, ebp
mov dword [ebp + 0x68], eax
mov eax, dword [ebp + 0x7c]
xor ecx, ecx
push ebx
push esi
mov dword [ebp - 0x8c], eax
cmp edi, ecx
je 0x10021aa5
cmp dword [ebp + 0x78], ecx
jl 0x10021aa5
jg 0x1002192f
cmp dword [ebp + 0x74], ecx
jbe 0x10021aa5
cmp eax, ecx
je 0x10021aa5
cmp dword [ebp + 0x78], ecx
mov ebx, 0xf0
jg 0x10021952
jl 0x10021948
cmp dword [ebp + 0x74], ebx
ja 0x10021952
mov eax, 0x22000009
jmp 0x10021aaa
push ebx
push ecx
lea eax, [ebp - 0x88]
push eax
call fcn.10010900
push edi
xor esi, esi
inc esi
push esi
lea eax, [ebp - 0x88]
push 0x40
push eax
call fcn.100fed73
add esp, 0x1c
cmp eax, esi
je 0x10021984
mov eax, 0x22000005
jmp 0x10021aaa
push 2
lea eax, [ebp - 0x88]
push 0x1010c058
push eax
call fcn.1001ce0b
add esp, 0xc
test eax, eax
jne 0x10021948
movzx eax, byte [ebp - 0x49]
movzx ecx, byte [ebp - 0x4a]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 0x4b]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 0x4c]
shl eax, 8
or eax, ecx
xor ecx, ecx
cmp dword [ebp + 0x78], ecx
jg 0x100219cf
jl 0x10021948
cmp dword [ebp + 0x74], eax
jbe 0x10021948
push 0
push eax
push edi
call fcn.100fea4e
add esp, 0xc
test eax, eax
jl 0x1002197a
push edi
push esi
lea eax, [ebp - 0x48]
push 4
push eax
call fcn.100fed73
add esp, 0x10
cmp eax, esi
jne 0x1002197a
push 4
lea eax, [ebp - 0x48]
push 0x1010c050
push eax
call fcn.1001ce0b
add esp, 0xc
test eax, eax
jne 0x10021948
push edi
push esi
lea eax, [ebp - 0x44]
push 0x14
push eax
call fcn.100fed73
add esp, 0x10
cmp eax, esi
jne 0x1002197a
push edi
push esi
lea eax, [ebp - 0x30]
push 2
push eax
call fcn.100fed73
add esp, 0x10
cmp eax, esi
jne 0x1002197a
movzx ax, byte [ebp - 0x2f]
movzx cx, byte [ebp - 0x30]
shl ax, 8
or ax, cx
mov ecx, 0x20b
cmp ax, cx
jne 0x10021a8e
push edi
push esi
push 0x96
lea eax, [ebp - 0x2e]
push eax
call fcn.100fed73
add esp, 0x10
cmp eax, esi
jne 0x1002197a
push ebx
lea eax, [ebp - 0x88]
push eax
push dword [ebp - 0x8c]
call fcn.10010aa0
add esp, 0xc
xor eax, eax
jmp 0x10021aaa
mov ecx, 0x10b
cmp ax, cx
jne 0x10021948
push edi
push esi
push 0x86
jmp 0x10021a60
mov eax, 0x22000001
mov ecx, dword [ebp + 0x68]
pop esi
xor ecx, ebp
pop ebx
call fcn.100108f1
add ebp, 0x6c
leave
ret
Function at 0x1003e2a4
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x18], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
xor eax, eax
inc eax
ret

Function at 0x1003f67c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x101561c0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp edi, eax
je 0x1003f73f
cmp dword [ebp + 0xc], eax
jl 0x1003f73f
jg 0x1003f6aa
cmp dword [ebp + 8], eax
jbe 0x1003f73f
cmp ebx, eax
je 0x1003f73f
cmp dword [ebp + 0xc], eax
jg 0x1003f6c6
jl 0x1003f6bf
cmp dword [ebp + 8], 0x3c
jae 0x1003f6c6
mov eax, 0x22000009
jmp 0x1003f744
push 0x3c
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.10010900
push edi
push 1
lea eax, [ebp - 0x40]
push 0x3c
push eax
call fcn.100fed73
add esp, 0x1c
cmp eax, 1
je 0x1003f6ef
mov eax, 0x22000005
jmp 0x1003f744
push 4
lea eax, [ebp - 0x40]
push str.MSCF
push eax
call fcn.1001ce0b
add esp, 0xc
test eax, eax
jne 0x1003f6bf
test byte [ebp - 0x22], 4
jne 0x1003f713
mov eax, 0x2200000e
jmp 0x1003f744
movzx ax, byte [ebp - 0x1b]
movzx cx, byte [ebp - 0x1c]
shl ax, 8
or ax, cx
push 0x14
pop ecx
cmp cx, ax
jne 0x1003f70c
push 0x3c
lea eax, [ebp - 0x40]
push eax
push ebx
call fcn.10010aa0
add esp, 0xc
xor eax, eax
jmp 0x1003f744
mov eax, 0x22000001
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100108f1
leave
ret
Function at 0x10053720
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
xor ebx, ebx
test ebp, ebp
je 0x10053797
mov al, byte [ebp]
test al, al
je 0x10053797
push esi
mov dword [esp + 0x10], 0x100
push edi
lea ecx, [ecx]
movsx eax, al
push eax
call fcn.10057850
mov esi, eax
or esi, dword [esp + 0x18]
mov ecx, 0x20
mov edi, esi
shr edi, 2
xor edi, esi
and edi, 0xf
add esp, 4
sub ecx, edi
mov eax, ebx
xor edx, edx
call fcn.10100670
add dword [esp + 0x14], 0x100
mov ecx, edi
shl ebx, cl
mov ecx, esi
imul ecx, esi
or eax, ebx
xor eax, ecx
inc ebp
mov ebx, eax
mov al, byte [ebp]
test al, al
jne 0x10053740
pop edi
mov eax, ebx
pop esi
shr eax, 0x10
pop ebp
xor eax, ebx
pop ebx
ret
pop ebp
xor eax, eax
pop ebx
ret

Function at 0x10055580
Capabilities:
Contain obfuscated stackstrings

Disassembly:
cmp dh, al
test dword [ecx + 0x11fffffc], esp
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.1005460d
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
jne 0x100555f6
Function at 0x100579a0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
ret

Function at 0x10059370
Capabilities:
Allocate thread local storage

Disassembly:
push 0
push 0
push 0
call fcn.10041860
add esp, 0xc
test eax, eax
jne 0x10059385
xor eax, eax
ret
push 0
push 0x1015b988
call fcn.10057980
add esp, 8
test eax, eax
je 0x10059382
push ebx
push 0
push 0x1015b98c
call fcn.10057980
add esp, 8
test eax, eax
je 0x10059415
mov eax, dword [0x1015b998]
mov ecx, dword [0x10157548]
push esi
push eax
push ecx
xor ecx, ecx
lea ebx, [ecx + 1]
call fcn.100591b0
mov esi, eax
add esp, 8
test esi, esi
je 0x100593fd
push esi
call fcn.10059040
add esp, 4
test eax, eax
jne 0x100593e7
push esi
call fcn.100587e0
add esp, 4
xor esi, esi
jmp 0x100593fd
push 0x1c
push str.OpenSSL_NIST_SP_800_90A_DRBG
mov dword [esi + 0x58], ebx
push esi
mov dword [esi + 0x5c], ebx
call fcn.10058860
add esp, 0xc
mov dword [0x1015b990], esi
test esi, esi
pop esi
jne 0x10059426
push 0x1015b98c
call fcn.100579f0
add esp, 4
push 0x1015b988
call fcn.100579f0
add esp, 4
xor eax, eax
pop ebx
ret
mov eax, ebx
pop ebx
ret
Function at 0x1005b260
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x208
call fcn.10011fd0
mov eax, dword [0x101561c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
test esi, esi
je 0x1005b2d5
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x1005b2d5
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
lea edx, [ebp - 0x204]
push 0x200
push edx
call fcn.10011286
add esp, 0x10
test eax, eax
jge 0x1005b2b8
mov eax, 0x200
push 0
lea ecx, [ebp - 0x208]
push ecx
push eax
lea edx, [ebp - 0x204]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1005b41e
mov ebx, dword [ebp + 8]
mov eax, ebx
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1005b2e0
sub eax, edx
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.1001f6a0
mov esi, esp
test esi, esi
jne 0x1005b304
mov esi, str.no_stack_
jmp 0x1005b38f
push edi
push esi
push edi
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x1005b331
test edi, edi
jbe 0x1005b331
lea ebx, [ebx]
mov ecx, dword [ebp + 8]
movsx dx, byte [eax + ecx]
mov word [esi + eax*2], dx
inc eax
cmp eax, edi
jb 0x1005b320
xor eax, eax
test edi, edi
jbe 0x1005b38f
cmp word [esi + eax*2], 0x25
jne case.0x1005b354.43
lea ecx, [esi + eax*2 + 2]
movzx edx, word [ecx]
add edx, 0xffffffd6
cmp edx, 0x49
ja case.0x1005b354.43
movzx edx, byte [edx + 0x1005b450]
jmp dword [edx*4 + 0x1005b438]
inc eax
add ecx, 2
jmp 0x1005b342
mov ecx, 0x53
mov word [esi + eax*2 + 2], cx
jmp case.0x1005b354.43
mov edx, 0x73
jmp 0x1005b385
mov ecx, 0x43
mov word [esi + eax*2 + 2], cx
jmp case.0x1005b354.43
mov edx, 0x63
mov word [esi + eax*2 + 2], dx
inc eax
cmp eax, edi
jb 0x1005b337
lea eax, [ebp + 0xc]
push eax
push esi
lea ecx, [ebp - 0x204]
push 0xff
push ecx
call fcn.10010a7a
xor edx, edx
add esp, 0x10
mov word [ebp - 6], dx
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x1005b408
call fcn.1005b120
test eax, eax
jle 0x1005b408
push str.OpenSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x1005b41e
push 0
lea ecx, [ebp - 0x208]
push ecx
push 0
push 1
push 0
push 0
push 0
push 1
lea eax, [ebp - 0x204]
push esi
mov dword [ebp - 0x208], eax
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
jmp 0x1005b41e
push 0x10
push str.OpenSSL:_FATAL
lea edx, [ebp - 0x204]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea esp, [ebp - 0x214]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100108f1
mov esp, ebp
pop ebp
ret