joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100757a
Capabilities:
Initialize winsock library

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x100d060]
and dword [ebp - 0x198], 0
cmp dword [0x100d094], 0
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x19c], eax
jne 0x10075de
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [0x100110c]
test eax, eax
je 0x10075d4
call dword [0x1001108]
push eax
call dword [fcn.01001080]
xor eax, eax
jmp 0x1007684
mov dword [0x100d094], 1
push esi
push edi
push ebx
call dword [fcn.01001088]
mov esi, eax
lea eax, [esi + 5]
push 1
push eax
call dword [sym.imp.msvcrt.dll_calloc]
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x100760f
push 0x8007000e
call dword [fcn.01001080]
call fcn.01007fcb
jmp 0x100764f
push esi
push edi
push ebx
call fcn.010080ab
push edi
call dword [0x1001114]
cmp eax, 0xffffffff
mov dword [ebp - 0x198], eax
jne 0x1007638
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push 0x800300fd
jmp 0x1007602
push 2
push 4
lea eax, [ebp - 0x198]
push eax
call dword [0x1001118]
mov esi, eax
test esi, esi
jne 0x1007653
xor eax, eax
jmp 0x1007682
push edi
call dword [sym.imp.msvcrt.dll_free]
cmp dword [ebp + 0x10], 0
mov eax, dword [esi]
pop ecx
jne 0x1007671
push 0x100184c
push eax
call dword [sym.imp.msvcrt.dll_strtok]
pop ecx
pop ecx
push 0xf
push dword [ebp - 0x19c]
push eax
call fcn.01008156
xor eax, eax
inc eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.01006d41
leave
ret 0xc
Function at 0x10079fc
Capabilities:
Connect network resource

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x100d060]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x408], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x410], eax
mov eax, dword [ebp + 0x14]
push 0x7e
mov dword [ebp - 0x40c], eax
pop ecx
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x404], ebx
lea edi, [ebp - 0x400]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x7e
pop ecx
mov dword [ebp - 0x204], ebx
xor eax, eax
lea edi, [ebp - 0x200]
rep stosd dword es:[edi], eax
push esi
stosw word es:[edi], ax
call fcn.010076ba
cmp eax, 1
jne 0x1007aa9
cmp dword [ebp - 0x408], ebx
je 0x1007aa2
push dword [ebp - 0x408]
call dword [fcn.01001088]
test eax, eax
je 0x1007aa2
mov esi, 0xa0010001
push esi
call dword [fcn.01001080]
push 0x157e
call fcn.01008c99
push eax
call fcn.01007d44
mov eax, esi
jmp 0x1007bf1
xor eax, eax
jmp 0x1007bf1
mov edi, dword [0x1001048]
push esi
lea eax, [ebp - 0x204]
push eax
call edi
push esi
call fcn.01007696
cmp eax, 1
jne 0x1007ad1
add esi, 4
push esi
lea eax, [ebp - 0x204]
push eax
call edi
lea eax, [ebp - 0x204]
push eax
call fcn.0100744e
test eax, eax
jne 0x1007aec
call dword [fcn.01001044]
jmp 0x1007bf1
mov esi, 0x10012d4
push esi
lea eax, [ebp - 0x404]
push eax
call edi
cmp dword [ebp - 0x40c], ebx
je 0x1007b37
push dword [ebp - 0x40c]
call dword [fcn.01001088]
test eax, eax
je 0x1007b37
push dword [ebp - 0x40c]
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x404]
push 0x100187c
push eax
call dword [0x1001100]
add esp, 0x10
jmp 0x1007b53
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x404]
push 0x1001850
push eax
call dword [0x1001100]
add esp, 0xc
push 8
pop ecx
xor eax, eax
push ebx
push dword [ebp - 0x408]
lea edi, [ebp - 0x430]
push dword [ebp - 0x410]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x404]
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x430]
push eax
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x414], ebx
mov dword [ebp - 0x420], ebx
call fcn.0100b6a8
mov edi, eax
cmp edi, ebx
je 0x1007bb3
cmp edi, 0x4b8
je 0x1007bac
call fcn.01007fcb
jmp 0x1007bef
call fcn.01008022
jmp 0x1007bef
push esi
xor edi, edi
call fcn.01007d44
lea eax, [ebp - 0x204]
push eax
call fcn.010077c0
cmp eax, 0x1388
jae 0x1007bef
lea eax, [ebp - 0x204]
push eax
call fcn.010079df
push 0x157f
call fcn.01008c99
push eax
call fcn.01007d44
mov edi, 0x4b8
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01006d41
leave
ret 0x10
Function at 0x4386b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x22000]
push edi
or ebp, 0xffffffff
jmp 0x4386d2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4386d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4386c8
mov eax, 1
add ebx, ebx
jne 0x4386eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4386e0
jne 0x4386fc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4386e0
xor ecx, ecx
sub eax, 3
jb 0x438710
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x438782
mov ebp, eax
add ebx, ebx
jne 0x43871b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x438728
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x43874c
inc ecx
add ebx, ebx
jne 0x438738
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x43872d
jne 0x438749
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43872d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x43876c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43875d
jmp 0x4386ce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43876c
add edi, ecx
jmp 0x4386ce
pop esi
mov edi, esi
mov ecx, 0xf9c
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43878a
cmp byte [edi], 5
jne 0x43878a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x43878f
lea edi, [esi + 0x35000]
mov eax, dword [edi]
or eax, eax
je 0x438807
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x39204]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x392b8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4387bc
mov ecx, edi
jns 0x4387eb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x392bc]
or eax, eax
je 0x438801
mov dword [ebx], eax
add ebx, 4
jmp 0x4387d9
call dword [esi + 0x392c4]
mov ebp, dword [esi + 0x392c0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x43883b
sub esp, 0xffffff80
jmp 0x40e5ed
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408e84
nop
mov ecx, 0x43366ce9
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x587a4d9b
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x4067c1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x4067e6
mov eax, dword [0x40a914]
cmp eax, 0xffffffff
je 0x4067dd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a914], 0xffffffff
jmp 0x406859
cmp dword [0x442aa0], ebx
je 0x406859
cmp byte [0x4426a0], bl
je 0x406825
cmp dword [0x40a914], 0xffffffff
jne 0x40682e
push 4
push 0x40000000
push 0x4426a0
call fcn.00406183
cmp eax, 0xffffffff
mov dword [0x40a914], eax
je 0x406859
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a914], 0xffffffff
je 0x406859
push esi
mov esi, 0x446ae0
push 0x40aae8
push esi
call fcn.004064d7
lea eax, [ebp + 8]
push ebx
push eax
push esi
call fcn.004064ca
push eax
push esi
push dword [0x40a914]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

Function at 0x406a01
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x44228c], esi
push edi
jne 0x406a3b
mov ecx, 0x442288
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x406a17
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x442688
jl 0x406a12
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x406a70
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x442288]
xor eax, esi
inc ecx
dec edx
jne 0x406a53
pop edi
pop esi
not eax
ret 0xc

Function at 0x40699a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c574], 0
push esi
jne 0x4069d1
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4069ab
mov dword [ecx*4 + 0x42c570], eax
inc ecx
cmp ecx, 0x100
jl 0x4069a6
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406a02
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42c570]
xor eax, esi
inc ecx
dec edx
jne 0x4069e4
pop edi
not eax
pop esi
ret 0xc
Function at 0x46fed0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push es
mov ax, 0x101f
mov es, eax
xor eax, eax
mov esi, eax
mov ecx, 0x8000
xor al, byte es:[esi]
inc esi
loop 0x46fee5
pop es
mov byte [ebp - 1], al
cmp byte [ebp - 1], 0
jne 0x46fef9
mov byte [ebp - 1], 0x55
mov al, byte [ebp - 1]
mov edx, dword [ebp + 8]
mov byte [edx], al
xor eax, eax
pop esi
pop ecx
pop ebp
ret

Function at 0x4022c0
Capabilities:
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 4]
push esi
push 8
xor eax, eax
shl ecx, 1
pop esi
sar ecx, 1
mov edx, eax
xor edx, ecx
test dl, 1
je 0x4022e0
shr eax, 1
xor eax, 0xedb88320
jmp 0x4022e2
shr eax, 1
dec esi
jne 0x4022cc
pop esi
ret 4

Function at 0x402309
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
mov eax, dword [0x4082a0]
mov edx, ecx
dec ecx
test edx, edx
je 0x40233c
push edi
lea edx, [ecx + 1]
mov ecx, dword [esp + 8]
push esi
movzx esi, byte [ecx]
movzx edi, al
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x407ea0]
xor eax, esi
inc ecx
dec edx
jne 0x402322
pop esi
pop edi
mov dword [0x4082a0], eax
ret

Function at 0x404779
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x40840e]
test eax, eax
jg 0x40478c
and dword [0x4083d4], 0
xor eax, eax
ret
push edi
push esi
mov esi, 0x800
cmp eax, esi
ja 0x404799
mov esi, eax
mov edi, dword [0x4060ac]
push esi
push dword [0x4083d0]
push dword [0x407e04]
call edi
cmp dword [0x407e14], 0
mov ecx, eax
mov dword [0x4083d4], ecx
je 0x404808
cmp ecx, 0xffffffff
je 0x404808
cmp ecx, esi
je 0x404819
test ecx, ecx
jl 0x404808
mov ax, word [0x4078d0]
push dword [0x407e18]
inc ax
push eax
call fcn.00401f2a
mov ecx, dword [0x4083d4]
test ecx, ecx
jne 0x404801
push esi
push dword [0x4083d0]
push dword [0x407e04]
call edi
mov ecx, eax
mov dword [0x4083d4], ecx
cmp ecx, 0xffffffff
je 0x404808
mov esi, ecx
cmp ecx, esi
je 0x404819
push 2
call fcn.00402971
mov ecx, dword [0x4083d4]
sub dword [0x40840e], ecx
mov esi, dword [0x4083d0]
cmp dword [0x407e08], 0
mov dword [0x40841c], esi
je 0x40485b
mov eax, ecx
mov edx, eax
dec eax
test edx, edx
je 0x40485b
lea edi, [eax + 1]
call 0x4060cc
xor byte [esi], al
movzx eax, byte [esi]
push eax
call 0x4060e2
inc esi
dec edi
pop ecx
jne 0x404840
mov ecx, dword [0x4083d4]
mov eax, ecx
dec ecx
pop esi
mov dword [0x4083d4], ecx
pop edi
ret
Function at 0x631c12d0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
movzx ebx, word [eax]
test bx, bx
je 0x631c13e6
mov esi, eax
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x631c12f0
sub eax, esi
add eax, 2
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov edi, eax
test eax, eax
jne 0x631c131b
jmp 0x631c1403
movzx ebx, word [esi]
add eax, 2
add esi, 2
mov word [eax - 2], bx
test bx, bx
jne 0x631c1318
movzx ebx, word [edi]
test bx, bx
je 0x631c1368
lea esi, [esi]
mov eax, edi
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x631c1340
mov edx, eax
sub edx, edi
cmp eax, edi
je 0x631c1368
lea eax, [edi + edx - 2]
cmp word [eax], 0x5c
jne 0x631c1368
xor ebx, ebx
mov word [eax], bx
movzx ebx, word [edi]
test bx, bx
jne 0x631c1338
mov eax, dword fs:[0x18]
mov dword [ebp - 0x1c], eax
mov dword [esp + 4], 0
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
sub esp, 8
mov ebx, eax
test eax, eax
jne 0x631c13ce
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x34]
cmp eax, 0xb7
je 0x631c13ce
cmp eax, 3
jne 0x631c13d3
mov dword [esp + 4], 0x5c
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_wcsrchr]
mov esi, eax
test eax, eax
je 0x631c13d3
xor ecx, ecx
mov word [eax], cx
mov eax, edi
call sym._create_full_path
test eax, eax
je 0x631c13d3
mov edx, 0x5c
mov word [esi], dx
jmp 0x631c1371
mov ebx, 1
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll_malloc]
mov edi, eax
test eax, eax
je 0x631c1403
xor eax, eax
mov word [edi], ax
jmp 0x631c132d
xor ebx, ebx
jmp 0x631c13dc
Function at 0x631c1410
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
push ebx
sub esp, 0x3c
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], ecx
movzx esi, word [ebx]
test si, si
je 0x631c1560
mov eax, ebx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x631c1438
sub eax, ebx
sar eax, 1
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
lea eax, [eax + edi + 1]
add eax, eax
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x28], eax
call eax
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x631c156c
mov edx, dword [ebp - 0x24]
add edi, edi
mov dword [esp], eax
mov dword [esp + 8], edi
mov dword [esp + 4], edx
call sym._memcpy
mov eax, dword [ebp - 0x1c]
mov ecx, ebx
add eax, edi
mov edi, esi
jmp 0x631c1493
movzx edi, word [ecx]
add eax, 2
add ecx, 2
mov word [eax - 2], di
test di, di
jne 0x631c1490
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp + 8]
lea eax, [eax + edx + 1]
add eax, eax
mov dword [esp], eax
mov eax, dword [ebp - 0x28]
call eax
mov edi, eax
test eax, eax
je 0x631c1573
mov eax, dword [ebp + 8]
mov dword [esp], edi
lea ecx, [eax + eax]
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [ebp - 0x20], ecx
call sym._memcpy
mov ecx, dword [ebp - 0x20]
add ecx, edi
jmp 0x631c14eb
movzx esi, word [ebx]
add ecx, 2
add ebx, 2
mov word [ecx - 2], si
test si, si
jne 0x631c14e8
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], 0
xor ebx, ebx
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CopyFileW]
sub esp, 0xc
test eax, eax
je 0x631c1540
mov eax, dword [ebp - 0x1c]
mov esi, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], eax
call esi
mov dword [esp], edi
call esi
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword fs:[0x18]
mov ebx, dword [eax + 0x34]
movzx eax, bx
or eax, 0x80070000
test ebx, ebx
cmovg ebx, eax
jmp 0x631c151b
mov dword [ebp - 0x20], 0
jmp 0x631c1448
mov ebx, 0x8007000e
jmp 0x631c152e
mov eax, dword [ebp - 0x1c]
mov ebx, 0x8007000e
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x631c152e
Function at 0x631c75c0
Capabilities:
Hash data via bcrypt

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [esi], 0
mov edx, dword [eax + 0x12c]
cmp edx, 0xffffffff
je 0x631c7749
add edx, dword [eax + 0xc]
je 0x631c7749
cmp dword [eax + 0x230], 4
je 0x631c76f0
movzx edx, word [edx + 0x10]
add edx, dword [eax + 0x238]
mov eax, edx
movzx edx, byte [edx]
lea edi, [eax + 1]
movzx ecx, dl
test dl, dl
jns 0x631c7637
mov ecx, edx
movzx esi, dl
and ecx, 0xffffffc0
cmp cl, 0x80
je 0x631c7730
and edx, 0xffffffe0
mov ecx, 0xffffffff
xor edi, edi
cmp dl, 0xc0
je 0x631c7700
lea eax, [ebp - 0x2c]
mov dword [esp + 0x18], 0x14
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0x31
call sym._BCryptHash_28
sub esp, 0x1c
mov esi, eax
test eax, eax
jne 0x631c7749
lea eax, [ebp - 0x19]
lea ecx, [ebp - 0x34]
lea edi, [ebp - 0x21]
movzx edx, byte [eax]
dec eax
inc ecx
mov byte [ecx - 1], dl
cmp edi, eax
jne 0x631c7680
mov dword [esp], 0x24
call dword [sym.imp.ucrtbase.dll_malloc]
mov ecx, eax
test eax, eax
je 0x631c7750
xor eax, eax
lea esi, [esi]
movzx edx, byte [ebp + eax - 0x34]
mov ebx, edx
and edx, 0xf
shr bl, 4
movzx edx, word [edx + edx + str.0123456789abcdef_u._u._u._u]
movzx edi, bl
movzx edi, word [edi + edi + str.0123456789abcdef_u._u._u._u]
mov word [ecx + eax*4 + 2], dx
mov word [ecx + eax*4], di
inc eax
cmp eax, 8
jne 0x631c76a8
xor eax, eax
mov word [ecx + 0x20], ax
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [edx + 0x10]
jmp 0x631c75fe
movzx edx, byte [eax + 1]
movzx ecx, byte [eax + 2]
shl esi, 0x18
lea edi, [eax + 4]
and esi, 0x1f000000
shl ecx, 8
shl edx, 0x10
or edx, ecx
movzx ecx, byte [eax + 3]
or edx, ecx
mov ecx, edx
or ecx, esi
jmp 0x631c7637
shl esi, 8
movzx ecx, byte [eax + 1]
lea edi, [eax + 2]
mov edx, esi
and edx, 0x3f00
or ecx, edx
jmp 0x631c7637
mov esi, 0x80004005
jmp 0x631c76e2
mov esi, 0x8007000e
jmp 0x631c76e2
Function at 0x631c7f90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x631c7feb
cmp byte [esi + ebx - 1], 0xa
je 0x631c7fbf
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x631cf2c4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x402dfc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404480
test esi, esi
jne 0x402e33
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404570
jmp 0x402e54
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402c98
mov dword [esp], eax
test esi, esi
je 0x402e54
cmp dword [ebx], 0
je 0x402e54
dec esi
jmp 0x402e3b
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x4034fc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x454020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403594
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403574
xor eax, eax
push ebp
push 0x40356d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4035b0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403574
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x454020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x454020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404278
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x456048], 0
je 0x4042d9
cmp word [0x45621c], 0xd7b2
jne 0x4042a1
cmp dword [0x456224], 0
jbe 0x4042a1
mov eax, 0x456218
call dword [0x456234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45406c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404300
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x454030], 0
jne 0x4042f5
push 0
push 0x454064
push 0x45406c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404434
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402a38
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x456049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4043fc
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4060a4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x40610a
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004046f0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004030c0
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4060f4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406111
lea eax, [ebp - 0x10]
call fcn.00404480
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404940
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4088a5
test al, 0x10
jne 0x4088a9
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40b3e0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b419
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404570
jmp 0x40b422
mov eax, ebx
mov edx, esi
call fcn.004044d4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b42c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b44d
mov al, byte [esp]
jmp 0x40b44f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40bae4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b94c
mov eax, dword [0x4550c8]
cmp byte [eax], 0
je 0x40bb60
mov eax, dword [0x454ee0]
call fcn.00402f2c
call fcn.00402bc4
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408a94
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40bba8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bb96
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x454e8c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x456664]
call fcn.00405510
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret