joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100830fd
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x10170fa8
call fcn.1000367b
xor ebx, ebx
test ecx, ecx
je 0x10083179
cmp ecx, 0xffffffff
je 0x10083179
and dword [ebp - 4], ebx
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x10083172
mov ebx, dword [ecx + 0x3c]
add ebx, ecx
mov dword [ebp - 0x1c], ebx
cmp dword [ebx], 0x4550
jne 0x1008316d
movzx eax, word [ebx + 0x18]
mov esi, 0x10b
cmp ax, si
je 0x10083149
mov ecx, 0x20b
cmp ax, cx
jne 0x1008316d
test edx, edx
je 0x10083172
cmp ax, si
jne 0x1008315b
mov ecx, ebx
call fcn.1003a42b
jmp 0x10083172
push 0x42
pop ecx
mov esi, ebx
mov edi, edx
rep movsd dword es:[edi], dword [esi]
jmp 0x10083172
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 0xfffffffe
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10095728
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, 0x84
test esi, esi
lea edx, [esi - 0xc]
cmove edx, eax
push edx
mov eax, dword [edx]
call dword [eax + 0x18]
push 0x60
test esi, esi
lea eax, [esi - 0x30]
pop ecx
cmove eax, ecx
pop esi
cmp dword [eax], 0
je 0x10095759
push 0
push dword [eax]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
ret 8

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

Disassembly:
push 0x414
mov eax, 0x10121369
call fcn.10003d4a
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x410]
xor ebx, ebx
mov dword [ebp - 0x420], ecx
xor ecx, ecx
mov dword [ebp - 0x41c], 0x200
mov byte [ebp - 0x418], bl
mov dword [ebp - 0x414], ebx
mov dword [ebp - 0x410], ebx
mov word [ebp - 0x40c], cx
lea ecx, [ebp - 0x420]
mov dword [ebp - 4], ebx
push ecx
push eax
call fcn.100a9586
lea eax, [ebp - 0x420]
push eax
call fcn.1003a42b
cmp eax, 0x104
jbe 0x100aaf44
mov eax, dword [ebp - 0x420]
xor ecx, ecx
mov word [eax + 0x208], cx
mov eax, dword [ebp - 0x420]
mov dword [eax - 4], 0x208
mov byte [ebp - 0x418], bl
push dword [ebp - 0x420]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
lea eax, [ebp - 0x420]
push eax
mov ecx, eax
setne bl
call fcn.1003a42b
mov al, bl
call fcn.1000401a
ret 4

Function at 0x100aba1c
Capabilities:
Get file attributes

Disassembly:
push 0x414
mov eax, 0x10121369
call fcn.10003d4a
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x410]
mov edi, dword [ebp + 0xc]
xor edx, edx
mov dword [ebp - 0x420], ecx
xor ecx, ecx
mov dword [ebp - 0x41c], 0x200
mov byte [ebp - 0x418], dl
mov dword [ebp - 0x414], edx
mov dword [ebp - 0x410], edx
mov word [ebp - 0x40c], cx
lea ecx, [ebp - 0x420]
mov dword [ebp - 4], edx
push ecx
push eax
call fcn.100a9586
push dword [ebp - 0x420]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov esi, eax
test edi, edi
je 0x100aba90
mov ecx, esi
shr ecx, 4
and cl, 1
mov byte [edi], cl
lea eax, [ebp - 0x420]
push eax
mov ecx, eax
call fcn.1003a42b
cmp esi, 0xffffffff
setne al
call fcn.1000401a
ret 8
Function at 0x100ac2c0
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x248
mov eax, 0x101214ab
call fcn.10003d4a
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x254], ebx
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x24c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x23c], 0x10135ed8
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x228], ebx
mov word [ebp - 0x224], bx
lea eax, [ebp - 0x254]
mov byte [ebp - 4], 1
push eax
call fcn.1003a42b
mov edi, dword [ebp + 8]
mov edx, ebx
mov ebx, dword [ebp - 0x254]
lea ecx, [ebp - 0x244]
mov dword [ebp - 0x220], 0x105
push ecx
xor ecx, ecx
mov eax, edx
push ecx
push ecx
push ecx
lea ecx, [ebp - 0x220]
inc edx
push ecx
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x248], edx
push ecx
push eax
push ebx
call dword [sym.imp.advapi32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x100ac37b
push 0x80004005
push 0x1e61a561
jmp 0x100ac399
test eax, eax
je 0x100ac39e
call dword [sym.imp.kernel32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
push ecx
push 0x1e61a560
call fcn.100ba828
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x22c], ebx
push eax
lea ecx, [ebp - 0x228]
call fcn.1003a42b
push 0x20019
lea ecx, [ebp - 0x23c]
call fcn.1003a42b
push eax
lea ecx, [ebp - 0x23c]
call fcn.1000530c
push esi
lea eax, [ebp - 0x23c]
push eax
call fcn.1003a42b
mov eax, dword [esi]
mov edx, dword [ebp - 0x248]
cmp eax, dword [edi]
jne 0x100ac333
lea eax, [edi + 4]
xor ecx, ecx
cmp word [eax], cx
je 0x100ac436
lea ecx, [esi + 4]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x100ac422
test dx, dx
je 0x100ac41e
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x100ac422
add ecx, 4
add eax, 4
test dx, dx
jne 0x100ac3fc
xor eax, eax
jmp 0x100ac427
sbb eax, eax
or eax, 1
test eax, eax
je 0x100ac48c
mov edx, dword [ebp - 0x248]
jmp 0x100ac333
mov eax, dword [esi + 0x54]
mov edx, dword [ebp - 0x248]
cmp eax, dword [edi + 0x54]
jne 0x100ac333
mov eax, dword [esi + 0xa8]
cmp eax, dword [edi + 0xa8]
jne 0x100ac333
mov eax, dword [esi + ecx*4 + 0x44]
mov edx, dword [ebp - 0x248]
cmp eax, dword [edi + ecx*4 + 0x44]
jne 0x100ac333
inc ecx
cmp ecx, 4
jne 0x100ac45a
xor ecx, ecx
mov eax, dword [esi + ecx*4 + 0x98]
cmp eax, dword [edi + ecx*4 + 0x98]
jne 0x100ac42b
inc ecx
cmp ecx, 4
jne 0x100ac476
lea ecx, [ebp - 0x23c]
call fcn.1003a42b
test ebx, ebx
je 0x100ac4a2
push ebx
call dword [sym.imp.advapi32.dll_RegCloseKey]
call fcn.1000401a
ret 8

Function at 0x100ada29
Capabilities:
Get geographical location

Disassembly:
push 0x108
mov eax, 0x10121694
call fcn.10003d4a
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x110]
push 0x80
push eax
push 2
push dword [ecx]
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
xor edx, edx
lea ecx, [ebp - 0x110]
test eax, eax
cmovle ecx, edx
push ecx
lea ecx, [ebp - 0x114]
call fcn.1003a42b
mov ecx, dword [eax]
and dword [eax], 0
mov dword [esi], ecx
and dword [ebp - 4], 0
lea ecx, [ebp - 0x114]
call fcn.100050ed
mov eax, esi
call fcn.1000401a
ret 4
Function at 0x100ae7c5
Capabilities:
Get geographical location

Disassembly:
push 0x20c
mov eax, 0x101218a9
call fcn.10003d4a
mov ebx, ecx
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.kernel32.dll_GetLocaleInfoW]
push 0x80
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x210]
push eax
push 0x59
push dword [ebx]
call esi
push 0x80
mov edi, eax
lea eax, [ebp - 0x110]
push eax
push 0x5a
push dword [ebx]
call esi
xor ecx, ecx
mov dword [ebp - 0x214], ecx
and dword [ebp - 4], ecx
test edi, edi
jle 0x100ae846
test eax, eax
jle 0x100ae846
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x214]
push 0x1014fbcc
push eax
call fcn.1003a42b
mov ecx, dword [ebp - 0x214]
add esp, 0x10
mov esi, dword [ebp - 0x218]
and dword [ebp - 0x214], 0
mov dword [esi], ecx
lea ecx, [ebp - 0x214]
mov dword [ebp - 4], 1
call fcn.100050ed
mov eax, esi
call fcn.1000401a
ret 4

Function at 0x100af40a
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x1011ac56
call fcn.10003d4a
mov esi, ecx
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
call fcn.100051f8
test al, al
je 0x100af45e
cmp byte [esi + 0x18], 0
je 0x100af459
push 0x80070002
push 0x1e61a6a0
lea eax, [ebp - 0x24]
push eax
call fcn.100bf210
and dword [ebp - 4], 0
mov ecx, eax
call fcn.100ba2d1
lea ecx, [ebp - 0x24]
call fcn.1003a42b
push 2
pop eax
jmp 0x100af488
push dword [ebp - 0x18]
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push ebx
push eax
mov edx, esi
lea eax, [esi + 4]
neg edx
push 0
sbb edx, edx
and edx, eax
push edi
push dword [edx]
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
push eax
mov ecx, esi
call fcn.1000530c
call fcn.1000401a
ret 0xc

Function at 0x100b0afe
Capabilities:
Initialize hashing via wincrypt

Disassembly:
add ecx, 4
xor eax, eax
push ecx
push eax
push eax
push 0x800c
mov dword [ecx], eax
push dword [0x101a5308]
call dword [sym.imp.advapi32.dll_CryptCreateHash]
test eax, eax
jne 0x100b0b34
call dword [sym.imp.kernel32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov eax, ecx
ret
xor eax, eax
ret

Function at 0x100b0b8a
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push 0xf0000000
push 0x18
push 0
push 0
push 0x101a5308
call dword [sym.imp.advapi32.dll_CryptAcquireContextW]
test eax, eax
setne al
ret
Function at 0x100b1c90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x414
mov eax, 0x10121369
call fcn.10003d4a
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x410]
xor edx, edx
mov dword [ebp - 0x420], ecx
xor ecx, ecx
mov dword [ebp - 0x41c], 0x200
mov byte [ebp - 0x418], dl
mov dword [ebp - 0x414], edx
mov dword [ebp - 0x410], edx
mov word [ebp - 0x40c], cx
lea ecx, [ebp - 0x420]
mov dword [ebp - 4], edx
push ecx
push eax
call fcn.100a9586
push dword [ebp - 0x420]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x100b1d17
call dword [sym.imp.kernel32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
push ecx
push 0x1e61a7d3
call fcn.100ba828
lea eax, [ebp - 0x420]
push eax
mov ecx, eax
call fcn.1003a42b
shr ebx, 4
and bl, 1
mov al, bl
call fcn.1000401a
ret 4

Function at 0x100b22a3
Capabilities:
Get geographical location

Disassembly:
push 0x28
mov eax, 0x10121dcc
call fcn.10003d4a
push 2
lea eax, [ebp - 0x24]
push eax
push 0x23
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
test eax, eax
jne 0x100b22fa
call dword [sym.imp.kernel32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
lea eax, [ebp - 0x34]
push ecx
push 0x1e61a75e
push eax
call fcn.100bf210
and dword [ebp - 4], 0
mov ecx, eax
call fcn.100ba2d1
lea ecx, [ebp - 0x34]
call fcn.1003a42b
cmp word [ebp - 0x24], 0x30
jne 0x100b2320
push 9
lea eax, [ebp - 0x24]
push eax
push 0x28
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
test eax, eax
je 0x100b2320
cmp word [ebp - 0x24], 0
setne al
jmp 0x100b2322
xor al, al
call fcn.1000401a
ret 4

Function at 0x100b3c65
Capabilities:
Get common file path

Disassembly:
push 0x21c
mov eax, 0x10122170
call fcn.10003d4a
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
and dword [ebp - 0x220], 0
and dword [ebp - 4], 0
push esi
call fcn.1003a42b
test al, al
je 0x100b3cb3
lea eax, [ebp - 0x228]
push eax
call fcn.100aedea
lea ecx, [ebp - 0x220]
mov esi, dword [eax]
call fcn.100050ed
mov dword [ebp - 0x220], esi
jmp 0x100b3cc5
push esi
lea ecx, [ebp - 0x220]
call fcn.1003a42b
mov esi, dword [ebp - 0x220]
push esi
call fcn.100a9c92
lea eax, [ebp - 0x21c]
xor esi, esi
push eax
push esi
push ebx
push dword [ebp - 0x220]
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
test eax, eax
jne 0x100b3d05
call dword [sym.imp.kernel32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
push ecx
push 0x1e61a7dc
call fcn.100ba828
mov dword [ebp - 0x224], esi
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x224]
call fcn.1003a42b
mov ecx, dword [ebp - 0x224]
mov dword [ebp - 0x224], esi
mov dword [edi], ecx
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 2
call fcn.100050ed
lea ecx, [ebp - 0x220]
mov dword [ebp - 4], 3
call fcn.100050ed
mov eax, edi
call fcn.1000401a
ret 0xc
Function at 0x100b5f1c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x1012246c
call fcn.10004395
mov eax, dword [ebp + 0xc]
xor esi, esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x428], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x430], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x420], esi
push 0x60
push esi
push ebx
mov byte [ebp - 4], 1
call fcn.100c054f
mov edi, eax
mov dword [ebp - 0x42c], edi
test edi, edi
jne 0x100b5f91
push 2
push esi
push ebx
call fcn.100c054f
mov edi, eax
mov dword [ebp - 0x42c], eax
test edi, edi
jne 0x100b5f91
call fcn.1009400d
mov esi, eax
jmp 0x100b6064
push dword [ebp - 0x424]
push dword [ebp - 0x428]
push edi
call dword [sym.imp.kernel32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x100b5fb4
call fcn.1009400d
jmp 0x100b6057
push ebx
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x424], eax
test eax, eax
je 0x100b5faa
push ebx
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x428], ebx
lea eax, [ebx + 1]
cmp eax, ebx
jae 0x100b5fe4
mov esi, 0x8007000e
jmp 0x100b6059
push eax
lea ecx, [ebp - 0x420]
mov byte [ebp - 4], 2
call fcn.1003a42b
jmp 0x100b600a
cmp dword [ebp - 0x420], 0
mov dword [ebp - 4], 1
je 0x100b5fdd
push ebx
push dword [ebp - 0x420]
push ebx
push dword [ebp - 0x424]
push esi
push esi
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x100b5faa
mov eax, dword [ebp - 0x420]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x420]
call fcn.1003a42b
mov esi, eax
test edi, edi
je 0x100b6064
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x41c]
cmp dword [ebp - 0x420], eax
je 0x100b607d
lea ecx, [ebp - 0x420]
call fcn.100acf22
mov eax, esi
call fcn.100049a7
ret 0x10

Function at 0x100b6bdc
Capabilities:
Terminate process

Disassembly:
push 0x24
mov eax, 0x10122530
call fcn.10004395
mov edi, dword [ebp + 8]
push 0
call fcn.1003a42b
and dword [ebp - 4], 0
mov bl, byte [ebp + 0xc]
mov byte [ebp - 4], 1
test bl, bl
je 0x100b6c1c
test byte [0x101a3c10], 4
je 0x100b6c1c
push 0x666
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
mov eax, dword [0x101a3c14]
test eax, eax
je 0x100b6c32
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x100b6c9f
mov eax, dword [ecx]
push edi
call dword [eax + 8]
test bl, bl
je 0x100b6c80
test dword [edi], 0x80000000
je 0x100b6c80
mov eax, dword [0x101a3c10]
test al, 1
jne 0x100b6c5b
test al, 2
je 0x100b6c80
mov esi, dword [0x101a3d44]
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
cmp eax, esi
jne 0x100b6c80
xor eax, eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], al
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.100ab9dd
lea ecx, [ebp - 0x28]
call fcn.1003a42b
mov dword [ebp - 4], 4
call fcn.10004c05
call fcn.100049a7
ret 8
call sub.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_
int3
Function at 0x100b99a7
Capabilities:
Create thread

Disassembly:
push 0x14
mov eax, 0x10122878
call fcn.10003d4a
mov esi, ecx
xor edi, edi
cmp dword [esi], 0xffffffff
je 0x100b99e1
push 0x80004005
push 0x2e68367a
lea eax, [ebp - 0x20]
push eax
call fcn.100bf210
mov ecx, eax
mov dword [ebp - 4], edi
call fcn.100ba2d1
lea ecx, [ebp - 0x20]
call fcn.1003a42b
mov eax, dword [ebp + 8]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0xc], eax
lea eax, [ebp - 0x14]
push eax
push edi
push esi
push 0x100bf6e0
push edi
push edi
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x100b9a12
or dword [esi], 0xffffffff
call fcn.1000401a
ret 0xc

Function at 0x100b9a1a
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x101228b7
call fcn.10003b41
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
push 0x14
mov dword [ebp - 4], ebx
call fcn.1003a42b
pop ecx
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x100b9a5b
push dword [ebp + 0x14]
mov ecx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call fcn.100a5bef
mov edi, eax
jmp 0x100b9a5d
mov edi, ebx
push esi
mov dword [ebp - 0x10], edi
mov dword [ebp + 0x14], esi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
inc dword [esi + 0x18]
cmp dword [esi + 0x18], 1
mov byte [ebp - 4], 3
jne 0x100b9a84
cmp dword [esi + 0x1c], ebx
jne 0x100b9a84
mov ecx, dword [esi + 0x24]
call fcn.100c8478
push esi
mov byte [ebp - 4], bl
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
push edi
push ebx
push 0x100b9616
mov dword [ebp - 0x10], ebx
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthread]
add esp, 0xc
cmp eax, 0xffffffff
jne 0x100b9ab0
push 0x2e6b6832
call fcn.100ba7d4
call fcn.10003b74
ret 0x10

Function at 0x100b9ab8
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x101228ec
call fcn.10003b41
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
push 0x14
mov dword [ebp - 4], ebx
call fcn.1003a42b
pop ecx
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x100b9afc
push dword [ebp + 0x18]
mov ecx, eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call fcn.100a60ac
mov edi, eax
jmp 0x100b9afe
mov edi, ebx
push esi
mov dword [ebp - 0x10], edi
mov dword [ebp + 0x18], esi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
inc dword [esi + 0x18]
cmp dword [esi + 0x18], 1
mov byte [ebp - 4], 3
jne 0x100b9b25
cmp dword [esi + 0x1c], ebx
jne 0x100b9b25
mov ecx, dword [esi + 0x24]
call fcn.100c8478
push esi
mov byte [ebp - 4], bl
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
push edi
push ebx
push 0x100ba2a1
mov dword [ebp - 0x10], ebx
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthread]
add esp, 0xc
cmp eax, 0xffffffff
jne 0x100b9b51
push 0x2e6b6831
call fcn.100ba7d4
call fcn.10003b74
ret 0x14
Function at 0x100ba91d
Capabilities:
Print debug messages

Disassembly:
push 0x814
mov eax, 0x101229d6
call fcn.10003d4a
mov esi, dword [ebp + 8]
push esi
call fcn.1003a42b
mov edi, eax
mov ecx, 0x3e8
cmp edi, ecx
jle 0x100ba9f6
lea eax, [edi - 0x3e9]
xor edx, edx
div ecx
lea ebx, [eax + 1]
imul ecx, ebx, 0xfffffc18
add edi, ecx
and dword [ebp - 0x814], 0
lea eax, [ebp - 0x810]
and dword [ebp - 0x810], 0
mov dword [ebp - 0x820], eax
xor eax, eax
mov dword [ebp - 0x81c], 0x400
mov byte [ebp - 0x818], 0
mov word [ebp - 0x80c], ax
and dword [ebp - 4], eax
lea eax, [ebp - 0x820]
push eax
push 0x3e8
push esi
call fcn.1003a42b
add esi, 0x7d0
cmp byte [ebp - 0x818], 0
je 0x100ba9cf
push dword [ebp - 0x820]
call fcn.1003a42b
lea ecx, [eax + eax]
mov eax, dword [ebp - 0x820]
mov dword [eax - 4], ecx
mov byte [ebp - 0x818], 0
push dword [ebp - 0x820]
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x820]
push eax
mov ecx, eax
call fcn.1003a42b
sub ebx, 1
jne 0x100ba959
test edi, edi
je 0x100baa01
push esi
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
call fcn.1000401a
ret 4
Function at 0x100bdb63
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push 0x20
mov eax, 0x10122dbc
call fcn.10003d4a
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
test edi, edi
je 0x100bdc98
test ebx, ebx
je 0x100bdc98
xor esi, esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], esi
call fcn.100ae0b3
lea ecx, [ebp - 0x24]
push ecx
push esi
push esi
push 0x8003
push eax
call dword [sym.imp.advapi32.dll_CryptCreateHash]
test eax, eax
je 0x100bdc81
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100bdbb7
push esi
sub ecx, edx
push ecx
push edi
push dword [ebp - 0x24]
call dword [sym.imp.advapi32.dll_CryptHashData]
test eax, eax
je 0x100bdc81
push esi
xor edi, edi
inc edi
push edi
push 0x1015eb4c
push dword [ebp - 0x24]
call dword [sym.imp.advapi32.dll_CryptHashData]
test eax, eax
je 0x100bdc81
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100bdbf4
push esi
sub ecx, edx
push ecx
push ebx
push dword [ebp - 0x24]
call dword [sym.imp.advapi32.dll_CryptHashData]
test eax, eax
je 0x100bdc81
push esi
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x10
push eax
lea eax, [ebp - 0x20]
push eax
push 2
push dword [ebp - 0x24]
call dword [sym.imp.advapi32.dll_CryptGetHashParam]
test eax, eax
je 0x100bdc81
mov ebx, dword [ebp - 0x1c]
push esi
push 0x3c9
push ebx
push dword [ebp - 0x20]
call fcn.10119ee8
movzx eax, word [eax*2 + 0x10133808]
test ax, ax
je 0x100bdc81
mov ecx, dword [ebp - 0x20]
movzx eax, ax
imul eax, eax, 0xc
cmp dword [eax + 0x10133fa0], ecx
jne 0x100bdc64
cmp dword [eax + 0x10133fa4], ebx
je 0x100bdc72
movzx eax, word [eax + 0x10133faa]
test ax, ax
jne 0x100bdc4e
jmp 0x100bdc85
mov ecx, dword [ebp - 0x2c]
mov ax, word [eax + 0x10133fa8]
mov word [ecx], ax
jmp 0x100bdc83
mov edi, esi
mov esi, edi
cmp dword [ebp - 0x24], 0
je 0x100bdc94
push dword [ebp - 0x24]
call dword [sym.imp.advapi32.dll_CryptDestroyHash]
mov eax, esi
jmp 0x100bdc9a
xor eax, eax
call fcn.1000401a
ret 0xc
Function at 0x100da00b
Capabilities:
Allocate thread local storage

Disassembly:
push 4
mov eax, 0x10123ccc
call fcn.10003b41
mov esi, ecx
mov dword [ebp - 0x10], esi
xor eax, eax
mov dword [esi], 0x10168c10
mov dword [esi + 0xc], eax
mov dword [esi + 4], 1
lea ecx, [esi + 0x14]
mov dword [ebp - 4], eax
call fcn.100d8110
call dword [sym.imp.kernel32.dll_TlsAlloc]
mov dword [0x101a55c4], eax
mov eax, esi
call fcn.10003b74
ret

Function at 0x100dab77
Capabilities:
Access peb ldr_data

Disassembly:
push esi
mov esi, ecx
inc dword [esi + 4]
mov dword [esi], 0x1013f5a0
mov dword [esi + 0x10], 0x1013f5b4
mov dword [esi + 0x14], 0x10131488
mov dword [esi + 0x18], 0x1013f62c
mov dword [esi + 0x1c], 0x1013f6a4
mov dword [esi + 0x20], 0x1013f6d0
mov dword [esi + 0x24], 0x1013f6e8
mov dword [esi + 0x28], 0x1013f720
mov ecx, dword [0x101a3580]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, esi
pop esi
jmp fcn.100dc627

Function at 0x100db907
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push esi
mov esi, ecx
inc dword [esi + 4]
mov dword [esi], 0x1014097c
mov dword [esi + 0x10], 0x10140988
mov dword [esi + 0x14], 0x10140aa0
mov ecx, dword [0x101a3580]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, esi
pop esi
jmp fcn.100dd831

Function at 0x100db934
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push esi
mov esi, ecx
inc dword [esi + 4]
mov dword [esi], 0x10140ab0
mov dword [esi + 0x10], 0x10140abc
mov dword [esi + 0x14], 0x10131488
mov ecx, dword [0x101a3580]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, esi
pop esi
jmp fcn.100dd8fe

Function at 0x100e1501
Capabilities:
Get file size
Read file via mapping

Disassembly:
push 8
mov eax, 0x101248d7
call fcn.100046d5
mov edi, ecx
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
push dword [ebp + 8]
mov dword [ebp - 4], esi
call dword [sym.imp.kernel32.dll_CreateFileW]
mov dword [edi + 0x1c], eax
cmp eax, 0xffffffff
jne 0x100e153f
push 0x1e61a05e
call fcn.100ba7d4
push esi
push esi
push esi
push 2
push esi
push dword [edi + 0x1c]
call dword [sym.imp.kernel32.dll_CreateFileMappingW]
mov ebx, dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [edi + 0x20], eax
test eax, eax
jne 0x100e156e
push dword [edi + 0x1c]
call ebx
or dword [edi + 0x1c], 0xffffffff
push 0x1e61a05d
call fcn.100ba7d4
push esi
push esi
push esi
push 4
push dword [edi + 0x20]
call dword [sym.imp.kernel32.dll_MapViewOfFile]
mov dword [edi + 0x24], eax
test eax, eax
jne 0x100e159b
push dword [edi + 0x20]
call ebx
push dword [edi + 0x1c]
call ebx
or dword [edi + 0x1c], 0xffffffff
push 0x1e61a05c
call fcn.100ba7d4
push esi
push dword [edi + 0x1c]
call dword [sym.imp.kernel32.dll_GetFileSize]
mov dword [edi + 0x28], eax
call fcn.10003b74
ret 4