joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421cfc
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push ebx
add esp, 0xfffffff4
mov ebx, eax
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [0x470ae0], eax
mov eax, dword [0x46f668]
cmp eax, dword [0x470ae0]
je 0x421e0a
mov eax, dword [0x470ae0]
mov dword [0x46f668], eax
mov eax, ebx
call fcn.004251cc
sub ax, 4
je 0x421d43
sub ax, 0xd
je 0x421da4
dec ax
je 0x421d91
jmp 0x421db7
mov byte [0x470ae4], 1
mov eax, ebx
call fcn.004251dc
dec ax
je 0x421d79
dec ax
jne 0x421d85
mov dword [0x46f658], 0x46f63e
xor edx, edx
mov eax, ebx
call fcn.004219bc
test eax, eax
sete byte [0x470ae4]
jmp 0x421dc1
mov dword [0x46f658], 0x46f644
jmp 0x421dc1
mov dword [0x46f658], 0x46f638
jmp 0x421dc1
mov dword [0x46f658], 0x46f64a
mov byte [0x470ae4], 0
jmp 0x421dc1
mov dword [0x46f658], 0x46f650
mov byte [0x470ae4], 1
jmp 0x421dc1
mov dword [0x46f658], 0x46f638
mov eax, 0x46f638
cmp eax, dword [0x46f658]
jne 0x421e0a
push 5
lea eax, [esp + 4]
push eax
push 3
xor edx, edx
mov ax, word [0x470ae0]
call fcn.004219ac
push eax
call sub.kernel32.dll_GetLocaleInfoW
mov eax, dword [0x46f658]
mov dx, word [esp]
mov word [eax], dx
mov ax, word [esp + 2]
call fcn.00421ce4
mov edx, dword [0x46f658]
mov word [edx + 2], ax
add esp, 0xc
pop ebx
ret

Function at 0x4222bc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
add esp, 0xfffffde8
cmp dword [0x470ae0], 0xe00e0804
je 0x4222e3
cmp dword [0x470ae0], 0xe0090404
je 0x4222e3
test edx, edx
je 0x4222e3
xor eax, eax
jmp 0x4222e5
mov al, 1
mov byte [0x472479], al
cmp byte [0x472479], 0
jne 0x4223f3
mov eax, edx
and eax, 0xffff
cmp eax, 0x404
jne 0x4223f3
mov ebx, edx
and ebx, 0xffff0000
lea eax, [esp + 0x10]
mov ecx, 0x422400
mov edx, 0x104
call fcn.00414148
mov dl, 1
mov al, 5
call fcn.00421678
cmp ebx, eax
jb 0x422346
lea eax, [esp + 0x10]
mov ecx, 0x42245c
mov edx, 0x104
call fcn.00414234
jmp 0x422359
lea eax, [esp + 0x10]
mov ecx, 0x422470
mov edx, 0x104
call fcn.00414234
push esp
push 0x20019
push 0
lea eax, [esp + 0x1c]
push eax
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x4223f3
mov dword [esp + 4], 4
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
push 0
push 0x422484
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4223ea
xor edx, edx
mov al, 5
call fcn.00421678
cmp ebx, eax
ja 0x4223bb
cmp dword [esp + 8], 0x22
je 0x4223e3
cmp dword [esp + 8], 0x23
je 0x4223e3
mov dl, 1
mov al, 5
call fcn.00421678
cmp ebx, eax
je 0x4223e3
mov dl, 2
mov al, 5
call fcn.00421678
cmp ebx, eax
jne 0x4223ea
cmp dword [esp + 8], 0x22
jb 0x4223ea
cmp dword [esp + 8], 0x24
ja 0x4223ea
mov byte [0x472479], 1
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
add esp, 0x218
pop ebx
ret
Function at 0x429f44
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebx
add esp, 0xffffff1c
mov ebx, eax
call fcn.00426ba8
mov edx, ebx
call fcn.0042691c
test bl, bl
je 0x429fec
call fcn.00426ba8
mov edx, esp
call fcn.00425f8c
call fcn.00426ba8
lea edx, [esp + 8]
call fcn.00425fac
call fcn.00426ba8
lea edx, [esp + 0x20]
call fcn.00425f68
push 0
lea eax, [esp + 4]
push eax
push 8
push 0x3b
call sub.user32.dll_SystemParametersInfoA
push 0
lea eax, [esp + 0xc]
push eax
push 8
push 0x35
call sub.user32.dll_SystemParametersInfoA
push 0
lea eax, [esp + 0x24]
push eax
push 0x18
push 0x33
call sub.user32.dll_SystemParametersInfoA
call fcn.00426ba8
call fcn.00425f50
test eax, eax
je 0x42a0db
call fcn.00426ba8
call fcn.00425f50
push eax
call sub.user32.dll_UnhookWindowsHookEx
call fcn.00426ba8
xor edx, edx
call fcn.00426934
jmp 0x42a0db
call fcn.00426ba8
call fcn.00425f50
test eax, eax
jne 0x42a03f
mov dword [esp + 0x38], 0x94
lea eax, [esp + 0x38]
push eax
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x48], 2
jne 0x42a03f
cmp dword [esp + 0x3c], 4
jbe 0x42a03f
push 0
push 0
call sub.kernel32.dll_GetModuleHandleA_2
push eax
mov eax, 0x429eb8
push eax
push 0xd
call sub.user32.dll_SetWindowsHookExA
mov ebx, eax
call fcn.00426ba8
mov edx, ebx
call fcn.00426934
call fcn.00426ba8
lea edx, [esp + 0x10]
call fcn.00425f8c
test byte [esp + 0x14], 1
jne 0x42a06e
and dword [esp + 0x14], 0xfffffffb
and dword [esp + 0x14], 0xfffffff7
push 0
lea eax, [esp + 0x14]
push eax
push 8
push 0x3b
call sub.user32.dll_SystemParametersInfoA
call fcn.00426ba8
lea edx, [esp + 0x18]
call fcn.00425fac
test byte [esp + 0x1c], 1
jne 0x42a09d
and dword [esp + 0x1c], 0xfffffffb
and dword [esp + 0x1c], 0xfffffff7
push 0
lea eax, [esp + 0x1c]
push eax
push 8
push 0x35
call sub.user32.dll_SystemParametersInfoA
call fcn.00426ba8
lea edx, [esp + 0xcc]
call fcn.00425f68
test byte [esp + 0xd0], 1
jne 0x42a0db
and dword [esp + 0xd0], 0xfffffffb
and dword [esp + 0xd0], 0xfffffff7
push 0
lea eax, [esp + 0xd0]
push eax
push 0x18
push 0x33
call sub.user32.dll_SystemParametersInfoA
add esp, 0xe4
pop ebx
ret
Function at 0x4012fc
Capabilities:
Encode data using xor

Disassembly:
push 0x401a88
call sub.MSVBVM60.DLL_ThunRTMain
add byte [eax], al
add byte [eax], al
add byte [eax], al
xor byte [eax], al
add byte [eax], al
cmp byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
mov ebx, 0x7d7dd775
mov ah, 0x3a
inc edx
mov al, byte [0xc4b3d4ae]
jo 0x401306
push eax
add byte [eax], al
add byte [eax], al
add byte [eax], al
add dword [eax], eax
add byte [eax], al
and byte [edx + 0x6f], al
jb 0x40139b
mov ecx, 0x31ccb3a4
add byte [eax], ah
and byte [eax], al
add byte [eax], al
add bh, bh
int3
add byte [eax], al
mov dword [0xcd000006], eax
add eax, 0x9000000
add byte [esi + 0x72], ah
insd dword es:[edi], dx
push ebx
jo 0x40141a
popal
jae 0x401419
add byte [0x42000119], cl
add byte [edx], ah
add esp, dword [ebx]
xchg byte [0x746c0000], al
add byte [eax], al
jle 0x4013ca
add byte [eax], al
add byte [eax], al
add dword [eax], eax
add dword [eax], eax
adc byte [eax], dl
add byte [eax], al
add byte [eax], al
add byte [eax], al
push 0x16000005
add byte [ecx], al
add byte [eax], dl
adc byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax + 5], ch
add byte [eax], al
push ss
add byte [eax], al
add byte [eax], ch
add byte [eax], al
add byte [eax], dl
add byte [eax], al
add byte [eax], ah
add byte [eax], al
add byte [ecx], al
add byte [eax], cl
add byte [eax], al
add byte [eax], al
add byte [eax + 1], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
xor eax, 0xa626
pop ss
mov dword [eax], 0xe91e36
sbb al, 0x2b
clc
add byte [edx + 0x3b], dl
inc dword [eax]
xor eax, 0x6a00ff77
push edx
cmp edi, edi
add byte [0x6a00ff77], dh
dec edx
aam 0
pop edi
dec edi
inc dword [eax]
inc dword [eax]
inc dword [eax]
xchg esi, eax
xchg esi, eax
inc dword [eax]
invalid
Function at 0x4104e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40c015
lea edi, [esi - 0xb015]
push edi
or ebp, 0xffffffff
jmp 0x410502
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x410509
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4104f8
mov eax, 1
add ebx, ebx
jne 0x41051b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x410510
jne 0x41052c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x410510
xor ecx, ecx
sub eax, 3
jb 0x410540
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4105b2
mov ebp, eax
add ebx, ebx
jne 0x41054b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x410558
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41057c
inc ecx
add ebx, ebx
jne 0x410568
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41055d
jne 0x410579
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41055d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41059c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41058d
jmp 0x4104fe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41059c
add edi, ecx
jmp 0x4104fe
pop esi
mov edi, esi
mov ecx, 0x210
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4105ba
cmp byte [edi], 5
jne 0x4105ba
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4105bf
lea edi, [esi + 0xe000]
mov eax, dword [edi]
or eax, eax
je 0x41062e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x123d4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12488]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4105ec
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1248c]
or eax, eax
je 0x410628
mov dword [ebx], eax
add ebx, 4
jmp 0x410609
call dword [esi + 0x1249c]
mov ebp, dword [esi + 0x12490]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x410662
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x40111d
Capabilities:
Terminate process

Disassembly:
jmp 0x404550
push ebx
push 0x797618
call fcn.0040f600
mov eax, dword [esp + 8]
xor ebx, ebx
cmp eax, ebx
jl 0x40457f
mov eax, str.Aborted
jne 0x404571
mov eax, 0x4920d0
push ebx
push 2
push eax
xor ebx, ebx
call fcn.00403ca0
add esp, 0xc
cmp byte [0x4abf3c], bl
je 0x4045ad
mov eax, dword [0x4abf30]
push eax
mov byte [0x4abf3c], bl
mov dword [0x4abf38], ebx
call sub.MSVCR90.dll_free
add esp, 4
mov dword [0x4abf30], ebx
mov dword [0x4abf34], ebx
cmp byte [0x4abf50], bl
je 0x4045dc
mov ecx, dword [0x4abf44]
push ecx
mov byte [0x4abf50], bl
mov dword [0x4abf4c], ebx
call sub.MSVCR90.dll_free
add esp, 4
mov dword [0x4abf44], ebx
mov dword [0x4abf48], ebx
cmp byte [0x4abf64], bl
je 0x40460b
mov edx, dword [0x4abf58]
push edx
mov byte [0x4abf64], bl
mov dword [0x4abf60], ebx
call sub.MSVCR90.dll_free
add esp, 4
mov dword [0x4abf58], ebx
mov dword [0x4abf5c], ebx
mov eax, dword [0x797be4]
push eax
call sub.MSVCR90.dll_free
mov ecx, dword [0x797c24]
push ecx
call sub.MSVCR90.dll_free
mov edx, dword [0x797c1c]
push edx
call sub.MSVCR90.dll_free
mov eax, dword [0x797310]
push eax
call sub.MSVCR90.dll_free
mov ecx, dword [0x797300]
push ecx
call sub.MSVCR90.dll_free
mov edx, dword [0x7972bc]
push edx
call sub.MSVCR90.dll_free
mov eax, dword [0x797080]
push eax
call sub.MSVCR90.dll_free
mov ecx, dword [0x797c20]
push ecx
call sub.MSVCR90.dll_free
mov edx, dword [0x797c34]
push edx
call sub.MSVCR90.dll_free
mov eax, dword [0x797c38]
push eax
call sub.MSVCR90.dll_free
mov ecx, dword [0x797c3c]
push ecx
call sub.MSVCR90.dll_free
mov edx, dword [0x797c4c]
push edx
call sub.MSVCR90.dll_free
mov eax, dword [0x797c28]
push eax
call sub.MSVCR90.dll_free
mov eax, dword [0x797c6c]
add esp, 0x34
cmp eax, 1
pop ebx
jle 0x4046d0
mov ecx, dword [eax*4 + 0x797514]
dec eax
push ecx
mov dword [0x797c6c], eax
call sub.MSVCR90.dll_free
mov eax, dword [0x797c6c]
add esp, 4
cmp eax, 1
jg 0x4046b0
call fcn.00419060
mov edx, dword [0x797084]
push edx
call fcn.004137b0
mov eax, dword [0x797be0]
push eax
call fcn.00419e80
mov ecx, dword [0x7972e0]
add esp, 8
push ecx
call dword [sym.imp.MSVCR90.dll_exit]
int3
Function at 0x404e70
Capabilities:
Query environment variable
Terminate process

Disassembly:
push ebx
push esi
push edi
call fcn.00414be0
mov edi, dword [sym.imp.MSVCR90.dll_getenv]
push str.MYSQL_HOST
mov esi, eax
call edi
xor ebx, ebx
add esp, 4
cmp eax, ebx
je 0x404ea0
push 0x10
push eax
call fcn.0040aaf0
add esp, 8
mov dword [0x797080], eax
push str.PAGER
call edi
add esp, 4
cmp eax, ebx
jne 0x404ec6
push str.stdout
push 0x796e80
call fcn.00410fe0
mov byte [0x4a7013], 1
jmp 0x404ed1
push eax
push 0x796e80
call fcn.00410fe0
add esp, 8
push 0x796e80
push 0x797318
call fcn.00410fe0
mov eax, dword [esi]
mov ecx, dword [eax]
mov dword [0x7972f4], ecx
mov edx, dword [esi + 4]
mov eax, dword [edx]
push 0x40107d
push 0x4aaa60
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x24]
push edx
mov dword [0x79730c], eax
call fcn.00412b50
add esp, 0x18
cmp eax, ebx
je 0x404f1e
push eax
call dword [sym.imp.MSVCR90.dll_exit]
mov eax, dword [esi]
mov ecx, dword [0x7972f4]
mov dword [eax], ecx
mov edx, dword [esi + 4]
mov eax, dword [0x79730c]
mov dword [edx], eax
cmp byte [0x7972f0], bl
je 0x404f7a
push str.stdout
push 0x797318
call fcn.00410fe0
push str.stdout
push 0x796e80
call fcn.00410fe0
add esp, 0x10
mov byte [0x4a7013], 1
mov byte [0x797bfc], bl
mov byte [0x797bf7], bl
mov byte [0x4a7014], bl
mov dword [0x4a7018], ebx
mov eax, dword [esp + 0x10]
cmp eax, 1
jle 0x404f94
push ebx
call fcn.00401be0
add esp, 4
push 1
call dword [sym.imp.MSVCR90.dll_exit]
jne 0x404fbe
mov ecx, dword [0x7972bc]
push ecx
mov byte [0x797bef], bl
call sub.MSVCR90.dll_free
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
push 0x10
push eax
call fcn.0040aaf0
add esp, 0xc
mov dword [0x7972bc], eax
cmp byte [0x797bf9], bl
je 0x404fd4
push ebx
call fcn.0041a970
add esp, 4
mov dword [0x797c24], eax
cmp byte [0x79728b], bl
je 0x404fe6
mov dword [0x797be0], 3
cmp byte [0x797289], bl
je 0x404ff8
mov dword [0x797be0], 1
cmp byte [0x797c02], bl
je 0x40500a
or dword [0x4a7018], 0x100
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x40aa20
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x40aa2f
mov esi, 1
push esi
call dword [sym.imp.MSVCR90.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x40aa89
push edi
call dword [sym.imp.MSVCR90.dll__errno]
mov edi, eax
call fcn.0041c3c0
mov ecx, dword [edi]
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
mov edi, eax
and edi, 8
je 0x40aa68
mov edx, dword [fcn.0042da70]
mov dword [fcn.0042da70], edx
test al, 0x18
je 0x40aa7c
push esi
push 0x464
push 5
call fcn.0041f5e0
add esp, 0xc
test edi, edi
pop edi
je 0x40aa9c
push 1
call dword [sym.imp.MSVCR90.dll_exit]
test byte [esp + 0x10], 0x20
je 0x40aa9c
push esi
push 0
push ebx
call sub.MSVCR90.dll_memset
add esp, 0xc
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x40bf10
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x10
mov eax, dword [0x71a830]
xor eax, esp
mov dword [esp + 0xc], eax
mov eax, dword [0x79a41c]
test eax, eax
jne 0x40bfa8
mov ax, word [0x493228]
mov cl, byte [0x49322a]
push 7
lea edx, [esp + 6]
push edx
mov word [esp + 8], ax
xor eax, eax
push 0x1004
push 0x800
mov byte [esp + 0x12], cl
mov dword [esp + 0x13], eax
mov word [esp + 0x17], ax
mov byte [esp + 0x19], al
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov ecx, str.cp932
lea eax, [esp]
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40bf90
test dl, dl
je 0x40bf8c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40bf90
add eax, 2
add ecx, 2
test dl, dl
jne 0x40bf70
xor eax, eax
jmp 0x40bf95
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
mov eax, 0x510958
je 0x40bfa3
mov eax, 0x4ae800
mov dword [0x79a41c], eax
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.0046e712
add esp, 0x10
ret

Function at 0x40c420
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_connect]
ret
Function at 0x40cc90
Capabilities:
Query environment variable

Disassembly:
push 0x493934
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
test eax, eax
je 0x40ccd6
mov ecx, str.Windows_NT
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40ccc7
test dl, dl
je 0x40ccc3
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40ccc7
add eax, 2
add ecx, 2
test dl, dl
jne 0x40cca7
xor eax, eax
jmp 0x40cccc
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40ccd6
mov eax, 1
ret
xor eax, eax
ret
Function at 0x413950
Capabilities:
Get common file path

Disassembly:
push esi
push str.GetSystemWindowsDirectoryA
push str.kernel32.dll
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
push edi
test eax, eax
je 0x413974
call eax
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, eax
cmp esi, 8
jbe 0x41399e
lea eax, [esi + edi - 8]
push str.System32
push eax
call dword [sym.imp.MSVCR90.dll__stricmp]
add esp, 8
test eax, eax
jne 0x41399e
sub esi, 8
mov byte [esi + edi], al
mov eax, esi
pop esi
ret

Function at 0x4139f0
Capabilities:
Get common file path
Query environment variable

Disassembly:
sub esp, 0x208
mov eax, dword [0x71a830]
xor eax, esp
mov dword [esp + 0x204], eax
push ebx
push ebp
mov ebp, dword [esp + 0x214]
push 0x1c
push ebp
mov dword [esp + 0x10], 0
call fcn.0040a6f0
mov ebx, eax
add esp, 8
xor eax, eax
test ebx, ebx
je 0x413b0e
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], eax
push esi
push edi
mov dword [ebx + 0x18], eax
mov eax, 0x200
lea edi, [esp + 0x14]
call fcn.00413950
test eax, eax
je 0x413a67
mov eax, edi
push eax
mov edi, ebx
mov esi, ebp
call fcn.004138d0
add esp, 4
mov dword [esp + 0x10], eax
push 0x200
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x413a90
lea edx, [esp + 0x14]
push edx
mov edi, ebx
mov esi, ebp
call fcn.004138d0
add esp, 4
add dword [esp + 0x10], eax
push 0x4943e8
mov edi, ebx
mov esi, ebp
call fcn.004138d0
add dword [esp + 0x14], eax
add esp, 4
mov eax, 0x200
lea esi, [esp + 0x14]
call fcn.004139b0
test eax, eax
je 0x413ac8
mov eax, esi
push eax
mov esi, ebp
call fcn.004138d0
add esp, 4
add dword [esp + 0x10], eax
push str.MYSQL_HOME
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
test eax, eax
je 0x413aeb
push eax
mov edi, ebx
mov esi, ebp
call fcn.004138d0
add esp, 4
add dword [esp + 0x10], eax
push 0x4911c7
mov edi, ebx
mov esi, ebp
call fcn.004138d0
add eax, dword [esp + 0x14]
add esp, 4
xor ecx, ecx
test eax, eax
setg cl
pop edi
pop esi
dec ecx
and ecx, ebx
mov eax, ecx
mov ecx, dword [esp + 0x20c]
pop ebp
pop ebx
xor ecx, esp
call fcn.0046e712
add esp, 0x208
ret
Function at 0x414e00
Capabilities:
Query environment variable

Disassembly:
push str.USER
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
test eax, eax
jne 0x414e17
mov eax, str.ODBC
push 0x30
push eax
mov eax, dword [esp + 0xc]
push eax
call fcn.00419de0
add esp, 0xc
ret

Function at 0x418f80
Capabilities:
Query environment variable

Disassembly:
push esi
push edi
xor edi, edi
cmp byte [0x79acd8], 0
jne 0x41904c
mov al, byte [0x79ace5]
mov byte [0x79acd8], 1
mov byte [0x79acd9], al
call fcn.0041a2f0
test al, al
je 0x418fb5
pop edi
mov eax, 1
pop esi
ret 0xc
call fcn.00427600
call fcn.0042d340
test eax, eax
jne 0x418fab
mov esi, dword [sym.imp.MSVCR90.dll_getenv]
cmp dword [0x79a420], edi
jne 0x419020
push 0x4948e0
push str.mysql
mov dword [0x79a420], 0xcea
call dword [sym.imp.WS2_32.dll_getservbyname]
test eax, eax
je 0x419003
movzx ecx, word [eax + 8]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
movzx edx, ax
mov dword [0x79a420], edx
push str.MYSQL_TCP_PORT
call esi
add esp, 4
test eax, eax
je 0x419020
push eax
call dword [sym.imp.MSVCR90.dll_atoi]
add esp, 4
mov dword [0x79a420], eax
cmp dword [0x79a424], edi
jne 0x419054
push str.MYSQL_UNIX_PORT
mov dword [0x79a424], 0x493ce4
call esi
add esp, 4
test eax, eax
je 0x419054
mov dword [0x79a424], eax
mov eax, edi
pop edi
pop esi
ret 0xc
call fcn.0041c430
movsx edi, al
mov eax, edi
pop edi
pop esi
ret 0xc

Function at 0x41a020
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xa18
mov eax, dword [0x71a830]
xor eax, esp
mov dword [esp + 0xa14], eax
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push str.SOFTWAREMySQL
push getpeername
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41a13f
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x11c]
push edx
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
xor esi, esi
push esi
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x2c]
push edx
push esi
push eax
mov dword [esp + 0x28], 0xff
mov dword [esp + 0x2c], 0x3ff
call edi
cmp eax, 0x103
je 0x41a132
inc esi
cmp eax, 0xea
je 0x41a0f1
test eax, eax
jne 0x41a132
cmp dword [esp + 0x14], 1
jne 0x41a0f1
push eax
lea ecx, [esp + 0x11c]
push ecx
push 0x494acc
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x528]
push eax
call fcn.00423880
lea ecx, [esp + 0x52c]
push ecx
call dword [sym.imp.MSVCR90.dll__strdup]
push eax
call dword [sym.imp.MSVCR90.dll__putenv]
add esp, 0x1c
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x11c]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x1c]
push 0
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x2c]
push eax
push esi
push ecx
mov dword [esp + 0x28], 0xff
mov dword [esp + 0x2c], 0x3ff
call edi
cmp eax, 0x103
jne 0x41a0a2
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov ecx, dword [esp + 0xa14]
xor ecx, esp
call fcn.0046e712
add esp, 0xa18
ret
push 0x419f50
call dword [sym.imp.MSVCR90.dll__set_invalid_parameter_handler]
add esp, 4
call dword [sym.imp.MSVCR90.dll__tzset]
call fcn.00419f60
jmp 0x41a020
Function at 0x41a160
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xa18
mov eax, dword [0x71a830]
xor eax, esp
mov dword [esp + 0xa14], eax
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push str.SOFTWAREMySQL
push getpeername
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41a13f
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x11c]
push edx
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
xor esi, esi
push esi
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x2c]
push edx
push esi
push eax
mov dword [esp + 0x28], 0xff
mov dword [esp + 0x2c], 0x3ff
call edi
cmp eax, 0x103
je 0x41a132
inc esi
cmp eax, 0xea
je 0x41a0f1
test eax, eax
jne 0x41a132
cmp dword [esp + 0x14], 1
jne 0x41a0f1
push eax
lea ecx, [esp + 0x11c]
push ecx
push 0x494acc
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x528]
push eax
call fcn.00423880
lea ecx, [esp + 0x52c]
push ecx
call dword [sym.imp.MSVCR90.dll__strdup]
push eax
call dword [sym.imp.MSVCR90.dll__putenv]
add esp, 0x1c
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x11c]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x1c]
push 0
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x2c]
push eax
push esi
push ecx
mov dword [esp + 0x28], 0xff
mov dword [esp + 0x2c], 0x3ff
call edi
cmp eax, 0x103
jne 0x41a0a2
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov ecx, dword [esp + 0xa14]
xor ecx, esp
call fcn.0046e712
add esp, 0xa18
ret
push 0x419f50
call dword [sym.imp.MSVCR90.dll__set_invalid_parameter_handler]
add esp, 4
call dword [sym.imp.MSVCR90.dll__tzset]
call fcn.00419f60
jmp 0x41a020

Function at 0x41a180
Capabilities:
Query environment variable

Disassembly:
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetServicesTcpipParameters
push getpeername
call esi
test eax, eax
je 0x41a1fc
lea ecx, [esp + 4]
push ecx
push 0x20019
push 0
push str.SYSTEMCurrentControlSetServicesWinsock2Parameters
push getpeername
call esi
test eax, eax
je 0x41a1fc
lea edx, [esp + 4]
push edx
push 0x20019
push 0
push str.SYSTEMCurrentControlSetServicesWinsockParameters
push getpeername
call esi
test eax, eax
je 0x41a1fc
push str.HAVE_TCPIP
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
test eax, eax
je 0x41a1f7
cmp byte [0x79ace4], 0
je 0x41a1fc
xor al, al
pop esi
pop ecx
ret
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
pop esi
pop ecx
ret