joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4021e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
mov al, 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.00401f68
cmc
jbe 0x40222d
out dx, eax
lea eax, [ebp - 0x58]
push eax
call fcn.00401f78
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.00401f2d
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x402256
invalid
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.00401f68
cwde
lodsd eax, dword [esi]
pop ebx
test byte [ebp - 0x17af3fbb], cl
invalid
Function at 0x402630
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x40263f
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x40265d
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x4026bb
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x4026a2
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x4026ab
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x4026b5
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x402697
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x402621
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x402708
dec eax
je 0x4026ff
sub eax, 3
je 0x4026f6
mov dword [ebp - 4], 0x40
jmp 0x402725
mov dword [ebp - 4], 4
jmp 0x40270b
mov dword [ebp - 4], 0x20
jmp 0x40270b
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x402757
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x4026d7
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.00401f68
je 0x40275c
push ebp
dec eax
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp 0x402763
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403a38
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x756], 0x9e
mov byte [ebp - 0x755], 0x96
mov byte [ebp - 0x754], 0xa7
invalid
invalid
lodsd eax, dword [esi]
Function at 0x40497c
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov edi, eax
mov ebx, edx
sub esp, 0x4c
test eax, eax
jne 0x4049a0
mov eax, 0x20
call fcn.00402600
sub esp, eax
lea edi, [esp + 0x1b]
and edi, 0xfffffff0
test ebx, ebx
mov dword [ebp - 0x3c], 0
jne 0x4049c5
mov eax, 0x20
call fcn.00402600
sub esp, eax
mov dword [ebp - 0x3c], 1
lea ebx, [esp + 0x1b]
and ebx, 0xfffffff0
mov dword [esp + 8], 0xf003f
mov dword [esp + 4], 0
xor esi, esi
mov dword [esp], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
sub esp, 0xc
test eax, eax
mov dword [ebx], eax
je 0x404abe
mov dword [esp + 8], 0xf01ff
mov dword [esp + 4], str.vlmcsd
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
sub esp, 0xc
test eax, eax
mov esi, eax
mov dl, 2
je 0x404aaa
mov edx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [ebp - 0x34]
mov dword [edi], 1
mov dword [esp], esi
mov dword [esp + 4], eax
mov dword [ebp - 0x40], edx
call edx
test eax, eax
push edx
push edx
je 0x404a3f
mov eax, dword [ebp - 0x30]
mov dword [edi], eax
lea eax, [ebp - 0x34]
mov dword [esp + 4], 1
mov dword [esp], esi
mov dword [esp + 8], eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 0xc
mov dl, 0xa
lea eax, [ebp - 0x34]
mov byte [ebp - 0x41], dl
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [ebp - 0x40]
push eax
push eax
mov dword [esp], 0x64
call edi
cmp dword [ebp - 0x30], 1
push eax
je 0x404a8b
mov dl, byte [ebp - 0x41]
dec dl
jne 0x404a62
mov dword [esp], esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
push edx
setne dl
mov byte [ebp - 0x40], dl
mov dword [esp], esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dl, byte [ebp - 0x40]
push ecx
cmp dword [ebp - 0x3c], 0
mov esi, edx
je 0x404abe
mov eax, dword [ebx]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x404cd8
Capabilities:
Set socket configuration

Disassembly:
push ebp
push edi
mov edx, eax
push esi
push ebx
xor edi, edi
sub esp, 0x8c
mov ebx, dword [0x408158]
mov esi, dword [0x4082f4]
lea eax, [esp + 0x38]
call fcn.0040556c
test al, al
je 0x404e75
lea esi, [ebx + esi*4]
mov ebx, dword [esp + 0x38]
lea ebp, [esp + 0x40]
xor edi, edi
test ebx, ebx
je 0x404d1d
cmp dword [0x4082f4], 0x3f
jle 0x404d30
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
push ebx
jmp 0x404e75
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0x18]
mov eax, ebp
call fcn.00405744
mov dword [esp + 8], 6
mov dword [esp + 4], 1
mov eax, dword [ebx + 4]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_socket]
sub esp, 0xc
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x404da0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x2c], eax
call fcn.00407868
cmp dword [ebx + 4], 0x17
mov edx, str.IPv4
mov ecx, str.IPv6
mov dword [esp + 8], eax
mov dword [esp], str.Warning:__s_error.__s_n
cmovne ecx, edx
mov dword [esp + 4], ecx
call fcn.00406654
mov eax, dword [esp + 0x2c]
jmp 0x404e5e
cmp dword [ebx + 4], 0x17
mov dword [esp + 0x3c], 1
jne 0x404dda
lea edx, [esp + 0x3c]
mov dword [esp + 0x10], 4
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 0x29
mov dword [esp], eax
mov dword [esp + 0xc], edx
call dword [sym.imp.WS2_32.dll_setsockopt]
sub esp, 0x14
mov eax, dword [ebx + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x18]
mov dword [esp + 4], eax
mov eax, dword [esi]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_bind]
sub esp, 0xc
test eax, eax
je 0x404e33
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov dword [esp + 0x2c], edx
call fcn.00407868
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
mov dword [esp], str.Warning:__s:__s_n
call fcn.00406654
mov eax, dword [esi]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_closesocket]
push ecx
mov edx, dword [esp + 0x2c]
mov eax, edx
jmp 0x404e5e
mov dword [esp + 4], 0x7fffffff
mov eax, dword [esi]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
push edx
push edx
jne 0x404dfa
mov dword [esp + 4], ebp
mov dword [esp], str.Listening_on__s_n
call fcn.00405834
jmp 0x404e62
test eax, eax
jne 0x404e6d
inc dword [0x4082f4]
mov edi, 1
mov ebx, dword [ebx + 0x1c]
jmp 0x404d10
add esp, 0x8c
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x405744
Capabilities:
Resolve dns

Disassembly:
push ebp
push edi
mov ebp, edx
push esi
push ebx
mov esi, eax
sub esp, 0x7c
lea edi, [esp + 0x28]
lea ebx, [esp + 0x30]
mov dword [esp + 0x18], 0xa
mov dword [esp + 0x14], 8
mov dword [esp + 0xc], 0x40
mov dword [esp + 0x10], edi
mov dword [esp + 8], ebx
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.WS2_32.dll_getnameinfo]
sub esp, 0x1c
test eax, eax
jne 0x4057c1
cmp word [ebp], 0x17
mov eax, str._s:_s
mov edx, str.__s_:_s
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ebx
mov dword [esp + 4], 0x40
mov dword [esp], esi
cmovne edx, eax
mov dword [esp + 8], edx
call fcn.0040736c
cmp eax, 0x40
setbe al
jmp 0x4057c3
xor eax, eax
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x407020
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
push edi
mov ebp, edx
push esi
push ebx
mov edi, eax
mov ebx, ecx
sub esp, 0x1c
mov esi, dword [sym.imp.WS2_32.dll_recv]
cmp byte [esp + 0x30], 0
cmovne esi, dword [sym.imp.WS2_32.dll_send]
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], ebp
mov dword [esp], edi
call esi
sub esp, 0x10
test eax, eax
jns 0x40706a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x407074
jmp 0x40703f
je 0x407074
sub ebx, eax
add ebp, eax
test ebx, ebx
jg 0x40703f
test ebx, ebx
sete al
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4038f7
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
add ecx, 4
mov dword [0x4040f6], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x404650], eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4045e4], eax
mov dword [0x4040ee], eax
mov dword [0x4045d0], 0x30
mov dword [0x4045d4], 2
jmp 0x40393c
mov dword [0x4045d8], 0x40321a
mov dword [0x4045dc], 0
mov dword [0x4045e0], 0
mov dword [0x4045f8], 0x40454d
mov dword [0x4045f0], 0xf
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4045e8], eax
mov dword [0x4045fc], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4045ec], eax
push 0x4045d0
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x4040ee]
push 0
push 0
push 0x1e5
push 0x203
push 0xfffff98e
push 0xfffff9c0
push 0xcf0000
push str.lofegaswer_huijd
push str.lisclass
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x404648], eax
push 5
push dword [0x404648]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x404648]
call dword [sym.imp.user32.dll_UpdateWindow]
xor edi, edi
lea ebx, [0x404600]
jmp 0x403a10
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x403a02
mov eax, dword [0x404608]
jmp 0x403a2b
call 0x402c21
ret

Function at 0x4015a0
Capabilities:
Terminate process

Disassembly:
call fcn.00401940
jmp fcn.004012d0

Function at 0x4015b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x403008]
jne 0x4015ba
repz ret
jmp fcn.004019f0
Function at 0x4010e0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [0x2239530], 0
push esi
je 0x40111f
cmp dword [0x223952c], 2
jne 0x40115d
mov edx, dword [esp + 0xc]
test edx, edx
mov eax, dword [esp + 8]
lea ecx, [edx + 0x2238528]
jle 0x40115d
sub ecx, eax
mov esi, edx
lea esp, [esp]
mov dl, byte [ecx + eax]
xor byte [eax], dl
add eax, 1
sub esi, 1
jne 0x401110
pop esi
ret
cmp byte [0x2239532], 0
je 0x40115d
cmp dword [0x2239528], 0
jne 0x401148
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
mov ecx, eax
mov esi, 0x2239688
call fcn.004051b0
pop esi
ret
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push ecx
mov edx, eax
mov ecx, 0x22397a0
call fcn.00401700
pop esi
ret

Function at 0x401700
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov ebx, eax
mov eax, dword [ecx + 0x30]
test eax, eax
push edi
mov edi, edx
mov edx, dword [esp + 0x14]
mov ebp, 0x10
jle 0x401784
mov esi, ebp
sub esi, eax
cmp edx, esi
jg 0x401758
test edx, edx
je 0x401741
mov esi, edx
mov eax, dword [ecx + 0x30]
mov dl, byte [ecx + eax + 0x20]
xor dl, byte [ebx]
add edi, 1
mov byte [edi - 1], dl
add dword [ecx + 0x30], 1
add ebx, 1
sub esi, 1
jne 0x401726
cmp dword [ecx + 0x30], ebp
jl 0x40180b
pop edi
pop esi
pop ebp
mov dword [ecx + 0x30], 0
pop ebx
ret 4
sub edx, esi
cmp eax, ebp
mov dword [esp + 0x14], edx
jge 0x40177d
mov eax, dword [ecx + 0x30]
mov al, byte [ecx + eax + 0x20]
xor al, byte [ebx]
add edi, 1
mov byte [edi - 1], al
add dword [ecx + 0x30], 1
add ebx, 1
cmp dword [ecx + 0x30], ebp
jl 0x401762
mov dword [ecx + 0x30], 0
cmp edx, ebp
jl 0x4017d6
mov ebp, edx
shr ebp, 4
mov eax, ebp
neg eax
shl eax, 4
add edx, eax
lea esi, [ecx + 0x20]
mov dword [esp + 0x14], edx
lea ecx, [ecx]
call fcn.004015c0
mov edx, dword [ebx]
xor edx, dword [esi]
add edi, 0x10
mov dword [edi - 0x10], edx
mov eax, dword [ebx + 4]
xor eax, dword [ecx + 0x24]
add ebx, 0x10
mov dword [edi - 0xc], eax
mov edx, dword [ebx - 8]
xor edx, dword [ecx + 0x28]
mov dword [edi - 8], edx
mov eax, dword [ebx - 4]
xor eax, dword [ecx + 0x2c]
sub ebp, 1
mov dword [edi - 4], eax
jne 0x4017a0
mov edx, dword [esp + 0x14]
test edx, edx
jle 0x40180b
lea esi, [ecx + 0x20]
call fcn.004015c0
mov esi, dword [esp + 0x14]
cmp dword [ecx + 0x30], esi
jge 0x40180b
jmp 0x4017f0
mov edx, dword [ecx + 0x30]
mov al, byte [ecx + edx + 0x20]
xor al, byte [ebx]
add edi, 1
mov byte [edi - 1], al
add dword [ecx + 0x30], 1
add ebx, 1
cmp dword [ecx + 0x30], esi
jl 0x4017f0
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x404410
Capabilities:
Hash data using sha256

Disassembly:
sub esp, 0x6c
mov eax, dword [0x6f872c]
xor eax, esp
push ebx
push esi
mov esi, ecx
xor ecx, ecx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x78]
push ecx
push eax
lea ebx, [esp + 0x10]
mov dword [esp + 0x18], 0x6a09e667
mov dword [esp + 0x1c], 0xbb67ae85
mov dword [esp + 0x20], 0x3c6ef372
mov dword [esp + 0x24], 0xa54ff53a
mov dword [esp + 0x28], 0x510e527f
mov dword [esp + 0x2c], 0x9b05688c
mov dword [esp + 0x30], 0x1f83d9ab
mov dword [esp + 0x34], 0x5be0cd19
call fcn.004041c0
add esp, 8
mov ecx, ebx
call fcn.00404270
mov ecx, dword [esp + 0x70]
pop esi
pop ebx
xor ecx, esp
call fcn.005bbd6d
add esp, 0x6c
ret
Function at 0x407720
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10c
push ebx
mov ebx, dword [sym.imp.kernel32.dll_GetPrivateProfileStringA]
push esi
push edi
push 0x7034e0
xor eax, eax
push 0x104
mov ecx, 0x41
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
push eax
push 0x6a75d5
push str.VOL_BGM
push str.SOUND
call ebx
test eax, eax
je 0x40777f
lea ecx, [esp + 0x10]
push ecx
call fcn.005b8a6a
add esp, 4
mov dword [0x703ac0], eax
mov esi, 6
jmp 0x40778a
mov esi, 6
mov dword [0x703ac0], esi
push 0x7034e0
push 0x104
lea edx, [esp + 0x18]
push edx
push 0x6a75d5
push str.VOL_EFFECT
push str.SOUND
call ebx
test eax, eax
je 0x4077c2
lea eax, [esp + 0x10]
push eax
call fcn.005b8a6a
add esp, 4
mov dword [0x703ac4], eax
jmp 0x4077c8
mov dword [0x703ac4], esi
push 0x7034e0
push 0x104
lea ecx, [esp + 0x18]
push ecx
push 0x6a75d5
push 0x6a7760
push str.SOUND
call ebx
test eax, eax
je 0x407800
lea edx, [esp + 0x10]
push edx
call fcn.005b8a6a
add esp, 4
mov dword [0x703ac8], eax
jmp 0x407806
mov dword [0x703ac8], esi
fild dword [0x703ac0]
fmul dword [0x6a775c]
fmul dword [0x6a7758]
fsub dword [0x6a7758]
call fcn.005b8b18
push eax
mov ecx, 0x21efa50
call fcn.00529230
fild dword [0x703ac4]
fmul dword [0x6a775c]
fmul dword [0x6a7758]
fsub dword [0x6a7758]
call fcn.005b8b18
push eax
mov ecx, 0x21efa50
call fcn.00529290
fild dword [0x703ac8]
fmul dword [0x6a775c]
fmul dword [0x6a7758]
fsub dword [0x6a7758]
call fcn.005b8b18
push eax
mov ecx, 0x21efa50
call fcn.005292b0
push 0x7034e0
push 0x104
lea eax, [esp + 0x18]
push eax
push 0x6a75d5
push str.VOICE_CHAR
push str.SOUND
call ebx
test eax, eax
je 0x4078c0
xor edx, edx
mov edi, str.FALSE
lea esi, [esp + 0x10]
mov ecx, 6
repe cmpsb byte [esi], byte es:[edi]
mov eax, edx
setne al
mov dword [0x703acc], eax
jmp 0x4078ca
mov dword [0x703acc], 1
push 0x7034e0
push 0x104
lea ecx, [esp + 0x18]
push ecx
push 0x6a75d5
push str.VOICE_NPC
push str.SOUND
call ebx
test eax, eax
je 0x40790c
xor edx, edx
mov edi, str.FALSE
lea esi, [esp + 0x10]
mov ecx, 6
repe cmpsb byte [esi], byte es:[edi]
mov eax, edx
setne al
mov dword [0x703ad0], eax
jmp 0x407916
mov dword [0x703ad0], 1
push 0x7034e0
push 0x104
lea ecx, [esp + 0x18]
push ecx
push 0x6a75d5
push str.DANGER_DETECT
push str.SOUND
call ebx
test eax, eax
je 0x40795d
xor edx, edx
mov edi, str.FALSE
lea esi, [esp + 0x10]
mov ecx, 6
repe cmpsb byte [esi], byte es:[edi]
mov eax, edx
setne al
mov dword [0x703ad4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov dword [0x703ad4], 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407eb0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
push ebx
mov ebx, dword [sym.imp.kernel32.dll_GetPrivateProfileStringA]
push esi
push edi
xor esi, esi
jmp 0x407ed0
push esi
lea eax, [esp + 0x11c]
push str.KEY_d
push eax
call fcn.005b8b8d
add esp, 0xc
push 0x7034e0
xor eax, eax
push 0x104
mov ecx, 0x41
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
push ecx
push 0x6a75d5
lea edx, [esp + 0x128]
push edx
push str.OPTION
call ebx
test eax, eax
je 0x407f30
lea eax, [esp + 0x10]
push eax
call fcn.005b8a6a
add esp, 4
mov dword [esi*4 + 0x703b50], eax
jmp 0x407f3e
mov ecx, dword [esi*4 + 0x6f4b78]
mov dword [esi*4 + 0x703b50], ecx
inc esi
cmp esi, 0x14
jl 0x407ed0
xor esi, esi
jmp 0x407f50
push esi
lea edx, [esp + 0x11c]
push str.ADD_KEY_d
push edx
call fcn.005b8b8d
add esp, 0xc
push 0x7034e0
xor eax, eax
push 0x104
mov ecx, 0x41
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
push eax
push 0x6a75d5
lea ecx, [esp + 0x128]
push ecx
push str.OPTION
call ebx
test eax, eax
je 0x407fa9
lea edx, [esp + 0x10]
push edx
call fcn.005b8a6a
add esp, 4
jmp 0x407fb0
mov eax, dword [esi*4 + 0x6f4c68]
mov dword [esi*4 + 0x703b28], eax
inc esi
cmp esi, 0xa
jl 0x407f50
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408960
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x20
lea eax, [esp]
push eax
call dword [sym.imp.kernel32.dll_GlobalMemoryStatus]
mov eax, dword [esp + 8]
cmp eax, 0x60000000
jbe 0x40899f
cmp dword [esp + 0xc], 0x2bc00000
mov dword [0x703a90], 3
jb 0x4089e1
mov dword [0x703a90], 4
mov eax, 1
add esp, 0x20
ret
cmp eax, 0x32000000
jb 0x4089b9
mov dword [0x703a90], 2
mov eax, 1
add esp, 0x20
ret
cmp eax, 0x19000000
ja 0x4089d7
cmp eax, 0x9600000
mov dword [0x703a90], 0
ja 0x4089e1
xor eax, eax
add esp, 0x20
ret
mov dword [0x703a90], 1
mov eax, 1
add esp, 0x20
ret

Function at 0x409570
Capabilities:
Hash data using djb2

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
movsx ecx, byte [ebx]
test ecx, ecx
mov edx, ebx
mov eax, 0x1505
je 0x4095a0
inc edx
cmp ecx, 0x40
jle 0x409594
cmp ecx, 0x5b
jge 0x409594
add ecx, 0x20
imul eax, eax, 0x21
add eax, ecx
movsx ecx, byte [edx]
test ecx, ecx
jne 0x409586
xor edx, edx
div dword [esi]
mov eax, dword [esi + 8]
mov edx, dword [eax + edx*4]
test edx, edx
mov dword [esi + 0x14], edx
je 0x4095f7
mov ecx, dword [edx + 4]
mov eax, dword [ecx]
mov dword [esi + 0x18], eax
cmp eax, dword [edx + 4]
je 0x4095f7
mov edi, edi
mov eax, dword [esi + 0x18]
mov eax, dword [eax + 8]
mov dword [esi + 0x1c], eax
cmp dword [eax + 0x18], 0x10
jb 0x4095d4
mov eax, dword [eax + 4]
jmp 0x4095d7
add eax, 4
push eax
push ebx
call fcn.005cbb28
add esp, 8
test eax, eax
je 0x40960c
mov ecx, dword [esi + 0x18]
mov edx, dword [ecx]
mov dword [esi + 0x18], edx
mov eax, dword [esi + 0x14]
mov ecx, edx
cmp ecx, dword [eax + 4]
jne 0x4095c0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x409605
mov dword [eax], 0
pop esi
xor al, al
pop ebx
ret 8
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40961c
mov edx, dword [esi + 0x1c]
mov ecx, dword [edx + 0x20]
mov dword [eax], ecx
pop esi
mov al, 1
pop ebx
ret 8

Function at 0x4099b0
Capabilities:
Hash data using djb2

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, esi
push edi
mov edi, ecx
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4099c0
sub eax, edx
push eax
push esi
mov ecx, edi
call fcn.00405710
movsx eax, byte [esi]
test eax, eax
mov edx, esi
mov ecx, 0x1505
je 0x4099fa
inc edx
cmp eax, 0x40
jle 0x4099ee
cmp eax, 0x5b
jge 0x4099ee
add eax, 0x20
imul ecx, ecx, 0x21
add ecx, eax
movsx eax, byte [edx]
test eax, eax
jne 0x4099e0
mov dword [edi + 0x1c], ecx
pop edi
pop esi
ret 4
Function at 0x40b5a0
Capabilities:
Hash data using djb2

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
mov eax, 0x1505
je 0x40b5ce
mov edx, dword [esp + 4]
push esi
mov esi, ecx
movsx ecx, byte [edx]
inc edx
cmp ecx, 0x40
jle 0x40b5c5
cmp ecx, 0x5b
jge 0x40b5c5
add ecx, 0x20
imul eax, eax, 0x21
add eax, ecx
dec esi
jne 0x40b5b4
pop esi
ret

Function at 0x40b780
Capabilities:
Hash data using djb2

Disassembly:
sub esp, 0x808
push esi
mov esi, dword [esp + 0x814]
push 5
push esi
push str.data_
call fcn.005cc11f
add esp, 0xc
test eax, eax
je 0x40b7c0
push 5
push esi
push 0x6a842c
call fcn.005cc11f
add esp, 0xc
test eax, eax
je 0x40b7c0
xor al, al
pop esi
add esp, 0x808
ret
push edi
mov edi, dword [0x704034]
test edi, edi
jne 0x40b7d6
pop edi
xor al, al
pop esi
add esp, 0x808
ret
lea eax, [esi + 5]
lea edx, [esp + 0x10]
sub edx, eax
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40b7e0
push ebx
xor ebx, ebx
xor ecx, ecx
mov esi, edi
xor eax, eax
mov dl, byte [esp + ebx + 0x14]
cmp dl, 0x2f
je 0x40b809
cmp dl, 0x5c
je 0x40b809
test dl, dl
je 0x40b856
inc ebx
inc eax
jmp 0x40b7f3
test eax, eax
lea edx, [esp + ecx + 0x14]
mov ecx, 0x1505
je 0x40b831
mov edi, eax
movsx eax, byte [edx]
inc edx
cmp eax, 0x40
jle 0x40b829
cmp eax, 0x5b
jge 0x40b829
add eax, 0x20
imul ecx, ecx, 0x21
add ecx, eax
dec edi
jne 0x40b818
mov dword [esp + 0xc], ecx
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esi + 0x2c]
call fcn.00529da0
mov eax, dword [eax]
cmp eax, dword [esi + 0x30]
je 0x40b8b2
mov esi, dword [eax + 0x10]
inc ebx
mov ecx, ebx
jmp 0x40b7f1
push eax
lea edx, [esp + ecx + 0x18]
push edx
call fcn.0040b5a0
add esp, 8
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esi + 0x20]
call fcn.00529da0
mov eax, dword [eax]
cmp eax, dword [esi + 0x24]
je 0x40b8b2
mov esi, dword [eax + 0x10]
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x20]
mov ecx, dword [esp + 0x818]
push 0
push edx
mov edx, dword [ecx]
push eax
push edx
call fcn.005b99a2
add esp, 0x10
pop ebx
pop edi
mov dword [0x704038], esi
mov al, 1
pop esi
add esp, 0x808
ret
pop ebx
pop edi
xor al, al
pop esi
add esp, 0x808
ret
Function at 0x40c4a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x697873
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], edi
mov eax, dword [edi + 0x30]
mov ecx, dword [eax]
lea esi, [edi + 0x2c]
push eax
push ecx
lea eax, [esp + 0x18]
push eax
mov ecx, esi
mov dword [esp + 0x28], 1
call fcn.0040c1c0
mov eax, dword [esi + 4]
push eax
call fcn.005b806d
xor ebx, ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov eax, dword [edi + 0x24]
mov ecx, dword [eax]
add esp, 4
lea esi, [edi + 0x20]
push eax
push ecx
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
mov byte [esp + 0x28], bl
call fcn.0040c040
mov edx, dword [esi + 4]
push edx
call fcn.005b806d
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov eax, dword [edi + 0x18]
add esp, 4
cmp eax, 0x10
jb 0x40c533
mov eax, dword [edi + 4]
push eax
call fcn.005b806d
add esp, 4
mov ecx, dword [esp + 0x14]
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], 0xf
mov byte [edi + 4], bl
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret