joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1020d99
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, dword [ebp + 8]
push edi
push 7
pop ecx
xor eax, eax
test esi, esi
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
push 0x1e
pop ecx
stosw word es:[edi], ax
mov word [ebp - 0x20], cx
je 0x1020dd9
mov ax, word [esi]
cmp ax, cx
jae 0x1020dc8
movzx ecx, ax
mov eax, ecx
shr ecx, 2
lea edi, [ebp - 0x20]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [0x1027bf4], 0
jne 0x1020df8
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call fcn.0102046f
test eax, eax
je 0x1020f22
test byte [ebp - 0x1d], 1
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push ebx
mov ebx, 0x1025850
mov edi, 0x100326c
je 0x1020e1a
xor eax, eax
cmp word [ebp - 8], ax
setne al
jmp 0x1020e2b
push ebx
push 0
push 0x1002eb8
push edi
call esi
neg eax
sbb eax, eax
neg eax
mov dword [0x1027be4], eax
call dword [sym.imp.WINMM.dll_waveOutGetNumDevs]
test eax, eax
jne 0x1020e6c
cmp dword [0x1027be4], eax
je 0x1020e65
push 0x1003378
mov esi, str.WaveMix_V_2.3_by_Angel_M._Diaz__Jr.__c__Microsoft_1993_1995
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
pop ecx
pop ecx
push 0x40
push 0x10028d0
push esi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x1020f21
push ebx
xor ebx, ebx
push ebx
push 0x100336c
push edi
call esi
test eax, eax
je 0x1020e81
call fcn.0101f13d
push 0x1c0
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edx, eax
cmp edx, ebx
mov dword [0x1027be0], edx
je 0x1020e65
mov eax, dword [0x1025968]
push 0x10
pop ecx
mov dword [edx + 0x1ac], eax
mov word [edx + 0x1bc], 0x5432
mov word [edx], 0x5432
mov dword [edx + 0x198], ebx
mov dword [edx + 0x14], ebx
mov word [edx + 0xb0], 0xa
mov word [edx + 0xb2], 0xa
lea edi, [edx + 0xf4]
push 0x10
add edx, 0x17c
or eax, 0xffffffff
push 0x10028c0
push edx
rep stosd dword es:[edi], eax
call dword [sym.imp.msvcrt.dll_memmove]
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
call fcn.01020a36
test eax, eax
jne 0x1020f1c
mov eax, dword [0x1027be0]
push eax
mov word [eax + 0x1bc], bx
mov word [eax], bx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [0x1027be0], ebx
mov eax, dword [0x1027be0]
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x1020f95
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x10033b0
call fcn.010211d8
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x1020fd2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1020fd2
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1020fea
cmp eax, 0x20b
je 0x1020fd7
mov dword [ebp - 0x1c], ebx
jmp 0x1020ffe
cmp dword [ecx + 0x84], 0xe
jbe 0x1020fd2
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x1020ff8
cmp dword [ecx + 0x74], 0xe
jbe 0x1020fd2
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1028298], 0xffffffff
or dword [0x102829c], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1027c08]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1027c04]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x10282a0], eax
call fcn.010211d0
cmp dword [0x1024890], ebx
jne 0x1021059
push fcn.010211d0
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.010211b9
push 0x1023010
push 0x102300c
call sub.msvcrt.dll__initterm
mov eax, dword [0x1027c00]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1027bfc]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x1023008
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
cmp byte [esi], 0x22
jne 0x10210ef
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x10210c3
cmp al, 0x22
jne 0x10210b5
cmp byte [esi], 0x22
jne 0x10210cc
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x10210d6
cmp al, 0x20
jbe 0x10210c8
mov dword [ebp - 0x54], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x54], 1
je 0x10210fa
movzx eax, word [ebp - 0x50]
jmp 0x10210fd
cmp byte [esi], 0x20
jbe 0x10210cc
inc esi
mov dword [ebp - 0x20], esi
jmp 0x10210ef
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x102111a
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x102114f
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01021213
ret
Function at 0x406624
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406648
xor eax, eax
test eax, eax
je 0x40665b
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40665b
xor ecx, ecx
jmp 0x40665e
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

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

Disassembly:
cmp dword [0x4698ec], 0
push esi
jne 0x4067be
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 0x406798
mov dword [ecx*4 + 0x4698e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406793
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4067ef
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 + 0x4698e8]
xor eax, esi
inc ecx
dec edx
jne 0x4067d1
pop edi
not eax
pop esi
ret 0xc

Function at 0x42e002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x42117f0a
nop
nop
test eax, eax
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x39511702
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e06c
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x1004cd9
Capabilities:
Get disk information via ioctl

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [sym.imp.ole32.dll_CoTaskMemFree]
jbe 0x1004cf7
push edi
lea edi, [ebx + 0x78]
mov dword [ebp + 8], eax
push dword [edi - 4]
call esi
push dword [edi]
call esi
push dword [edi + 4]
call esi
push dword [edi + 8]
call esi
push dword [edi + 0xc]
call esi
add edi, 0x88
dec dword [ebp + 8]
jne 0x1004cd3
pop edi
push ebx
call esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x1016da7
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x102164c]
mov ecx, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp ecx, ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push edi
jl 0x1016f8f
cmp ecx, 5
jg 0x1016f8f
cmp ecx, ebx
je 0x1016d86
cmp eax, ebx
je 0x1016d77
push eax
push ecx
call fcn.01016aab
pop ecx
pop ecx
jmp 0x1016f89
lea eax, [ecx + ecx*2]
mov esi, dword [eax*4 + 0x1021a34]
jmp 0x1016f8b
cmp eax, ebx
mov dword [ebp - 0x94], 1
mov dword [ebp - 0x8c], ebx
je 0x1016f84
cmp byte [eax], 0x4c
jne 0x1016ebc
cmp byte [eax + 1], 0x43
jne 0x1016ebc
cmp byte [eax + 2], 0x5f
jne 0x1016ebc
mov esi, eax
push 0x1002334
push esi
call fcn.0101bb40
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
je 0x1016f8f
sub eax, esi
mov dword [ebp - 0x94], eax
je 0x1016f8f
cmp byte [edi], 0x3b
je 0x1016f8f
mov dword [ebp - 0x90], 1
mov ebx, 0x1021a3c
jmp 0x1016e02
mov eax, dword [ebp - 0x94]
push eax
push esi
push dword [ebx]
call fcn.0101bb00
add esp, 0xc
test eax, eax
jne 0x1016e28
mov eax, dword [ebx]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1016e17
sub eax, edx
cmp dword [ebp - 0x94], eax
je 0x1016e39
inc dword [ebp - 0x90]
add ebx, 0xc
cmp ebx, 0x1021a6c
jle 0x1016dfc
inc edi
push 0x100232c
push edi
call fcn.0101ae40
mov esi, eax
test esi, esi
pop ecx
pop ecx
jne 0x1016e56
cmp byte [edi], 0x3b
jne 0x1016f8f
cmp dword [ebp - 0x90], 5
jg 0x1016e94
push esi
lea eax, [ebp - 0x88]
push edi
push eax
call fcn.0101ae90
lea eax, [ebp - 0x88]
push eax
push dword [ebp - 0x90]
mov byte [ebp + esi - 0x88], 0
call fcn.01016aab
add esp, 0x14
test eax, eax
je 0x1016e94
inc dword [ebp - 0x8c]
add esi, edi
cmp byte [esi], 0
je 0x1016ea8
inc esi
cmp byte [esi], 0
je 0x1016ea8
xor ebx, ebx
jmp 0x1016dbd
cmp dword [ebp - 0x8c], 0
jne 0x1016f84
xor esi, esi
jmp 0x1016f8b
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x88]
push ecx
push eax
call fcn.01016901
mov esi, eax
add esp, 0x14
cmp esi, ebx
je 0x1016f8b
mov dword [ebp - 0x90], ebx
mov ebx, 0x1021a34
mov edi, ebx
cmp edi, ebx
je 0x1016f43
mov esi, dword [edi]
lea eax, [ebp - 0x88]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x1016f14
test cl, cl
je 0x1016f10
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x1016f14
inc eax
inc eax
inc esi
inc esi
test cl, cl
jne 0x1016ef2
xor eax, eax
jmp 0x1016f19
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1016f3d
lea eax, [ebp - 0x88]
push eax
push dword [ebp - 0x90]
call fcn.01016aab
test eax, eax
pop ecx
pop ecx
jne 0x1016f3d
and dword [ebp - 0x94], eax
jmp 0x1016f43
inc dword [ebp - 0x8c]
inc dword [ebp - 0x90]
add edi, 0xc
cmp edi, 0x1021a70
jle 0x1016ee6
xor edi, edi
cmp dword [ebp - 0x94], edi
je 0x1016f79
call fcn.010167ff
push dword [0x1021a34]
mov esi, eax
call fcn.0101749c
pop ecx
mov dword [0x1021a34], edi
jmp 0x1016f8b
cmp dword [ebp - 0x8c], edi
jmp 0x1016eaf
call fcn.010167ff
mov esi, eax
mov eax, esi
jmp 0x1016f91
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0101522e
leave
ret
Function at 0x1017428
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [0x1023024], 3
push esi
mov esi, dword [ebp + 8]
jne 0x1017422
cmp esi, dword [0x102300c]
ja 0x1017422
push esi
call fcn.0101c9f0
test eax, eax
pop ecx
jne 0x1017445
test esi, esi
jne 0x1017427
inc esi
cmp dword [0x1023024], 1
je 0x1017436
add esi, 0xf
and esi, 0xfffffff0
push esi
push 0
push dword [0x1023020]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
pop esi
pop ebp
ret

Function at 0x10175c7
Capabilities:
Accept command line arguments

Disassembly:
push 0x14
push 0x1002338
call fcn.0101828c
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov eax, dword [0x1022bf0]
cmp eax, ebx
jne 0x1017529
mov eax, dword [ebp + 8]
mov ecx, eax
cmp word [eax], bx
je 0x10175e0
xor edx, edx
mov dx, word [ecx]
cmp dx, 0x61
jb 0x101751d
cmp dx, 0x7a
ja 0x101751d
add edx, 0xffffffe0
mov word [ecx], dx
inc ecx
inc ecx
cmp word [ecx], bx
jne 0x1017506
jmp 0x10175e0
push dword [0x1022c00]
push ebx
push ebx
push 0xffffffffffffffff
push dword [ebp + 8]
push 0x200
push eax
call fcn.0101be9e
add esp, 0x1c
mov esi, eax
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x10175dd
mov dword [ebp - 4], ebx
lea eax, [esi + esi]
add eax, 3
and eax, 0xfffffffc
call fcn.010162d0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x24], edi
or dword [ebp - 4], 0xffffffff
jmp 0x1017587
cmp edi, ebx
jne 0x10175a2
lea eax, [esi + esi]
push eax
call fcn.01017480
pop ecx
mov edi, eax
mov dword [ebp - 0x1c], 1
cmp edi, ebx
je 0x10175d1
push dword [0x1022c00]
push esi
push edi
push 0xffffffffffffffff
push dword [ebp + 8]
push 0x200
push dword [0x1022bf0]
call fcn.0101be9e
add esp, 0x1c
test eax, eax
je 0x10175d1
push edi
push dword [ebp + 8]
call fcn.01016fec
pop ecx
pop ecx
cmp dword [ebp - 0x1c], ebx
je 0x10175dd
push edi
call fcn.0101749c
pop ecx
mov eax, dword [ebp + 8]
lea esp, [ebp - 0x30]
call fcn.010182c7
ret
Function at 0x101a6d8
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x101a7a1
push dword [esi + 4]
call fcn.0101749c
push dword [esi + 8]
call fcn.0101749c
push dword [esi + 0xc]
call fcn.0101749c
push dword [esi + 0x10]
call fcn.0101749c
push dword [esi + 0x14]
call fcn.0101749c
push dword [esi + 0x18]
call fcn.0101749c
push dword [esi]
call fcn.0101749c
push dword [esi + 0x20]
call fcn.0101749c
push dword [esi + 0x24]
call fcn.0101749c
push dword [esi + 0x28]
call fcn.0101749c
push dword [esi + 0x2c]
call fcn.0101749c
push dword [esi + 0x30]
call fcn.0101749c
push dword [esi + 0x34]
call fcn.0101749c
push dword [esi + 0x1c]
call fcn.0101749c
push dword [esi + 0x38]
call fcn.0101749c
push dword [esi + 0x3c]
call fcn.0101749c
add esp, 0x40
push dword [esi + 0x40]
call fcn.0101749c
push dword [esi + 0x44]
call fcn.0101749c
push dword [esi + 0x48]
call fcn.0101749c
push dword [esi + 0x4c]
call fcn.0101749c
push dword [esi + 0x50]
call fcn.0101749c
push dword [esi + 0x54]
call fcn.0101749c
push dword [esi + 0x58]
call fcn.0101749c
push dword [esi + 0x5c]
call fcn.0101749c
push dword [esi + 0x60]
call fcn.0101749c
push dword [esi + 0x64]
call fcn.0101749c
push dword [esi + 0x68]
call fcn.0101749c
push dword [esi + 0x6c]
call fcn.0101749c
push dword [esi + 0x70]
call fcn.0101749c
push dword [esi + 0x74]
call fcn.0101749c
push dword [esi + 0x78]
call fcn.0101749c
push dword [esi + 0x7c]
call fcn.0101749c
add esp, 0x40
push dword [esi + 0x80]
call fcn.0101749c
push dword [esi + 0x84]
call fcn.0101749c
push dword [esi + 0x88]
call fcn.0101749c
push dword [esi + 0x8c]
call fcn.0101749c
push dword [esi + 0x90]
call fcn.0101749c
push dword [esi + 0x94]
call fcn.0101749c
push dword [esi + 0x98]
call fcn.0101749c
push dword [esi + 0x9c]
call fcn.0101749c
push dword [esi + 0xa0]
call fcn.0101749c
push dword [esi + 0xa4]
call fcn.0101749c
push dword [esi + 0xa8]
call fcn.0101749c
add esp, 0x2c
pop esi
pop ebp
ret
Function at 0x101dea3
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x8c
cmp dword [ebp + 8], 1
mov eax, dword [0x102164c]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 4], eax
mov dword [ebp - 0x8c], edi
jne 0x101de88
xor edi, edi
push edi
lea ebx, [ebp - 0x84]
push 0x80
mov eax, ebx
push eax
push dword [ebp + 0x10]
mov dword [ebp - 0x88], edi
push dword [ebp + 0xc]
call fcn.0101ebb6
mov esi, eax
add esp, 0x14
cmp esi, edi
jne 0x101de3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x101de5c
push edi
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0101ebb6
mov esi, eax
add esp, 0x14
cmp esi, edi
je 0x101de5c
push esi
call fcn.01017480
mov ebx, eax
cmp ebx, edi
pop ecx
je 0x101de5c
push edi
push esi
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 0x88], 1
push dword [ebp + 0xc]
call fcn.0101ebb6
mov esi, eax
add esp, 0x14
cmp esi, edi
je 0x101de55
push esi
call fcn.01017480
cmp eax, edi
pop ecx
mov ecx, dword [ebp - 0x8c]
mov dword [ecx], eax
jne 0x101de6c
cmp dword [ebp - 0x88], edi
je 0x101de5c
push ebx
call fcn.0101749c
pop ecx
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0101522e
leave
ret
push esi
push ebx
push eax
call fcn.0101ae90
add esp, 0xc
cmp dword [ebp - 0x88], edi
je 0x101deee
push ebx
call fcn.0101749c
pop ecx
jmp 0x101deee
cmp dword [ebp + 8], 0
jne 0x101de5c
push 0
push 4
mov esi, 0x1022cd8
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0101ea81
add esp, 0x14
test eax, eax
je 0x101de5c
mov byte [edi], 0
cmp dword [0x1021bf0], 1
mov bl, byte [esi]
movzx eax, bl
jle 0x101dec7
push 4
push eax
call fcn.0101e9fc
pop ecx
pop ecx
jmp 0x101ded4
mov ecx, dword [0x1021bc0]
movzx eax, byte [ecx + eax*2]
and eax, 4
test eax, eax
je 0x101deee
mov al, byte [edi]
mov cl, 0xa
imul cl
add al, bl
sub al, 0x30
inc esi
inc esi
cmp esi, 0x1022ce0
mov byte [edi], al
jl 0x101dead
xor eax, eax
jmp 0x101de5f

Function at 0x101e099
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0xa
mov eax, dword [ebp + 8]
jne 0x101e089
test eax, eax
jge 0x101e089
push 1
push 0xa
jmp 0x101e08e
push 0
push dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
call fcn.0101e028
mov eax, dword [ebp + 0xc]
pop ebp
ret
Function at 0x401540
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x104
mov ecx, 0x41
xor eax, eax
lea edx, [esp]
push esi
push edi
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x110]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x4015a7
lea edx, [esp + 8]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x40159e
xor esi, esi
jmp 0x4015a9
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov esi, dword [ecx]
jmp 0x4015a9
mov esi, eax
lea ecx, [esp + 0x110]
call sub.MFC42.DLL_CString::CString
mov eax, esi
pop edi
pop esi
add esp, 0x104
ret 4

Function at 0x40162b
Capabilities:
Get system information on windows

Disassembly:
push 0xffffffffffffffff
push 0x409816
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc8
push esi
mov esi, ecx
push edi
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0xc]
mov dword [esp + 0xd8], 0
call sub.MFC42.DLL_CString::CString_2
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov word [esi + 4], ax
lea eax, [esp + 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], 0x9c
call edi
test eax, eax
jne 0x4016da
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 0x94
push edx
call edi
test eax, eax
jne 0x4016da
lea ecx, [esp + 0xc]
mov byte [esp + 0xd8], al
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov dword [esp + 0xd8], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
add esp, 0xd4
ret
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0xc]
mov dword [esi], eax
mov byte [esp + 0xd8], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov dword [esp + 0xd8], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xd0]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0xd4
ret

Function at 0x401830
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
push esi
push edi
xor edx, edx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], dl
push edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x11c]
lea ecx, [esp + 0x10]
push eax
push ecx
push edx
mov dword [esp + 0x18], edx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x401876
mov ecx, 0x41
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x114]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov eax, esi
pop edi
pop esi
add esp, 0x108
ret
Function at 0x4020e0
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x409988
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
push esi
push edi
lea ecx, [esp + 0xc]
xor edi, edi
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x10]
mov dword [esp + 0x13c], edi
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x18]
mov byte [esp + 0x13c], 1
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x14]
mov byte [esp + 0x13c], 2
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x1c]
mov byte [esp + 0x13c], 3
call fcn.00409160
push edi
lea eax, [esp + 0xc]
push 0x25
push eax
mov byte [esp + 0x148], 4
call fcn.00401830
add esp, 0xc
mov ecx, dword [eax]
lea edx, [esp + 0xc]
push ecx
push str._sdriversetchosts
push edx
mov byte [esp + 0x148], 5
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 8]
mov byte [esp + 0x13c], 4
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 8]
push eax
call fcn.00401d80
add esp, 4
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push ecx
push str._shosts.tx
push edx
mov byte [esp + 0x148], 6
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 8]
mov byte [esp + 0x13c], 4
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0xc]
push 0x40e220
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
cmp esi, edi
je 0x4022a7
mov ecx, dword [esp + 0x10]
push edi
push 0x9001
push ecx
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CStdioFile::Open
test byte [esi + 0xc], 0x10
jne 0x402280
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_strstr]
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_fgets]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x38]
push esi
lea edx, [esp + 0x3c]
push 0x103
rep stosd dword es:[edi], eax
push edx
call ebp
lea eax, [esp + 0x44]
push str.gongfubb.com
push eax
call ebx
add esp, 0x14
test eax, eax
jne 0x402278
cmp byte [esp + 0x38], 0x23
je 0x402278
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [eax]
lea ecx, [esp + 0x24]
push eax
mov byte [esp + 0x148], 7
call sub.MFC42.DLL_CStdioFile::WriteString
lea ecx, [esp + 0x10]
mov byte [esp + 0x144], 4
call sub.MFC42.DLL_CString::CString
test byte [esi + 0xc], 0x10
je 0x402211
pop ebp
pop ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CStdioFile::Close
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov edi, eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x13c], 3
call sub.MFC42.DLL_CStdioFile::CStdioFile
lea ecx, [esp + 0x14]
mov byte [esp + 0x13c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x13c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x13c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x13c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x134]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x138
ret
Function at 0x402520
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x402557
mov ax, word [esp]
cmp al, 2
jne 0x402557
xor ecx, ecx
mov cl, ah
cmp cl, al
jne 0x402557
mov eax, 1
add esp, 0x190
ret
xor eax, eax
add esp, 0x190
ret