joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d1564
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004049b8
xor eax, eax
push ebp
push 0x4d166d
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebx + 4], 0
mov ax, word [esi + 4]
mov word [ebx + 6], ax
mov ax, word [esi + 6]
mov word [ebx + 8], ax
mov ax, word [esi + 8]
mov word [ebx + 0xa], ax
mov eax, dword [esi + 0xa]
call fcn.004d0b38
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0xe]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x12]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x16]
mov dword [ebx + 0x18], eax
mov ax, word [esi + 0x1a]
mov word [ebx + 0x1c], ax
mov ax, word [esi + 0x1c]
mov word [ebx + 0x20], ax
mov word [ebx + 0x22], 0
mov word [ebx + 0x24], 0
mov word [ebx + 0x26], 0
xor eax, eax
mov dword [ebx + 0x28], eax
xor eax, eax
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
cmp dword [ebp - 4], 0
je 0x4d1633
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00409c2c
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004d1e1c
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00409b10
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004d1e90
jmp 0x4d1645
xor edx, edx
mov eax, ebx
call fcn.004d1e1c
xor edx, edx
mov eax, ebx
call fcn.004d1e90
xor eax, eax
mov dword [ebx + 0x44], eax
mov byte [ebx + 0x48], 0
mov byte [ebx + 0x4a], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d1674
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040452c
ret

Function at 0x4d7ddc
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
mov ecx, dword [edi + 0x170]
mov edx, ebx
mov eax, edi
call fcn.004d8010
mov esi, eax
mov dword [edi + 0x170], esi
and esi, 0xff
add dword [edi + 0x174], esi
imul esi, dword [edi + 0x174], 0x8088405
inc esi
mov dword [edi + 0x174], esi
mov edx, esi
shr edx, 0x18
mov ecx, dword [edi + 0x178]
mov eax, edi
call fcn.004d8010
mov dword [edi + 0x178], eax
pop edi
pop esi
pop ebx
ret

Function at 0x4d7e50
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x4d7e75
inc esi
mov eax, edi
call fcn.004d7e34
xor byte [ebx], al
mov dl, byte [ebx]
mov eax, edi
call fcn.004d7ddc
inc ebx
dec esi
jne 0x4d7e5f
pop edi
pop esi
pop ebx
ret
Function at 0x4d7f04
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov esi, ecx
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.004049b8
xor eax, eax
push ebp
push 0x4d7f79
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.004d7e7c
mov dword [ebp - 8], 0xc
lea esi, [ebp - 0x14]
mov eax, edi
call fcn.004d7e34
mov ebx, eax
xor bl, byte [esi]
mov edx, ebx
mov eax, edi
call fcn.004d7ddc
mov byte [esi], bl
inc esi
dec dword [ebp - 8]
jne 0x4d7f44
mov bl, byte [ebp - 9]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d7f80
lea eax, [ebp - 4]
call fcn.00404508
ret
Function at 0x4d8b3c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4d8d20
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 0xffffffff
jle 0x4d8cdc
mov eax, dword [ebp - 4]
call fcn.004da5dc
cmp ebx, eax
jge 0x4d8cdc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x118]
mov edx, ebx
call fcn.004cf444
mov edx, dword [0x4d0efc]
call fcn.004037c4
mov esi, eax
mov eax, esi
call fcn.004d1db0
test al, al
je 0x4d8cd2
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov edi, dword [esi + 0x44]
test edi, edi
jne 0x4d8cc6
xor eax, eax
push ebp
push 0x4d8cbf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004d9218
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
call fcn.0041fe28
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
push dword [esi + 0x34]
push dword [esi + 0x30]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x18]
lea edx, [ebp - 0x46]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov ecx, 0x2e
mov esi, dword [eax]
call dword [esi + 0xc]
movzx eax, word [ebp - 0x2a]
movzx edx, word [ebp - 0x28]
add eax, edx
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x18]
movzx esi, word [ebp - 0x26]
mov eax, dword [ebp - 8]
mov edx, esi
call fcn.00404b54
mov eax, dword [ebp - 8]
call fcn.00404a20
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov ecx, esi
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x158]
mov al, byte [eax + 0x28]
mov byte [ebp - 9], al
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004d8eb8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x158]
mov dl, byte [ebp - 9]
mov byte [eax + 0x28], dl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d8d0a
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
jne 0x4d8cbe
mov eax, dword [ebp - 4]
call fcn.004d929c
ret
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.0040a020
jmp 0x4d8d0a
mov eax, dword [ebp - 8]
call fcn.00404508
jmp 0x4d8d0a
mov dword [ebp - 0x50], ebx
mov byte [ebp - 0x4c], 0
lea eax, [ebp - 0x50]
push eax
push 0
lea edx, [ebp - 0x54]
mov eax, 0xb3
call fcn.00409558
mov ecx, dword [ebp - 0x54]
mov dl, 1
mov eax, dword [0x41a170]
call fcn.0040cf60
call fcn.00403ea4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d8d27
lea eax, [ebp - 0x54]
call fcn.00404508
ret
Function at 0x4de830
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe50
push ebx
xor eax, eax
mov dword [ebp - 0x1a0], eax
mov dword [ebp - 0x19c], eax
mov dword [ebp - 0x198], eax
mov dword [ebp - 0x194], eax
mov dword [ebp - 0x1b0], eax
mov dword [ebp - 0x1ac], eax
mov dword [ebp - 0x1a8], eax
mov dword [ebp - 0x1a4], eax
xor eax, eax
push ebp
push 0x4de96b
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0x190]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x4de947
push 0x4de97c
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4f1540], eax
lea eax, [ebp - 0x1a0]
mov edx, dword [0x4f1540]
mov cl, 4
call fcn.00414fe8
lea eax, [ebp - 0x1a0]
push eax
lea eax, [ebp - 0x1b0]
call fcn.00417ebc
lea edx, [ebp - 0x1b0]
pop eax
call fcn.00417ed4
je 0x4de947
push 0x4de988
mov eax, dword [0x4f1540]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f1544], eax
push 0x4de998
mov eax, dword [0x4f1540]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f1548], eax
push 0x4de9a8
mov eax, dword [0x4f1540]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f154c], eax
cmp dword [0x4f1544], 0
je 0x4de947
cmp dword [0x4f1548], 0
je 0x4de947
cmp dword [0x4f154c], 0
je 0x4de947
call dword [0x4f1544]
mov dword [0x4f1550], eax
cmp dword [0x4f1550], 0xffffffff
je 0x4de947
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4de972
lea eax, [ebp - 0x1b0]
mov edx, dword [0x40111c]
mov ecx, 2
call fcn.004051d0
ret

Function at 0x4decc0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004049b8
xor eax, eax
push ebp
push 0x4ded80
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebx + 8]
push 0x4ded94
push dword [ebx + 0xc]
mov eax, dword [ebx + 0x18]
add eax, 0x28
mov edx, 3
call fcn.00404888
mov eax, dword [ebx + 0x18]
add eax, 0xc
mov ecx, 0x4deda0
mov edx, dword [ebp - 4]
call fcn.00404814
call fcn.0040b180
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 8]
mov eax, 0x4dedc0
call fcn.0040bdf8
mov edx, dword [ebp - 8]
mov eax, dword [ebx + 0x18]
add eax, 0x1c
call fcn.0040455c
mov eax, dword [ebx + 0x18]
add eax, 0x2c
mov edx, dword [ebp - 4]
call fcn.0040455c
mov eax, dword [ebx + 0x18]
add eax, 0x30
mov ecx, 0x4dedd4
mov edx, dword [ebp - 4]
call fcn.00404814
mov eax, dword [ebx + 0x18]
call fcn.004df0fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ded87
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040452c
ret
Function at 0x4df0fc
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4df282
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x43ae6c]
call fcn.0043af6c
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4df265
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000002
mov eax, dword [ebp - 4]
call fcn.0043b00c
mov ecx, dword [ebx + 0x38]
lea eax, [ebp - 8]
mov edx, 0x4df298
call fcn.00404814
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0043b074
mov ecx, dword [ebx + 0x24]
mov edx, 0x4df2d8
mov eax, dword [ebp - 4]
call fcn.0043b410
mov ecx, dword [ebx + 0x38]
mov edx, 0x4df2ec
mov eax, dword [ebp - 4]
call fcn.0043b410
mov ecx, dword [ebx + 0x24]
mov edx, 0x4df2d8
mov eax, dword [ebp - 4]
call fcn.0043b410
mov ecx, dword [ebx + 0x28]
mov edx, 0x4df304
mov eax, dword [ebp - 4]
call fcn.0043b410
mov ecx, dword [ebx + 4]
mov edx, 0x4df31c
mov eax, dword [ebp - 4]
call fcn.0043b410
mov ecx, dword [ebx + 0x10]
mov edx, 0x4df330
mov eax, dword [ebp - 4]
call fcn.0043b410
mov ecx, dword [ebx + 0x18]
mov edx, 0x4df344
mov eax, dword [ebp - 4]
call fcn.0043b410
mov ecx, dword [ebx + 0xc]
mov edx, 0x4df354
mov eax, dword [ebp - 4]
call fcn.0043b410
mov ecx, dword [ebx + 0x1c]
mov edx, 0x4df368
mov eax, dword [ebp - 4]
call fcn.0043b410
mov ecx, dword [ebx + 0x2c]
mov edx, 0x4df37c
mov eax, dword [ebp - 4]
call fcn.0043b410
mov ecx, dword [ebx + 8]
mov edx, 0x4df394
mov eax, dword [ebp - 4]
call fcn.0043b410
mov ecx, dword [ebx + 0x20]
mov edx, 0x4df3a8
mov eax, dword [ebp - 4]
call fcn.0043b410
mov ecx, dword [ebx + 0x30]
mov edx, 0x4df3bc
mov eax, dword [ebp - 4]
call fcn.0043b410
mov ecx, dword [ebx + 0x14]
mov edx, 0x4df3d4
mov eax, dword [ebp - 4]
call fcn.0043b410
mov ecx, dword [ebx + 0x34]
mov edx, 0x4df3ec
mov eax, dword [ebp - 4]
call fcn.0043b410
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4df26c
mov eax, dword [ebp - 4]
call fcn.00403614
ret
Function at 0x4e0b38
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
xor eax, eax
push ebp
push 0x4e0dc0
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x4e0abc]
call fcn.004035e4
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4e0d9e
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x14]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004dec24
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
add eax, 8
call fcn.0040455c
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 4]
add eax, 4
mov ecx, 0x4e0dd4
call fcn.00404814
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.00409700
test al, al
jne 0x4e0bbb
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.00409dd4
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
lea eax, [ebp - 0x10]
mov ecx, 0x4e0de4
call fcn.00404814
mov eax, dword [ebp - 0x10]
call fcn.00409700
test al, al
mov eax, dword [ebp - 0x10]
call fcn.00409dd4
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
lea eax, [ebp - 0x10]
mov ecx, 0x4e0df4
call fcn.00404814
mov eax, dword [ebp - 0x10]
call fcn.00409700
test al, al
mov eax, dword [ebp - 0x10]
call fcn.00409dd4
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
lea eax, [ebp - 0x10]
mov ecx, 0x4e0e08
call fcn.00404814
mov eax, dword [ebp - 0x10]
call fcn.00409700
test al, al
mov eax, dword [ebp - 0x10]
call fcn.00409dd4
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
lea eax, [ebp - 0xc]
mov ecx, 0x4e0e1c
call fcn.00404814
mov eax, dword [ebp - 0xc]
call fcn.004096f0
test al, al
je 0x4e0c5e
push 0x80
mov eax, dword [ebp - 0xc]
call fcn.004049c8
push eax
call sub.kernel32.dll_SetFileAttributesA
jmp 0x4e0c8c
push 0x4e0e48
push dword [ebp - 0xc]
push 0x4e0e58
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404888
mov ecx, dword [ebp - 0x18]
mov dl, 1
mov eax, dword [0x407ef4]
call fcn.0040cf24
call fcn.00403ea4
mov eax, 3
call fcn.004dec98
mov eax, dword [ebp - 4]
push eax
push 0x4e2db0
mov dl, 1
mov eax, dword [0x4c46b4]
call fcn.004c4738
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4e0cf8
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.004c4824
test al, al
jne 0x4e0ce2
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x1c]
mov dl, 1
mov eax, dword [0x407ef4]
call fcn.0040cf24
call fcn.00403ea4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e0cff
mov eax, dword [ebp - 8]
call fcn.00403614
ret
Function at 0x4e0e98
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004049b8
xor eax, eax
push ebp
push 0x4e0f2f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
lea eax, [ebp - 8]
mov ecx, dword [ebp - 4]
call fcn.00404814
mov eax, dword [ebp + 8]
mov edx, dword [eax - 8]
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 4]
call fcn.00404814
mov eax, dword [ebp - 0xc]
call fcn.004096f0
test al, al
je 0x4e0efb
push 0x80
mov eax, dword [ebp - 0xc]
call fcn.004049c8
push eax
call sub.kernel32.dll_SetFileAttributesA
push 0
mov eax, dword [ebp - 0xc]
call fcn.004049c8
push eax
mov eax, dword [ebp - 8]
call fcn.004049c8
push eax
call sub.kernel32.dll_CopyFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e0f36
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040452c
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x2774171e
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x432024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f314
nop
mov ecx, 0xef0f8b
nop
test eax, eax
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
jne 0x43206c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x401226
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe60
lea eax, [ebp - 0x18e]
push eax
push 2
call sub.ws2_32.dll_WSAStartup
or eax, eax
je 0x401251
push 0
push 0
push str.hSocketet2.0
push 0
call sub.user32.dll_MessageBoxA
mov dword [0x40b00b], eax
leave
ret

Function at 0x401258
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push 0x10
lea eax, [ebp - 0x10]
push eax
call sub.kernel32.dll_RtlZeroMemory
push 0
push 1
push 2
call sub.ws2_32.dll_socket
or eax, eax
jne 0x40127c
leave
ret 8
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov dword [ebp - 0x14], eax
push dword [ebp + 8]
call sub.ws2_32.dll_gethostbyname
or eax, eax
je 0x401297
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov word [ebp - 0x10], 2
push 0x50
call sub.ws2_32.dll_htons
mov word [ebp - 0xe], ax
push 0x10
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
call sub.ws2_32.dll_connect
cmp eax, 0xffffffff
jne 0x4012cf
push dword [ebp - 0x14]
call fcn.004012d6
mov eax, 0
leave
ret 8
mov eax, dword [ebp - 0x14]
leave
ret 8

Function at 0x40175f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
pushal
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
lodsb al, byte [esi]
xor al, 0x28
sub al, 8
xor al, 0x51
add al, 0x87
xor al, 0x67
add al, 0x92
xor al, 0x88
sub al, 0x29
xor al, 0x82
add al, 0x65
xor al, 0x96
sub al, 0x39
xor al, 0x68
add al, 0x46
add al, cl
stosb byte es:[edi], al
loop 0x40176c
popal
leave
ret 0xc
Function at 0x402af6
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push 0x7d1
push dword [0x40b6f6]
call sub.user32.dll_GetDlgItem
mov dword [0x40b6d3], eax
mov dword [0x45eb85], 0xf
mov dword [0x45eb91], 0x40a1dc
mov dword [0x45eb8d], 0x41
mov dword [0x45eb89], 2
push 0x45eb85
push 0
push 0x101b
push dword [0x40b6d3]
call sub.user32.dll_SendMessageA
mov dword [0x45eb85], 0xf
mov dword [0x45eb91], 0x40a1e1
mov dword [0x45eb8d], 0x32
mov dword [0x45eb89], 2
push 0x45eb85
push 0
push 0x101b
push dword [0x40b6d3]
call sub.user32.dll_SendMessageA
mov dword [0x45eb85], 3
mov dword [0x45eb8d], 0x23
mov dword [0x45eb89], 2
push 0x45eb85
push 0
push 0x101b
push dword [0x40b6d3]
call sub.user32.dll_SendMessageA
mov dword [0x45eb85], 0xf
mov dword [0x45eb91], 0x40a1e6
mov dword [0x45eb8d], 0x32
mov dword [0x45eb89], 2
push 0x45eb85
push 0
push 0x101b
push dword [0x40b6d3]
call sub.user32.dll_SendMessageA
mov dword [0x45eb85], 0xf
mov dword [0x45eb91], 0x40b6e8
mov dword [0x45eb8d], 0xd7
mov dword [0x45eb89], 2
push 0x45eb85
push 0
push 0x101b
push dword [0x40b6d3]
call sub.user32.dll_SendMessageA
mov dword [0x45eb85], 3
mov dword [0x45eb89], 2
mov dword [0x45eb8d], 0x1a
mov dword [ebp - 4], 3
push 0x45eb85
push 0
push 0x101b
push dword [0x40b6d3]
call sub.user32.dll_SendMessageA
dec dword [ebp - 4]
jne 0x402c67
mov dword [0x45eb85], 7
mov dword [ebp - 8], 0x3031
lea eax, [ebp - 8]
mov dword [0x45eb91], eax
mov dword [0x45eb8d], 0x1d
push 0x45eb85
push 0
push 0x101b
push dword [0x40b6d3]
call sub.user32.dll_SendMessageA
mov dword [ebp - 4], 9
mov word [ebp - 8], 0x39
lea eax, [ebp - 8]
mov dword [0x45eb85], 0xf
mov dword [0x45eb91], eax
mov dword [0x45eb8d], 0x1a
push 0x45eb85
push 0
push 0x101b
push dword [0x40b6d3]
call sub.user32.dll_SendMessageA
dec dword [ebp - 8]
dec dword [ebp - 4]
jne 0x402ce6
mov dword [0x45eb85], 7
mov dword [0x45eb91], 0x40b6e3
mov dword [0x45eb8d], 0x3d
mov dword [0x45eb89], 2
push 0x45eb85
push 0
push 0x101b
push dword [0x40b6d3]
call sub.user32.dll_SendMessageA
mov eax, 3
push eax
push 0
push 0x1036
push dword [0x40b6d3]
call sub.user32.dll_SendMessageA
push 0
push 0
push 0xff
push 0x18
push 0
call sub.comctl32.dll_ImageList_Create
push eax
push 1
push 0x1003
push dword [0x40b6d3]
call sub.user32.dll_SendMessageA
push 1
push 1
push 0x1036
push dword [0x40b6d3]
call sub.user32.dll_SendMessageA
push 0x11
call sub.gdi32.dll_GetStockObject
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x44]
push eax
push 0x3c
push dword [ebp - 0x48]
call sub.gdi32.dll_GetObjectA
mov dword [ebp - 0x44], 0xd
lea eax, [ebp - 0x44]
push eax
call sub.gdi32.dll_CreateFontIndirectA
mov dword [0x45ebcc], eax
push 2
push dword [0x45ebcc]
push 0x30
push dword [0x40b6d3]
call sub.user32.dll_SendMessageA
leave
ret
Function at 0x4035b4
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call sub.kernel32.dll_RtlZeroMemory
push str.GET__interface.aspx_endperiodcountyears
push dword [ebp + 0x14]
call sub.kernel32.dll_lstrcatA
push dword [ebp + 0x10]
push dword [ebp + 0x14]
call sub.kernel32.dll_lstrcatA
push str.charttypePK10other_2_HTTP_1.1_r_nUser_Agent:_Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0__r_nAccept:___r_nHost:_tb.bjfcdt.gov.cn_r_nCache_Control:_no_cache_r_n_r_n
push dword [ebp + 0x14]
call sub.kernel32.dll_lstrcatA
push dword [ebp + 0x14]
call sub.kernel32.dll_lstrlenA
mov dword [ebp - 4], eax
push dword [ebp + 0x1c]
push str.tb.bjfcdt.gov.cn
call fcn.00401258
or eax, eax
jne 0x40360a
leave
ret 0x1c
mov dword [ebp - 8], eax
push 0
push dword [ebp - 4]
push dword [ebp + 0x14]
push eax
call sub.ws2_32.dll_send
cmp eax, 0xffffffff
jne 0x40362e
push dword [ebp - 8]
call fcn.004012d6
xor eax, eax
leave
ret 0x1c
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 8]
call sub.ws2_32.dll_recv
cmp eax, 0
ja 0x403659
push 0
push 0
push 0x40a2ce
push 0
call sub.user32.dll_MessageBoxA
xor eax, eax
leave
ret 0x1c
mov dword [0x43e31a], eax
mov dword [0x43e2ff], eax
mov dword [0x43e303], eax
mov ebx, dword [ebp + 8]
add dword [0x43e2ff], ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0xf
push str.Content_Length
call section..text
or eax, eax
jne 0x40368b
leave
ret 0x1c
add eax, 0x10
mov dword [0x43e307], eax
push 0xa
push eax
push 3
push 0x43e31e
call section..text
or eax, eax
jne 0x4036bc
push 0
push 0
push 0x40a2d7
push 0
call sub.user32.dll_MessageBoxA
xor eax, eax
leave
ret 0x1c
mov ebx, eax
sub ebx, dword [ebp + 8]
add ebx, 4
sub dword [0x43e303], ebx
sub eax, dword [0x43e307]
mov dword [0x43e2ef], eax
push eax
push dword [0x43e307]
call fcn.00401173
sub eax, dword [0x43e303]
mov dword [0x43e2f3], eax
xor ebx, ebx
jmp 0x40371b
push ebx
push 0
push dword [0x43e2f3]
push dword [0x43e2ff]
push dword [ebp - 8]
call sub.ws2_32.dll_recv
cmp eax, 0
ja 0x403712
xor eax, eax
leave
ret 0x1c
pop ebx
add ebx, eax
add dword [0x43e2ff], eax
cmp ebx, dword [0x43e2f3]
jb 0x4036f0
mov eax, 1
leave
ret 0x1c