joyce8/EMBER2024-capa huggingface dataset:
Function at 0xb0db560
Capabilities:
Accept command line arguments

Disassembly:
push 0x64
mov eax, 0xb11bd16
call fcn.0b0f342f
lea eax, [ebp - 0x68]
xor esi, esi
push eax
mov dword [ebp - 0x64], esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
mov dword [ebp - 0x6c], edi
test edi, edi
je 0xb0db712
xor ebx, ebx
cmp dword [ebp - 0x68], ebx
jle 0xb0db70b
push dword [edi + ebx*4]
lea ecx, [ebp - 0x28]
call fcn.0b0db7e3
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 7
mov edx, dword [ebp - 0x28]
cmova eax, edx
seta byte [ebp - 0x59]
cmp word [eax], 0x2d
jne 0xb0db6f5
cmp byte [ebp - 0x59], 0
lea ecx, [ebp - 0x28]
je 0xb0db5d3
mov ecx, edx
mov eax, edx
jmp 0xb0db5d6
lea eax, [ebp - 0x28]
mov edi, dword [ebp - 0x18]
sub ecx, eax
sar ecx, 1
mov eax, edi
sub eax, ecx
mov dword [ebp - 0x60], ecx
xor ecx, ecx
inc ecx
cmp eax, ecx
cmovb ecx, eax
cmp byte [ebp - 0x59], 0
lea eax, [ebp - 0x28]
cmovne eax, edx
mov edx, dword [ebp - 0x60]
sub edi, ecx
mov dword [ebp - 0x70], edi
lea edx, [eax + edx*2]
mov eax, edi
sub eax, dword [ebp - 0x60]
lea ecx, [edx + ecx*2]
lea eax, [eax*2 + 2]
push eax
push ecx
push edx
call fcn.0b0f4200
add esp, 0xc
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 1
lea edi, [ebp - 0x40]
mov edx, dword [ebp - 0x70]
xor eax, eax
stosd dword es:[edi], eax
or esi, 1
push 0xf
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x64], esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and dword [ebp - 0x30], 0
pop eax
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x40], 0
cmp edx, eax
jbe 0xb0db65c
push dword [ebp - 0x6c]
lea ecx, [ebp - 0x40]
push edx
call fcn.0b0bf74c
and dword [ebp - 0x30], 0
mov edx, dword [ebp - 0x18]
cmp dword [ebp - 0x14], 7
lea esi, [ebp - 0x28]
lea eax, [ebp - 0x28]
cmova esi, dword [ebp - 0x28]
seta cl
test cl, cl
cmovne eax, dword [ebp - 0x28]
lea edi, [eax + edx*2]
jmp 0xb0db687
movzx eax, byte [esi]
lea ecx, [ebp - 0x40]
push eax
call fcn.0b0dd354
add esi, 2
cmp esi, edi
jne 0xb0db678
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x58]
call fcn.0b0de0b9
push eax
mov byte [ebp - 4], 2
call fcn.0b0db822
lea ecx, [ebp - 0x58]
call fcn.0b0bf84d
mov esi, dword [ebp - 0x60]
mov eax, dword [ebp - 0x2c]
and esi, 0xfffffffe
push 0xf
pop edi
cmp eax, edi
jbe 0xb0db6e7
mov ecx, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x64], ecx
cmp eax, 0x1000
jb 0xb0db6de
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.0b0b546b
mov eax, dword [ebp - 0x60]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x64]
push eax
push ecx
call fcn.0b0f26d7
pop ecx
pop ecx
and dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], edi
mov edi, dword [ebp - 0x6c]
mov byte [ebp - 0x40], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0b0c3179
inc ebx
cmp ebx, dword [ebp - 0x68]
jl 0xb0db59a
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
call fcn.0b0f33ed
ret
Function at 0xb0de873
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
mov eax, dword [0xa401080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x44
lea eax, [ebp - 0x15c]
mov ebx, edx
push 0
push eax
mov esi, ecx
call fcn.0b0f4780
xor eax, eax
mov dword [ebp - 0x15c], 0x44
lea edi, [ebp - 0x118]
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
cmp dword [ebx + 0x14], 0xf
jbe 0xb0de8d0
mov ebx, dword [ebx]
cmp dword [esi + 0x14], 0xf
jbe 0xb0de8d8
mov esi, dword [esi]
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x108]
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov eax, dword [ebp - 0x114]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0xb0de914
cmp eax, 0xffffffff
je 0xb0de914
push eax
call esi
mov eax, dword [ebp - 0x118]
test eax, eax
je 0xb0de926
cmp eax, 0xffffffff
je 0xb0de926
push eax
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0b0f26c9
leave
ret
Function at 0xb0dea2f
Capabilities:
Get common file path

Disassembly:
push 0x16c
mov eax, 0xb11c512
call fcn.0b0f342f
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x168], esi
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x11c]
push 0x104
push 0
mov dword [ebp - 0x16c], esi
push eax
mov dword [ebp - 0x168], 1
call fcn.0b0f4780
add esp, 0xc
lea eax, [ebp - 0x11c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0xb0dec47
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x14c]
call fcn.0b0bfa23
and dword [ebp - 4], 0
mov eax, 0x7fffffff
sub eax, dword [ebp - 0x13c]
mov ecx, dword [edi + 0x10]
cmp eax, ecx
jb 0xb0dec68
cmp dword [ebp - 0x138], 0xf
lea eax, [ebp - 0x14c]
cmova eax, dword [ebp - 0x14c]
cmp dword [edi + 0x14], 0xf
jbe 0xb0dead3
mov edi, dword [edi]
push ecx
push edi
push dword [ebp - 0x13c]
push eax
push ecx
push dword [ebp - 0x168]
mov ecx, esi
call fcn.0b0dee72
xor eax, eax
mov dword [ebp - 0x168], 7
lea edi, [ebp - 0x134]
stosd dword es:[edi], eax
push 0xf
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and dword [ebp - 0x124], 0
pop edi
mov dword [ebp - 0x120], edi
mov byte [ebp - 0x134], 0
lea edx, [ebp - 0x134]
mov dword [ebp - 4], 2
mov ecx, esi
call fcn.0b0dc0e4
mov edx, ebx
test al, al
jne 0xb0debb8
push ecx
mov ecx, esi
call fcn.0b0dbf87
pop ecx
test al, al
jne 0xb0deb69
push esi
mov edx, 0xb0a8628
lea ecx, [ebp - 0x164]
call fcn.0b0dee20
pop ecx
push eax
lea ecx, [ebp - 0x178]
mov byte [ebp - 4], 3
call fcn.0b0c3231
jmp 0xb0dec57
mov eax, dword [ebp - 0x120]
cmp eax, edi
jbe 0xb0dec20
mov ecx, dword [ebp - 0x134]
inc eax
mov dword [ebp - 0x16c], eax
mov dword [ebp - 0x168], ecx
cmp eax, 0x1000
jb 0xb0dec17
lea eax, [ebp - 0x16c]
push eax
lea eax, [ebp - 0x168]
push eax
call fcn.0b0b546b
mov eax, dword [ebp - 0x16c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x168]
jmp 0xb0dec17
lea ecx, [ebp - 0x134]
call fcn.0b0c2453
test al, al
jne 0xb0debd2
push ecx
mov edx, ebx
mov ecx, esi
call fcn.0b0dbf87
pop ecx
mov eax, dword [ebp - 0x120]
cmp eax, edi
jbe 0xb0dec20
mov ecx, dword [ebp - 0x134]
inc eax
mov dword [ebp - 0x168], eax
mov dword [ebp - 0x16c], ecx
cmp eax, 0x1000
jb 0xb0dec17
lea eax, [ebp - 0x168]
push eax
lea eax, [ebp - 0x16c]
push eax
call fcn.0b0b546b
mov eax, dword [ebp - 0x168]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x16c]
push eax
push ecx
call fcn.0b0f26d7
pop ecx
pop ecx
and dword [ebp - 0x124], 0
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x120], edi
mov byte [ebp - 0x134], 0
call fcn.0b0bf84d
mov eax, esi
call fcn.0b0f33ed
ret
push 0xb0a8610
lea ecx, [ebp - 0x178]
call fcn.0b0bf689
push 0xb0b2a9c
lea eax, [ebp - 0x178]
push eax
call fcn.0b0f418e
call fcn.0b0bf878
int3
Function at 0xb0e1063
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
jne 0xb0e1072
push 0x10
pop eax
pop ebp
ret
xor ecx, ecx
mov dword [eax + 8], 0x6a09e667
mov dword [eax + 0x28], ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0x3c6ef372
mov dword [eax + 0x14], 0xa54ff53a
mov dword [eax + 0x18], 0x510e527f
mov dword [eax + 0x1c], 0x9b05688c
mov dword [eax + 0x20], 0x1f83d9ab
mov dword [eax + 0x24], 0x5be0cd19
xor eax, eax
pop ebp
ret

Function at 0xb0e1395
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfc
mov eax, dword [0xa401080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov bx, dx
mov dword [ebp - 0xfc], eax
push edi
mov word [ebp - 0xf6], bx
mov edi, ecx
xor esi, esi
movzx edx, byte [esi + 0xb09ee30]
mov eax, edx
shr edx, 3
and eax, 7
mov ecx, dword [eax*4 + 0xb0967b0]
movzx eax, byte [edx + edi]
and eax, ecx
cmp eax, ecx
sete al
mov byte [ebp + esi - 0x3c], al
inc esi
cmp esi, 0x38
jb 0xb0e13c2
xor esi, esi
cmp bx, 1
jne 0xb0e13fe
push 0xf
pop ecx
sub ecx, esi
add ecx, ecx
jmp 0xb0e1401
lea ecx, [esi + esi]
and dword [ebp + ecx*4 - 0xf0], 0
and dword [ebp + ecx*4 - 0xf4], 0
xor eax, eax
movzx edx, byte [esi + 0xb09f070]
cmp edx, 0x1c
jae 0xb0e1425
mov bl, byte [ebp + edx - 0x3c]
jmp 0xb0e1429
mov bl, byte [ebp + edx - 0x58]
mov byte [ebp + eax - 0x74], bl
inc eax
inc edx
cmp eax, 0x1c
jb 0xb0e141a
cmp eax, 0x38
jae 0xb0e145c
movzx edx, byte [esi + 0xb09f070]
add edx, eax
cmp edx, 0x38
jae 0xb0e144d
mov bl, byte [ebp + edx - 0x3c]
jmp 0xb0e1451
mov bl, byte [ebp + edx - 0x58]
mov byte [ebp + eax - 0x74], bl
inc eax
inc edx
cmp eax, 0x38
jb 0xb0e1442
xor edx, edx
movzx eax, byte [edx + 0xb09a7d0]
mov edi, edx
cmp byte [ebp + eax - 0x74], 0
je 0xb0e147c
mov eax, dword [edi*4 + 0xb096550]
or dword [ebp + ecx*4 - 0xf4], eax
movzx eax, byte [edx + 0xb09a7e8]
cmp byte [ebp + eax - 0x74], 0
je 0xb0e1498
mov eax, dword [edi*4 + 0xb096550]
or dword [ebp + ecx*4 - 0xf0], eax
inc edx
cmp edx, 0x18
jb 0xb0e145e
mov bx, word [ebp - 0xf6]
inc esi
cmp esi, 0x10
jb 0xb0e13ef
mov edx, dword [ebp - 0xfc]
lea ecx, [ebp - 0xf4]
pop edi
pop esi
pop ebx
call fcn.0b0e14cf
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0b0f26c9
leave
ret
Function at 0xb0e241d
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
jne 0xb0e242c
push 0x10
pop eax
pop ebp
ret
xor ecx, ecx
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
mov dword [eax + 0x1c], ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
xor eax, eax
pop ebp
ret
Function at 0xb0e492c
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
jne 0xb0e493b
push 0x10
pop eax
pop ebp
ret
xor ecx, ecx
mov dword [eax + 8], 0xf3bcc908
mov dword [eax + 0x48], ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 0xc], 0x6a09e667
mov dword [eax + 0x10], 0x84caa73b
mov dword [eax + 0x14], 0xbb67ae85
mov dword [eax + 0x18], 0xfe94f82b
mov dword [eax + 0x1c], 0x3c6ef372
mov dword [eax + 0x20], 0x5f1d36f1
mov dword [eax + 0x24], 0xa54ff53a
mov dword [eax + 0x28], 0xade682d1
mov dword [eax + 0x2c], 0x510e527f
mov dword [eax + 0x30], 0x2b3e6c1f
mov dword [eax + 0x34], 0x9b05688c
mov dword [eax + 0x38], 0xfb41bd6b
mov dword [eax + 0x3c], 0x1f83d9ab
mov dword [eax + 0x40], 0x137e2179
mov dword [eax + 0x44], 0x5be0cd19
xor eax, eax
pop ebp
ret

Function at 0xb0e53bc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
and dword [ebp - 4], 0
and dword [ebp - 8], 0
push esi
mov esi, edx
mov dword [ebp - 0x10], ecx
mov eax, esi
mov dword [ebp - 0x1c], eax
test esi, esi
je 0xb0e546a
push ebx
push edi
dec esi
xor ebx, ebx
push 8
mov dword [ebp - 0x18], esi
mov esi, dword [ebp - 8]
pop eax
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 4]
dec eax
mov dword [ebp - 0x14], eax
call fcn.0b119224
mov edi, eax
call fcn.0b119224
cmp edi, eax
jne 0xb0e5414
xor esi, 1
call fcn.0b119224
cmp edi, eax
je 0xb0e5405
mov dword [ebp - 8], esi
call fcn.0b119224
mov edi, eax
call fcn.0b119224
cmp edi, eax
jne 0xb0e543c
mov esi, dword [ebp - 4]
xor esi, 1
call fcn.0b119224
cmp edi, eax
je 0xb0e5427
mov dword [ebp - 4], esi
mov esi, dword [ebp - 8]
mov ebx, dword [ebp - 4]
cmp esi, ebx
je 0xb0e53f5
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
add ebx, ebx
or ebx, esi
mov dword [ebp - 0xc], ebx
test eax, eax
jne 0xb0e53ee
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x18]
mov byte [ecx], bl
inc ecx
mov dword [ebp - 0x10], ecx
test esi, esi
jne 0xb0e53df
mov eax, dword [ebp - 0x1c]
pop edi
pop ebx
pop esi
leave
ret
Function at 0xb0e9358
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0xa401080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, 0xffffffff
je 0xb0e9463
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0xb0e945c
inc edi
cmp dword [ebp - 0x20], 0x10
jb 0xb0e9420
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0xb0e9420
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0xb0e9420
mov edx, dword [esi]
test edx, edx
jne 0xb0e93e9
push 0x200
push edx
push dword [0xa417a8c]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0xb0e9445
lea ebx, [esi + 8]
jmp 0xb0e9413
mov eax, dword [esi + 4]
lea ebx, [esi + 8]
cmp dword [ebx], eax
jb 0xb0e9413
add eax, eax
mov dword [esi + 4], eax
shl eax, 2
push eax
push edx
push 0
push dword [0xa417a8c]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0xb0e9474
mov dword [esi], edx
mov ecx, dword [ebx]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [ebx]
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0xb0e93a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0xb0e945c
xor edi, edi
cmp dword [esi], edi
je 0xb0e945c
push dword [esi]
push edi
push dword [0xa417a8c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [esi], edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0b0f26c9
leave
ret
mov ebx, dword [ebp - 0x24]
jmp 0xb0e9445

Function at 0xb0e9479
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], edx
xor esi, esi
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
call fcn.0b0e9358
test eax, eax
jne 0xb0e949d
push 9
pop esi
jmp 0xb0e94e4
cmp dword [edi], esi
je 0xb0e94e4
push ebx
mov ebx, esi
cmp dword [edi + 8], esi
jbe 0xb0e94e3
mov eax, dword [edi]
push dword [eax + ebx*4]
push esi
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 4], eax
test eax, eax
je 0xb0e94dd
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
call fcn.0b0e9206
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [edi + 8]
jb 0xb0e94a9
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0xb0e94ea
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
je 0xb0e9536
push edi
xor edi, edi
cmp dword [esi + 8], edi
jbe 0xb0e9525
push ebx
mov eax, dword [esi]
push dword [eax + edi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0xb0e951e
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0xb0e94fb
pop ebx
push dword [esi]
push 0
push dword [0xa417a8c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
ret

Function at 0xb0e9538
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
imul edi, ecx, 0x2c
mov esi, edx
mov dword [ebp - 0x10], esi
add edi, dword [0xb065240]
mov dword [ebp - 8], edi
mov eax, dword [edi]
mov cl, byte [edi + 0x14]
and cl, 1
lea ebx, [eax - 5]
cmove ebx, eax
movzx eax, cl
lea ecx, [ebp - 4]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push ebx
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0xb0e9587
push 0xa
pop eax
jmp 0xb0e9607
test esi, esi
je 0xb0e95a8
mov byte [ebx], 0xe9
mov eax, dword [edi + 4]
sub eax, ebx
sub eax, 5
mov dword [ebx + 1], eax
test byte [edi + 0x14], 1
je 0xb0e95c7
mov eax, dword [edi]
mov word [eax], 0xf9eb
jmp 0xb0e95c7
test byte [edi + 0x14], 1
je 0xb0e95bc
lea esi, [edi + 0xc]
mov edi, ebx
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 8]
jmp 0xb0e95c7
mov eax, dword [edi + 0xc]
mov dword [ebx], eax
mov al, byte [edi + 0x10]
mov byte [ebx + 4], al
mov esi, dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov edx, dword [ebp - 0x10]
mov cl, dl
add cl, cl
shl dl, 2
xor cl, byte [edi + 0x14]
and cl, 2
xor cl, byte [edi + 0x14]
xor dl, cl
and dl, 4
xor dl, cl
xor eax, eax
mov byte [edi + 0x14], dl
pop edi
pop esi
pop ebx
leave
ret

Function at 0xb0e9ca6
Capabilities:
Allocate or change rwx memory

Disassembly:
mov edx, dword [0xb06523c]
push esi
xor esi, esi
jmp 0xb0e9cb8
cmp dword [edx + 4], esi
jne 0xb0e9d0c
mov edx, dword [edx]
test edx, edx
jne 0xb0e9cb1
push 0x40
push 0x3000
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
test edx, edx
je 0xb0e9d08
push edi
push 0x20
lea ecx, [edx + 0x20]
mov dword [edx + 8], esi
pop edi
mov dword [ecx], esi
mov eax, ecx
mov dword [edx + 4], ecx
add edi, 0x20
add ecx, 0x20
mov esi, eax
cmp edi, 0xfe0
jbe 0xb0e9cdf
mov eax, dword [0xb06523c]
mov dword [edx], eax
mov dword [0xb06523c], edx
pop edi
test edx, edx
jne 0xb0e9d0c
xor eax, eax
pop esi
ret
mov eax, dword [edx + 4]
pop esi
mov ecx, dword [eax]
inc dword [edx + 8]
mov dword [edx + 4], ecx
ret
Function at 0xb0f1ad2
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push 0xb084218
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0xb0f1af9
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0xb0f1afc
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.0b0f1aae
pop esi
leave
ret 8

Function at 0xb0f374b
Capabilities:
Parse pe header

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

Function at 0xb109556
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0xb08752c
push 0xb087524
push 0xb084f18
push 0x1f
call fcn.0b109381
mov esi, eax
add esp, 0x10
test esi, esi
je 0xb10958a
push dword [ebp + 8]
mov ecx, esi
call dword [0xb066288]
call esi
jmp 0xb109590
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0xb1095d4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0xb08753c
push 0xb087534
push 0xb084f3c
push 0x21
call fcn.0b109381
mov esi, eax
add esp, 0x10
test esi, esi
je 0xb10960b
push dword [ebp + 8]
mov ecx, esi
call dword [0xb066288]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0xb109613
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0xb087544
push 0xb08753c
push 0xb084f50
push 0x22
call fcn.0b109381
mov esi, eax
add esp, 0x10
test esi, esi
je 0xb10964d
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0xb066288]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0xb10c5f1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0b0f39b0
mov eax, dword [0xa401080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0b108c53
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0xb10c633
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0xb10c78f
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0b118c40
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0xa4174c0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0b10d3f2
mov ecx, dword [esi*4 + 0xa4174c0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0xb10c788
cmp eax, dword [ecx + edi + 0x24]
jne 0xb10c788
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0xb10c788
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0b10d3f2
add esp, 0x14
test edx, edx
jl 0xb10c788
jg 0xb10c6fe
test eax, eax
jb 0xb10c788
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0xb10c788
jl 0xb10c718
cmp dword [ebp - 0x1008], eax
ja 0xb10c788
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0xb10c736
test ebx, ebx
je 0xb10c76f
cmp ecx, edi
jae 0xb10c76f
mov al, byte [ecx]
cmp al, 0xd
jne 0xb10c750
lea eax, [edi - 1]
cmp ecx, eax
jae 0xb10c75c
cmp byte [ecx + 1], 0xa
jne 0xb10c75c
inc ecx
jmp 0xb10c75c
movzx eax, al
movsx eax, byte [eax + 0xa4014e0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0xb10c736
cmp edx, ebx
jne 0xb10c736
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0xb10c78d
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0b0f26c9
leave
ret