joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002d1b
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x1002ce2
mov eax, 0x80004003
jmp 0x1002d54
and dword [eax], 0
push esi
push edi
push 0x240
mov edi, 0x8007000e
call fcn.01006dea
pop ecx
test eax, eax
je 0x1002d09
push dword [ebp + 8]
mov ecx, eax
call fcn.010023c4
mov esi, eax
jmp 0x1002d0b
xor esi, esi
test esi, esi
je 0x1002d50
push ebx
lea ebx, [esi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea ecx, [esi + 8]
call fcn.01001b18
mov edi, eax
test edi, edi
jl 0x1002d2a
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
pop ebx
test edi, edi
jne 0x1002d47
push dword [ebp + 0x10]
mov eax, dword [esi]
push dword [ebp + 0xc]
push esi
call dword [eax]
mov edi, eax
test edi, edi
je 0x1002d50
push 1
mov ecx, esi
call fcn.01002792
mov eax, edi
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x100601b
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push 8
mov eax, 0x100a2e3
call fcn.010073ba
mov edi, ecx
and dword [ebp - 4], 0
push edi
lea ecx, [ebp - 0x14]
call fcn.01004a10
mov eax, dword [edi + 0x1c]
mov esi, dword [eax]
mov byte [ebp - 4], 1
cmp esi, eax
je 0x100601b
mov ecx, dword [esi + 8]
mov edx, dword [ecx + 4]
cmp edx, dword [ebp + 8]
jne 0x1006017
push 1
call fcn.01005e7c
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [edi + 0x18]
call fcn.01005f76
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x1006029
mov esi, dword [esi]
jmp 0x1005fda
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0x80070057
call fcn.0100746e
ret 4

Function at 0x100608e
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push 0xc
mov eax, 0x100a30b
call fcn.010073ba
mov esi, ecx
and dword [ebp - 4], 0
push esi
lea ecx, [ebp - 0x14]
call fcn.01004a10
mov byte [ebp - 4], 1
cmp dword [esi + 0x20], 0
jbe 0x100608a
mov eax, dword [esi + 0x1c]
mov edi, dword [eax]
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x100606e
push 1
call fcn.01005e7c
push edi
lea eax, [ebp - 0x18]
push eax
lea ecx, [esi + 0x18]
call fcn.01005f76
jmp 0x1006055
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
call fcn.0100746e
ret
Function at 0x100782b
Capabilities:
Set socket configuration

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x100d258]
and dword [ebp - 8], 0
and dword [ebp - 4], 0
push ebx
push edi
mov edi, 0xbb40e64e
mov ebx, 0xffff0000
cmp eax, edi
je 0x1007820
test ebx, eax
je 0x1007820
not eax
mov dword [0x100d25c], eax
jmp 0x100787b
push esi
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov esi, dword [ebp - 4]
xor esi, dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0xc]
xor eax, dword [ebp - 0x10]
xor esi, eax
cmp esi, edi
je 0x1007867
test dword [0x100d258], ebx
jne 0x100786c
mov esi, 0xbb40e64f
mov dword [0x100d258], esi
not esi
mov dword [0x100d25c], esi
pop esi
pop edi
pop ebx
leave
ret

Function at 0x1008b2d
Capabilities:
Set socket configuration

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
push edi
push dword [ebp + 0xc]
lea eax, [ebp + 8]
push eax
call fcn.01008ac2
xor esi, esi
inc esi
test al, al
je 0x1008b7b
mov ecx, dword [ebp + 8]
cmp byte [ecx], 0x2c
jne 0x1008b67
lea eax, [esi + edi]
push eax
push dword [ebp + 0xc]
lea eax, [ebp + 8]
inc ecx
push eax
mov dword [ebp + 8], ecx
call fcn.01008ac2
inc esi
cmp esi, 6
jl 0x1008b3e
mov ecx, dword [ebp + 8]
test al, al
je 0x1008b7b
cmp esi, 6
jne 0x1008b7b
mov eax, dword [ebp + 0x14]
sub ecx, ebx
mov dword [eax], ecx
mov al, 1
jmp 0x1008b7d
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x1008d5e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x1c], 2
mov dword [ebp - 0xc], edi
lea eax, [esi + 8]
je 0x1008d52
mov eax, esi
mov eax, dword [eax]
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 8], edi
call fcn.01009b49
test eax, eax
jne 0x1008ddf
mov eax, dword [0x100d6d4]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push edi
push dword [ebp - 0x10]
push eax
call dword [ecx + 0x14]
cmp eax, edi
mov dword [ebp - 0xc], eax
jl 0x1008da2
mov eax, dword [0x100d6d4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 1
push eax
call dword [ecx + 0x28]
mov dword [ebp - 0xc], eax
jmp 0x1008da5
mov dword [ebp - 4], edi
push ebx
push dword [ebp - 8]
call dword [sym.imp.WS2_32.dll_ntohs]
mov eax, dword [ebp - 4]
mov ebx, dword [ebp - 8]
push eax
mov dword [esi + 0x20], eax
lea eax, [esi + 0x2c]
push eax
mov word [esi + 0x28], bx
call fcn.01008be5
mov edi, eax
mov byte [edi + esi + 0x2c], 0x2c
inc edi
push ebx
lea eax, [edi + esi + 0x2c]
push eax
call fcn.01008c55
add eax, edi
mov dword [esi + 0x44], eax
pop ebx
mov eax, dword [ebp - 0xc]
pop edi
pop esi
leave
ret
Function at 0x1008e08
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x1c]
push edi
xor edi, edi
dec eax
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
je 0x1008e1c
dec eax
jne 0x1008e4d
mov eax, dword [esi + 8]
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 8]
push ecx
push eax
call fcn.01009b49
jmp 0x1008e2f
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 8]
push ecx
push eax
call fcn.01009b49
mov dword [ebp - 8], edi
mov ecx, dword [esi + 0x20]
movzx ebx, word [esi + 0x28]
mov dword [ebp - 0xc], ecx
mov ecx, dword [esi + 0x24]
mov dword [ebp - 0x14], ecx
movzx ecx, word [esi + 0x2a]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
cmp eax, edi
je 0x1008e54
mov eax, 0x80004005
jmp 0x1008e8e
mov eax, dword [0x100d6d4]
lea edx, [ebp - 0x18]
push edx
push edi
push edi
push 1
push edi
push dword [ebp - 8]
mov dword [ebp - 0x18], edi
mov ecx, dword [eax]
push ebx
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 1
push eax
call dword [ecx + 0x20]
cmp eax, edi
jl 0x1008e8e
push edi
push edi
push ebx
push dword [ebp - 0x18]
lea ecx, [esi + 0x4c]
call fcn.01008844
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1008ee4
Capabilities:
Create tcp socket
Set socket configuration

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
xor eax, eax
test ecx, ecx
je 0x1008eae
cmp ecx, 0x7fffffff
jbe 0x1008eb3
mov eax, 0x80070057
test eax, eax
jl 0x1008ef7
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
test ecx, ecx
je 0x1008eea
mov edx, dword [ebp + 0x10]
push edi
mov edi, 0x7ffffffe
sub edi, ecx
sub edx, eax
lea ecx, [edi + esi]
test ecx, ecx
je 0x1008ee5
mov cl, byte [edx + eax]
test cl, cl
je 0x1008ee5
mov byte [eax], cl
inc eax
dec esi
jne 0x1008ed1
pop edi
test esi, esi
jne 0x1008ef0
dec eax
mov ebx, 0x8007007a
mov byte [eax], 0
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0xc

Function at 0x10090a6
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
push esi
push edi
mov edi, ecx
mov ecx, 0xc0000120
mov eax, ecx
je 0x100902a
mov eax, dword [ebp + 8]
test eax, eax
je 0x10090a7
cmp eax, 0x3e3
je 0x1009066
cmp eax, 0x2775
je 0x100906a
cmp eax, 0x2746
je 0x100906a
cmp eax, 0x274c
je 0x100906a
cmp eax, 0x2742
je 0x100906a
cmp eax, 0x2736
je 0x100906a
cmp eax, 0x274a
je 0x100906a
cmp eax, 0x2745
je 0x100906a
cmp eax, ecx
jne 0x100906f
push dword [ebp + 0x10]
jmp 0x100908e
mov esi, dword [ebp + 0x10]
push dword [esi + 0x14]
push edi
push 0x10092ca
push 0
push dword [esi + 0x38]
push esi
push dword [esi + 8]
call fcn.0100980c
test eax, eax
je 0x10090b6
push esi
call fcn.01008962
mov ecx, edi
call fcn.01008f49
test eax, eax
je 0x10090b6
mov ecx, edi
call fcn.01008d11
jmp 0x10090b6
push dword [ebp + 0x10]
call fcn.01008962
mov ecx, edi
call fcn.01008f49
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x43d87f
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00437f52
xor ebx, ebx
cmp dword [0x45e980], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x43d955
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x43da35
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x43da35
push eax
call fcn.00437ee4
mov dword [esp], 0x449308
push edi
mov dword [0x45e980], eax
call esi
push eax
call fcn.00437ee4
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x45e984], eax
call esi
push eax
call fcn.00437ee4
mov dword [0x45e988], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004386f0
test eax, eax
pop ecx
pop ecx
je 0x43d923
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00435db5
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x43d955
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00437ee4
cmp eax, ebx
pop ecx
mov dword [0x45e990], eax
je 0x43d955
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00437ee4
pop ecx
mov dword [0x45e98c], eax
mov eax, dword [0x45e98c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x43d9da
cmp dword [0x45e990], ecx
je 0x43d9da
push eax
call fcn.00437f5b
push dword [0x45e990]
mov esi, eax
call fcn.00437f5b
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x43d9da
cmp edi, ebx
je 0x43d9da
call esi
cmp eax, ebx
je 0x43d9a7
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43d9a7
test byte [ebp - 0x18], 1
jne 0x43d9da
lea eax, [ebp - 0x10]
push eax
call fcn.00438727
test eax, eax
pop ecx
je 0x43d9c2
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00435db5
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x43d9d1
or dword [ebp + 0x10], 0x200000
jmp 0x43da15
or dword [ebp + 0x10], 0x40000
jmp 0x43da15
mov eax, dword [0x45e984]
cmp eax, dword [ebp - 8]
je 0x43da15
push eax
call fcn.00437f5b
cmp eax, ebx
pop ecx
je 0x43da15
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x43da15
mov eax, dword [0x45e988]
cmp eax, dword [ebp - 8]
je 0x43da15
push eax
call fcn.00437f5b
cmp eax, ebx
pop ecx
je 0x43da15
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45e980]
call fcn.00437f5b
cmp eax, ebx
pop ecx
je 0x43da35
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43da37
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x403594
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x585008], 0x8088405
inc edx
mov dword [ebx + 0x585008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41c674
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41c6a5
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41c68d
add dl, dl
jne 0x41c6b0
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41c701
xor eax, eax
add dl, dl
jne 0x41c6bd
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41c79e
add dl, dl
jne 0x41c6cc
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41c6d7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41c6e2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41c6ed
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41c6f7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41c69c
mov eax, 1
add dl, dl
jne 0x41c70f
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41c71a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41c706
sub eax, ebx
mov ebx, 1
jne 0x41c74d
mov ecx, 1
add dl, dl
jne 0x41c733
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41c73e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41c72a
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41c69c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41c764
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41c76f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41c75b
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41c69c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41c7bf
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41c69c
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41d33c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
test dl, dl
je 0x41d34f
add esp, 0xfffffff0
call fcn.00403d6c
mov esi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00403af4
mov byte [ebx + 4], 0
cmp dword [esi + 0x5c], 0
jne 0x41d375
cmp dword [esi + 0x58], 0x40
jb 0x41d55b
jmp 0x41d37b
jl 0x41d55b
lea eax, [ebx + 0xc]
mov edx, 0x40
call fcn.00406e44
push 0
push 0
push 0
push 0x40
lea edx, [ebx + 0xc]
mov eax, esi
call fcn.0041cef4
cmp word [ebx + 0xc], 0x5a4d
jne 0x41d55b
mov ecx, dword [ebx + 0x48]
test ecx, ecx
jle 0x41d55b
cmp ecx, 0x10000
jge 0x41d55b
mov eax, ecx
add eax, 4
add eax, 0x14
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41d3d6
cmp eax, dword [esi + 0x58]
ja 0x41d55b
jmp 0x41d3dc
jg 0x41d55b
lea eax, [ebx + 0x4c]
mov edx, 4
call fcn.00406e44
mov eax, dword [ebx + 0x48]
cdq
push edx
push eax
push 0
push 4
lea edx, [ebx + 0x4c]
mov eax, esi
call fcn.0041cef4
cmp dword [ebx + 0x4c], 0x4550
jne 0x41d55b
lea eax, [ebx + 0x50]
mov edx, 0x14
call fcn.00406e44
mov eax, dword [ebx + 0x48]
add eax, 4
cdq
push edx
push eax
push 0
push 0x14
lea edx, [ebx + 0x50]
mov eax, esi
call fcn.0041cef4
mov ax, word [ebx + 0x50]
cmp ax, 0x8664
jne 0x41d493
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
add eax, 0xf0
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41d457
cmp eax, dword [esi + 0x58]
ja 0x41d4e4
jmp 0x41d45d
jg 0x41d4e4
lea eax, [ebx + 0x144]
mov edx, 0xf0
call fcn.00406e44
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
cdq
push edx
push eax
push 0
push 0xf0
lea edx, [ebx + 0x144]
mov eax, esi
call fcn.0041cef4
mov byte [ebx + 4], 1
jmp 0x41d4e4
cmp ax, 0x14c
jne 0x41d4e4
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
add eax, 0xe0
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41d4b4
cmp eax, dword [esi + 0x58]
ja 0x41d4e4
jmp 0x41d4b6
jg 0x41d4e4
lea eax, [ebx + 0x64]
mov edx, 0xe0
call fcn.00406e44
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
cdq
push edx
push eax
push 0
push 0xe0
lea edx, [ebx + 0x64]
mov eax, esi
call fcn.0041cef4
mov byte [ebx + 4], 1
cmp byte [ebx + 4], 0
je 0x41d55b
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
movzx edx, word [ebx + 0x60]
add eax, edx
mov di, word [ebx + 0x52]
movzx edx, di
shl edx, 3
lea edx, [edx + edx*4]
add eax, edx
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41d515
cmp eax, dword [esi + 0x58]
ja 0x41d55b
jmp 0x41d517
jg 0x41d55b
movzx eax, di
push eax
lea eax, [ebx + 8]
mov ecx, 1
mov edx, dword [0x56fe0c]
call fcn.00405b38
add esp, 4
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
movzx edx, word [ebx + 0x60]
add eax, edx
cdq
push edx
push eax
movzx eax, word [ebx + 0x52]
shl eax, 3
lea eax, [eax + eax*4]
xor edx, edx
push edx
push eax
mov edx, dword [ebx + 8]
mov eax, esi
call fcn.0041cef4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x41d572
call fcn.00403dc4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x41e270
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x57172f
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41e321
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x41e30a
test esi, esi
jbe 0x41e321
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.00408868
test eax, eax
jne 0x41e2fc
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41e321
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e2d9
jmp 0x41e321
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e321
mov eax, ecx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x571736
ret
Function at 0x41eb80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0x57212f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404c94
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41ebbb
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41ebd4
lea eax, [ebp - 0x10]
mov edx, dword [0x587188]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404cf4
jmp 0x41ebe7
lea eax, [ebp - 0x10]
mov edx, dword [0x587188]
mov edx, dword [edx]
mov edx, dword [edx + 0x14]
call fcn.00404cf4
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41ebf3
adc edx, 0
mov edx, dword [edx*4 + 0x585ca8]
call fcn.00404ee4
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404ec8
push eax
call fcn.00406ab8
mov esi, eax
cmp esi, 0xffffffff
je 0x41ed01
mov eax, 0x40
call fcn.00403250
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406d00
test eax, eax
je 0x41ecf4
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41ecf4
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406d58
mov eax, edi
call fcn.00403270
mov eax, 0x18
call fcn.00403250
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406d00
test eax, eax
je 0x41ecf4
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41ecf4
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41ecf4
cmp dx, 0x150
ja 0x41ecf4
mov eax, edi
call fcn.00403270
mov eax, 0xe0
call fcn.00403250
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406d00
test eax, eax
je 0x41ecf4
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41ecf4
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404cd0
mov eax, edi
call fcn.00403270
push esi
call fcn.00406a70
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.00404ff0
jne 0x41ed19
inc ebx
cmp ebx, 0x19
jne 0x41ebad
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x572136
lea eax, [ebp - 0x10]
call fcn.00404c94
ret
Function at 0x5c91a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x6c6f60]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x114]
push esi
mov esi, dword [ebp + 0xc]
push eax
push 1
push 0
push str.SOFTWAREGuidGuidold
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x110], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5c92e4
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x10c], 0x104
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push str.guid
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5c92e4
push str._n_CPU_INFO:
call fcn.004cbc00
lea eax, [ebp - 0x108]
push eax
push 0x66b43c
call fcn.004cbc00
add esp, 0xc
cmp byte [ebp - 0x108], 0
jne 0x5c924d
xor ecx, ecx
jmp 0x5c925f
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5c9256
sub ecx, edx
push ecx
lea eax, [ebp - 0x108]
mov ecx, ebx
push eax
call fcn.00491030
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x10c], 0x104
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push str.user_id
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5c92e4
push str._n_CPU_INFO:
call fcn.004cbc00
lea eax, [ebp - 0x108]
push eax
push 0x66b43c
call fcn.004cbc00
add esp, 0xc
lea eax, [ebp - 0x108]
mov ecx, esi
push eax
call fcn.004a8ec0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c950e
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop esi
xor ecx, ebp
pop ebx
call fcn.005c950e
mov esp, ebp
pop ebp
ret 8

Function at 0x5c9420
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 2
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREGuidGuidold
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x5c945c
or esi, 0xffffffff
jmp 0x5c94c9
push dword [ebp + 0x18]
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmovae eax, dword [ebp + 8]
push eax
push 1
push 0
push str.guid
push dword [ebp - 4]
call esi
test eax, eax
jne 0x5c9490
push str._self_run_success_n
call fcn.004cbc00
add esp, 4
push dword [ebp + 0x30]
cmp dword [ebp + 0x34], 0x10
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
push eax
push 1
push 0
push str.user_id
push dword [ebp - 4]
call esi
test eax, eax
jne 0x5c94be
push str._self_run_success_n
call fcn.004cbc00
add esp, 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov eax, dword [ebp + 0x1c]
cmp eax, 0x10
jb 0x5c94de
inc eax
lea ecx, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.004943f0
mov ecx, dword [ebp + 0x34]
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], 0
mov byte [ebp + 8], 0
cmp ecx, 0x10
jb 0x5c9505
inc ecx
push ecx
push dword [ebp + 0x20]
lea ecx, [ebp + 0x20]
call fcn.004943f0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x30